|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.umber.crucible.old.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(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(Datum datum)
datum
- the style map to wrap, as a Datum treeMethod Detail |
public FontStyle getDefaultFontStyle()
getDefaultFontStyle
in interface StyleMap
public FontStyle getFontStyle(java.lang.String styleName)
getFontStyle
in interface StyleMap
styleName
- the name of the style
public TextStyle getDefaultTextStyle()
getDefaultTextStyle
in interface StyleMap
public TextStyle getTextStyle(java.lang.String styleName)
getTextStyle
in interface StyleMap
styleName
- the name of the style
public AreaStyle getDefaultAreaStyle()
getDefaultAreaStyle
in interface StyleMap
public AreaStyle getAreaStyle(java.lang.String styleName)
getAreaStyle
in interface StyleMap
styleName
- the name of the style
public java.awt.Color findColor(java.lang.String colorName)
findColor
in interface StyleMap
colorName
- the name of the color
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |