|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.writersforge.catalan.layout.LayoutArea
|
+--org.writersforge.catalan.layout.LayoutText
A portion of renderable text. Provides some accessors for plain text, and
others for mixed style text via the StyledText object.
| Constructor Summary | |
LayoutText(AreaStyle style)
Creates a new instance of LayoutText. |
|
LayoutText(AreaStyle style,
java.lang.String text)
Creates a new instance of LayoutText. |
|
LayoutText(AreaStyle style,
StyledText styledText)
Creates a new instance of LayoutText. |
|
| Method Summary | |
StyledText |
getStyledText()
Getter for property styledText, the multi-style text content of this area. |
java.lang.String |
getText()
Getter for property text, the raw text content of this area. |
boolean |
isBreakable()
Getter for property breakable, whether the area can be split or not. |
boolean |
isRenderable()
Determines if this area has renderable content. |
void |
setStyledText(StyledText styledText)
Setter for property styledText, the multi-style text content of this area. |
void |
setText(java.lang.String text)
Setter for property text, the raw text content of this area. |
java.lang.String |
toString()
Converts the area object into String form. |
| Methods inherited from class org.writersforge.catalan.layout.LayoutArea |
addChildren, addChildren, canBreakAt, getChildren, getChildren, getExtents, getHeight, getHint, getRenderableExtents, getStyle, getWidth, getX, getY, setChildren, setChildren, setExtents, setHeight, setHint, setWidth, setX, setY |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public LayoutText(AreaStyle style)
style - the style for this area
public LayoutText(AreaStyle style,
java.lang.String text)
style - the style for this areatext - the text content for this area
public LayoutText(AreaStyle style,
StyledText styledText)
style - the style for this areastyledText - the styled text content for this area| Method Detail |
public boolean isRenderable()
isRenderable in class LayoutAreapublic java.lang.String getText()
public void setText(java.lang.String text)
text - New value of property text.public final StyledText getStyledText()
public final void setStyledText(StyledText styledText)
styledText - New value of property styledText.public boolean isBreakable()
isBreakable in class LayoutAreapublic java.lang.String toString()
toString in class LayoutArea
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||