gnu.kawa.models
Class Box
java.lang.Object
gnu.kawa.models.Model
gnu.kawa.models.Box
- All Implemented Interfaces:
- Viewable, java.io.Serializable
- Direct Known Subclasses:
- Column, Row
public abstract class Box
- extends Model
- implements Viewable, java.io.Serializable
A container that lays out its components in a column or row.
- See Also:
- Serialized Form
Constructor Summary |
Box()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Box
public Box()
getCellSpacing
public Viewable getCellSpacing()
setCellSpacing
public void setCellSpacing(java.lang.Object cellSpacing)
getAxis
public abstract int getAxis()
- Return 0 for a horizontal box; 1 for a vertical box.
getComponentCount
public final int getComponentCount()
getComponent
public final Viewable getComponent(int i)
add
public void add(Viewable component)
makeView
public void makeView(Display display,
java.lang.Object where)
- Specified by:
makeView
in interface Viewable