|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttablelayout.TableVec
public abstract class TableVec
Each TableLayout Manager has two TableVectors: one describes the columns, and the other describes the rows. The TableVector is an abstract class. For the column use TableCol, for the row use TableRow. The table vector is created, based on information of the layout of the TableLayout Manager, hence they must be created after the layout, and they must be updated when the layout changes. The TableVec is an array of TableVecRec, which contains the size information of each component in a row of column.
TableVecRec
,
TableLoc
,
TableCol
,
TableRow
,
TableLayout
Field Summary | |
---|---|
TableLayout |
parent
The layout parent |
int |
size
Number of elements (columns or rows) |
TableVecRec[] |
vec
Vector with the sizes of the elements (columns or rows) |
Constructor Summary | |
---|---|
TableVec()
|
Method Summary | |
---|---|
void |
adjust(int change)
Adjust the row or column after a resize |
void |
computeOffsets(int margin,
int gap)
Sets the upper left corner coordinate of each component within the container |
TableVecRec |
elementAt(int index)
Returns the TableVecRec size information on a given position |
abstract int |
getPreferredSize()
Returns the preferred size |
abstract int |
layoutSize(boolean do_actual)
Calculates the size of the layout |
abstract void |
minimize()
Changes the cells to its minimum size. |
String |
toString()
Returns the String representation |
abstract int |
totalSize()
Returns the total (minimum) size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public TableVecRec[] vec
public TableLayout parent
public int size
Constructor Detail |
---|
public TableVec()
Method Detail |
---|
public abstract void minimize()
public abstract int totalSize()
public abstract int getPreferredSize()
public abstract int layoutSize(boolean do_actual)
public TableVecRec elementAt(int index)
index
- the index of the information
ArrayIndexOutOfBoundsException
- if the index if out of
boundTableVecRec
public void adjust(int change)
change
- the number of pixel the row or column should grow or
shrinkpublic void computeOffsets(int margin, int gap)
margin
- the margin of the containergap
- the gap between each component in the containerpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |