|
||||||||||
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.DatumStyleWrapper
Convenience wrapper that exports all known style interfaces from a single Datum object. Parameters of the constructor can control whether the style Datum attempts to search its Datum parents for properties if it doesn't exist in the local Datum.
Field Summary | |
static int |
NOT_FOUND
The standard tag for 'style value not found' |
Fields inherited from interface org.umber.crucible.old.layout.style.FontStyle |
FONT_STYLE_BOLD, FONT_STYLE_ITALIC, FONT_STYLE_PLAIN, STYLE_ENUM |
Fields inherited from interface org.umber.crucible.old.layout.style.TextStyle |
WRAP_CHARACTER, WRAP_ENUM, WRAP_LINE, WRAP_NEVER, WRAP_PHRASE, WRAP_SENTENCE, WRAP_WORD |
Fields inherited from interface org.umber.crucible.old.layout.style.AlignStyle |
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_ENUM, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_TOP |
Constructor Summary | |
DatumStyleWrapper()
Creates a new instance of DatumStyleWrapper with all default values. |
|
DatumStyleWrapper(Datum datum)
Creates a new instance of DatumStyleWrapper with given datum. |
|
DatumStyleWrapper(Datum datum,
boolean inherit)
Creates a new instance of DatumStyleWrapper with given datum, StyleMap, and inheritance flag. |
Method Summary | |
java.awt.Color |
getBackgroundColor()
Returns the background color of this area. |
java.awt.Color |
getBorderColor()
Returns the color of the border enclosing this area. |
int |
getBorderWidth()
Returns the width of the border enclosing this area. |
FontStyle |
getDefaultFont()
Returns the default FontStyle of this text. |
java.lang.String |
getDescription()
Returns an optional text description of this area. |
int |
getFirstLineIndent()
Returns the first line indent property of this text. |
java.awt.Color |
getFontColor()
Returns the color of this run of text. |
int |
getFontHeight()
Estimates the height of the font in point size. |
java.lang.String |
getFontName()
Returns the font name property of the style. |
int |
getFontSize()
Returns the font size property of the style. |
int |
getFontStyle()
Returns the font style property of the style. |
int |
getHAlign()
Returns the horizontal alignment property of the style. |
int |
getIndent()
Returns the left indent spacing of this area. |
java.awt.Insets |
getInsets()
Returns an Insets object set to the values of all four InsetStyle properties, indent, rightIndent, spaceBefore, and spaceAfter. |
java.awt.Dimension |
getMaximum()
Returns the maximum geometrical extents of this area. |
java.awt.Dimension |
getMinimum()
Returns the minimum geometrical extents of this area. |
java.awt.Dimension |
getPreferred()
Returns the preferred geometrical extents of this area. |
int |
getRightIndent()
Returns the right indent spacing of this area. |
int |
getSpaceAfter()
Returns the bottom indent spacing of this area. |
int |
getSpaceBefore()
Returns the top indent spacing of this area. |
int |
getVAlign()
Returns the vertical alignment property of the style. |
int |
getWrap()
Returns the wrap style of this text, according to the WRAP_xxx enumeration. |
boolean |
isBreakable()
Returns the breakable property of this text. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NOT_FOUND
Constructor Detail |
public DatumStyleWrapper()
public DatumStyleWrapper(Datum datum)
datum
- the Datum object to wrappublic DatumStyleWrapper(Datum datum, boolean inherit)
datum
- the Datum object to wrapinherit
- whether or not to use Datum property inheritanceMethod Detail |
public java.lang.String getFontName()
getFontName
in interface FontStyle
public int getFontStyle()
getFontStyle
in interface FontStyle
public int getFontSize()
getFontSize
in interface FontStyle
public int getFontHeight()
getFontHeight
in interface FontStyle
public java.awt.Color getFontColor()
getFontColor
in interface FontStyle
public FontStyle getDefaultFont()
getDefaultFont
in interface TextStyle
public int getWrap()
getWrap
in interface TextStyle
public int getFirstLineIndent()
getFirstLineIndent
in interface TextStyle
public boolean isBreakable()
isBreakable
in interface AreaStyle
public int getHAlign()
getHAlign
in interface AlignStyle
public int getVAlign()
getVAlign
in interface AlignStyle
public int getIndent()
getIndent
in interface InsetStyle
public int getRightIndent()
getRightIndent
in interface InsetStyle
public int getSpaceBefore()
getSpaceBefore
in interface InsetStyle
public int getSpaceAfter()
getSpaceAfter
in interface InsetStyle
public java.awt.Insets getInsets()
getInsets
in interface InsetStyle
public java.awt.Dimension getPreferred()
getPreferred
in interface ExtentStyle
public java.awt.Dimension getMinimum()
Any unspecified extent should fall back on the StyleMap value. If the extent is not specified in the StyleMap, it should carry the preferred value. Each extent, width and height, is calculated separately.
getMinimum
in interface ExtentStyle
public java.awt.Dimension getMaximum()
getMaximum
in interface ExtentStyle
public int getBorderWidth()
getBorderWidth
in interface BorderStyle
public java.awt.Color getBorderColor()
getBorderColor
in interface BorderStyle
public java.awt.Color getBackgroundColor()
getBackgroundColor
in interface AreaStyle
public java.lang.String getDescription()
getDescription
in interface AreaStyle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |