|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.writersforge.catalan.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.writersforge.catalan.layout.style.FontStyle |
FONT_STYLE_BOLD, FONT_STYLE_ITALIC, FONT_STYLE_PLAIN, STYLE_ENUM |
| Fields inherited from interface org.writersforge.catalan.layout.style.TextStyle |
WRAP_CHARACTER, WRAP_ENUM, WRAP_LINE, WRAP_NEVER, WRAP_PHRASE, WRAP_SENTENCE, WRAP_WORD |
| Fields inherited from interface org.writersforge.catalan.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(org.writersforge.bellows.Datum datum)
Creates a new instance of DatumStyleWrapper with given datum. |
|
DatumStyleWrapper(org.writersforge.bellows.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(org.writersforge.bellows.Datum datum)
datum - the Datum object to wrap
public DatumStyleWrapper(org.writersforge.bellows.Datum datum,
boolean inherit)
datum - the Datum object to wrapinherit - whether or not to use Datum property inheritance| Method Detail |
public java.lang.String getFontName()
getFontName in interface FontStylepublic int getFontStyle()
getFontStyle in interface FontStylepublic int getFontSize()
getFontSize in interface FontStylepublic int getFontHeight()
getFontHeight in interface FontStylepublic java.awt.Color getFontColor()
getFontColor in interface FontStylepublic FontStyle getDefaultFont()
getDefaultFont in interface TextStylepublic int getWrap()
getWrap in interface TextStylepublic int getFirstLineIndent()
getFirstLineIndent in interface TextStylepublic boolean isBreakable()
isBreakable in interface AreaStylepublic int getHAlign()
getHAlign in interface AlignStylepublic int getVAlign()
getVAlign in interface AlignStylepublic int getIndent()
getIndent in interface InsetStylepublic int getRightIndent()
getRightIndent in interface InsetStylepublic int getSpaceBefore()
getSpaceBefore in interface InsetStylepublic int getSpaceAfter()
getSpaceAfter in interface InsetStylepublic java.awt.Insets getInsets()
getInsets in interface InsetStylepublic java.awt.Dimension getPreferred()
getPreferred in interface ExtentStylepublic 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 ExtentStylepublic java.awt.Dimension getMaximum()
getMaximum in interface ExtentStylepublic int getBorderWidth()
getBorderWidth in interface BorderStylepublic java.awt.Color getBorderColor()
getBorderColor in interface BorderStylepublic java.awt.Color getBackgroundColor()
getBackgroundColor in interface AreaStylepublic java.lang.String getDescription()
getDescription in interface AreaStyle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||