|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.writersforge.catalan.layout.style.DatumStyleMap
StyleMap wrapper around a <style-map> Datum tree. Each named style
resides in a <style> sub-element. The default style values can be
overridden in the single <default> sub-element. If a style cannot be
found in the <style> or the <default>, a not-found value is returned,
e.g., null or DefaultStyle.NOT_FOUND. Also provides a String ==> Color
mapping with the findColor() method.
| Constructor Summary | |
DatumStyleMap(org.writersforge.bellows.Datum datum)
Creates a new instance of DatumStyleMap. |
|
| Method Summary | |
java.awt.Color |
findColor(java.lang.String colorName)
Returns a Color object corresponding to the given name. |
AreaStyle |
getAreaStyle(java.lang.String styleName)
Returns the named area style from this map. |
AreaStyle |
getDefaultAreaStyle()
Returns the default area style from this map. |
FontStyle |
getDefaultFontStyle()
Returns the default font style from this map. |
TextStyle |
getDefaultTextStyle()
Returns the default text style from this map. |
FontStyle |
getFontStyle(java.lang.String styleName)
Returns the named font style from this map. |
TextStyle |
getTextStyle(java.lang.String styleName)
Returns the named text style from this map. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DatumStyleMap(org.writersforge.bellows.Datum datum)
datum - the style map to wrap, as a Datum tree| Method Detail |
public FontStyle getDefaultFontStyle()
getDefaultFontStyle in interface StyleMappublic FontStyle getFontStyle(java.lang.String styleName)
getFontStyle in interface StyleMapstyleName - the name of the style
public TextStyle getDefaultTextStyle()
getDefaultTextStyle in interface StyleMappublic TextStyle getTextStyle(java.lang.String styleName)
getTextStyle in interface StyleMapstyleName - the name of the style
public AreaStyle getDefaultAreaStyle()
getDefaultAreaStyle in interface StyleMappublic AreaStyle getAreaStyle(java.lang.String styleName)
getAreaStyle in interface StyleMapstyleName - the name of the style
public java.awt.Color findColor(java.lang.String colorName)
findColor in interface StyleMapcolorName - the name of the color
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||