|
||||||||||
| 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.LayoutGroup
Grouping container for other LayoutArea objects. The LayoutGroup can hold zero or more child areas arranged in a single direction, vertically or horizontally. More complex layouts are possible by embedding groups within groups.
| Field Summary | |
static int |
HORIZONTAL
Group child areas in a horizontal direction |
static int |
VERTICAL
Group child areas in a vertical direction |
| Constructor Summary | |
LayoutGroup(AreaStyle style)
Creates a new instance of LayoutGroup. |
|
LayoutGroup(AreaStyle style,
int orientation)
Creates a new instance of LayoutGroup with the given orientation. |
|
| Method Summary | |
void |
addChildren(LayoutArea child)
Appends a new child LayoutArea object into this area. |
void |
addChildren(LayoutArea[] children)
Appends an array of child LayoutArea objects into this area. |
LayoutArea[] |
getChildren()
Getter for property children, the child layout areas. |
LayoutArea |
getChildren(int index)
Indexed getter for property children, the child layout areas. |
int |
getOrientation()
Getter for property orientation, flow orientation of the children in this group |
boolean |
isRenderable()
Determines if this area has renderable content. |
void |
setChildren(int index,
LayoutArea children)
Indexed setter for property children, the child layout areas. |
void |
setChildren(LayoutArea[] children)
Setter for property children, the child layout areas. |
java.lang.String |
toString()
Converts the area object into String form. |
| Methods inherited from class org.writersforge.catalan.layout.LayoutArea |
canBreakAt, getExtents, getHeight, getHint, getRenderableExtents, getStyle, getWidth, getX, getY, isBreakable, setExtents, setHeight, setHint, setWidth, setX, setY |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int VERTICAL
public static final int HORIZONTAL
| Constructor Detail |
public LayoutGroup(AreaStyle style)
style - the base style for this area
public LayoutGroup(AreaStyle style,
int orientation)
style - the base style for this areaorientation - the flow orientation of this group; can be either
VERTICAL or HORIZONTAL| Method Detail |
public int getOrientation()
public boolean isRenderable()
A LayoutGroup is renderable if it contains any children. A border will not be drawn for an empty group.
isRenderable in class LayoutAreapublic LayoutArea getChildren(int index)
getChildren in class LayoutAreaindex - Index of the property.
index.public LayoutArea[] getChildren()
getChildren in class LayoutArea
public void setChildren(int index,
LayoutArea children)
setChildren in class LayoutAreaindex - Index of the property.children - New value of the property at index.public void setChildren(LayoutArea[] children)
setChildren in class LayoutAreachildren - New value of property children.public void addChildren(LayoutArea child)
addChildren in class LayoutAreachild - new LayoutArea object to appendpublic void addChildren(LayoutArea[] children)
addChildren in class LayoutAreachildren - new LayoutArea objects to appendpublic java.lang.String toString()
toString in class LayoutArea
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||