|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.writersforge.catalan.layout.style.DefaultStyle
An implementation of the FontStyle, TextStyle, and AreaStyle interfaces with all hardcoded defaults. All default methods should return valid instances, typically zero, NOT_FOUND, or an object instance. Null is not a valid default value.
| Field Summary | |
static DefaultStyle |
DEFAULT_STYLE
Sole public instance of DefaultStyle |
static int |
NOT_FOUND
Default value for an undefined integer property |
| 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 |
| 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. |
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. |
AreaStyle |
getDefaultAreaStyle()
Returns the default area style from this map. |
FontStyle |
getDefaultFont()
Returns the default FontStyle of this text. |
FontStyle |
getDefaultFontStyle()
Returns the default font style from this map. |
TextStyle |
getDefaultTextStyle()
Returns the default text style from this map. |
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. |
FontStyle |
getFontStyle(java.lang.String styleName)
Returns the named font style from this map. |
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. |
TextStyle |
getTextStyle(java.lang.String styleName)
Returns the named text style from this map. |
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 DefaultStyle DEFAULT_STYLE
public static final int NOT_FOUND
| 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()
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 AreaStylepublic 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 | |||||||||