|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pagelayout.Cell pagelayout.Gap
public class Gap
A gap is a Cell
object that represents an empty
space between components. Both flexible and fixed gaps may be placed
between the components. Typically, this class is not used directly, but
by calling the appropriate add
methods of a Row
or a
Column
object.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class pagelayout.Cell |
---|
Cell.Constraint |
Field Summary |
---|
Fields inherited from class pagelayout.Cell |
---|
BASELINE, BOTTOM, boundSpring, CENTER, constraint, filledSizeX, filledSizeY, fixMaxSize, FOUND_NOTREPLACED, FOUND_REPLACED, halign, JUSTIFIED, LEFT, links, MAX, NEWROW, NO_ALIGNMENT, NOT_FOUND, RIGHT, SKIP, TOP, valign |
Constructor Summary | |
---|---|
Gap(int gap)
Creates a fixed vertical gap. |
|
Gap(int gap,
boolean isHorizontal)
Creates a fixed gap with the specified orientation. |
|
Gap(int minGap,
int preferredGap,
int maxGap)
Creates a flexible vertical gap. |
|
Gap(int minGap,
int preferredGap,
int maxGap,
boolean isHorizontal)
Creates a flexible gap with the specified orientation. |
Method Summary | |
---|---|
BoundSpring |
computeBoundSpring()
Returns the two-dimensional spring associated with this gap. |
Cell |
duplicate(ComponentDuplicator c)
|
java.lang.String |
toString()
Returns the string representation of the gap. |
void |
xmlserialize(XMLPrintStream out,
ComponentXMLSerializer c)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Gap(int gap, boolean isHorizontal)
gap
- the length of the gap.isHorizontal
- true
for horizontal gap, and false
otherwise.public Gap(int gap)
gap
- the length of the gap.public Gap(int minGap, int preferredGap, int maxGap, boolean isHorizontal)
preferredGap
and maxGap
.
If these arguments are identical, the gap is fixed.
minGap
- the minimum length of the gap.preferredGap
- the preferred length of the gap.maxGap
- the maximum length of the gap.isHorizontal
- true
for horizontal gap, and false
otherwise.public Gap(int minGap, int preferredGap, int maxGap)
preferredGap
and maxGap
.
If these arguments are identical, the gap is fixed.
minGap
- the minimum length of the gap.preferredGap
- the preferred length of the gap.maxGap
- the maximum length of the gap.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public BoundSpring computeBoundSpring()
computeBoundSpring
in class Cell
public Cell duplicate(ComponentDuplicator c)
duplicate
in class Cell
public void xmlserialize(XMLPrintStream out, ComponentXMLSerializer c)
xmlserialize
in class Cell
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |