|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.miginfocom.calendar.grid.DefaultGridRowLayout
public class DefaultGridRowLayout
Lays out all grid rows within a main grid rows so they get equal size.
Does not resize grid lines and does not check if a folder row is folded or not.
| Constructor Summary | |
|---|---|
DefaultGridRowLayout(boolean expandToRow)
Constructor |
|
DefaultGridRowLayout(boolean expandToRow,
AtNumber minSize,
AtRefNumber prefSize,
AtNumber maxSize)
Constructor. |
|
DefaultGridRowLayout(boolean expandToRow,
AtRefNumber prefRowSize)
Constructor. |
|
DefaultGridRowLayout(boolean expandToRow,
int defaultRowSize)
Constructor. |
|
DefaultGridRowLayout(boolean expandToRow,
SizeSpec sizeSpec)
Constructor. |
|
DefaultGridRowLayout(boolean expandToRow,
SizeSpec leafSizeSpec,
SizeSpec expFolderSpec,
SizeSpec foldedFolderSpec)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.Integer |
getMaximumSize(GridRow row)
Return the maximum size for the grid in the laid out dimension. |
java.lang.Integer |
getMinimumSize(GridRow row)
Return the minimum size, if any is specified. |
java.lang.Integer |
getPreferredSize(GridRow row)
Return the preferred size, if any is specified. |
java.lang.Integer[] |
getSizes(GridRow row)
Will return the values for min, preferred and max in one array. |
void |
layout(GridRow row)
Should out the sub rows of the row. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultGridRowLayout(boolean expandToRow)
expandToRow - If true the sub rows will be expanded to fill the row, however it won't break any min/max constrains.
public DefaultGridRowLayout(boolean expandToRow,
int defaultRowSize)
expandToRow - If true the sub rows will be expanded to fill the row, however it won't break any min/max constrains.defaultRowSize - The size that will be the default minimum, preferred and maximum size all rows. Will be wrapped in new AtFixed(rowSize).
Only rows that have null for min/pref/max will get this value.
public DefaultGridRowLayout(boolean expandToRow,
AtRefNumber prefRowSize)
expandToRow - If true the sub rows will be expanded to fill the row, however it won't break any min/max constrains.prefRowSize - The size that will be the default preferred size. Only rows that have null for min/pref/max will get this value.
public DefaultGridRowLayout(boolean expandToRow,
AtNumber minSize,
AtRefNumber prefSize,
AtNumber maxSize)
expandToRow - If true the sub rows will be expanded to fill the row, however it won't break any min/max constrains.minSize - The minimum size that will be used if the row itself has a null value for min size.prefSize - The minium size that will be used if the row itself has a null value for preferred size.maxSize - The maximum size that will be used if the row itself has a null value for max size.
public DefaultGridRowLayout(boolean expandToRow,
SizeSpec sizeSpec)
expandToRow - If true the sub rows will be expanded to fill the row, however it won't break any min/max constrains.sizeSpec - The size spec that will be used for all types of rows. Folders and leaves.
public DefaultGridRowLayout(boolean expandToRow,
SizeSpec leafSizeSpec,
SizeSpec expFolderSpec,
SizeSpec foldedFolderSpec)
expandToRow - If true the sub rows will be expanded to fill the row, however it won't break any min/max constrains.leafSizeSpec - The size spec that will be used for leaf rows. May be null.expFolderSpec - The size spec that will be used for folder rows that are folded. May be null.foldedFolderSpec - The size spec that will be used for folder rows that are expanded (not folded). May be null.| Method Detail |
|---|
public void layout(GridRow row)
GridRowLayout
layout in interface GridRowLayoutrow - The grid riw which sub grid rows to layout to lay out. Not null.GridRow.getGridRows()public java.lang.Integer getMinimumSize(GridRow row)
GridRowLayoutNote that this value includes grid lines.
getMinimumSize in interface GridRowLayoutrow - The row to return the the size constraint for.
null if not specified.public java.lang.Integer getPreferredSize(GridRow row)
GridRowLayoutGridSegmentSpec)
this method will return null since an absolute size can't be calculated.
Note that this value includes grid lines.
getPreferredSize in interface GridRowLayoutrow - The row to return the the size constraint for.
null if not specified.public java.lang.Integer getMaximumSize(GridRow row)
GridRowLayoutNote that this value includes grid lines.
getMaximumSize in interface GridRowLayoutrow - The row to return the the size constraint for.
null if not specified.public java.lang.Integer[] getSizes(GridRow row)
GridRowLayout
new Integer[] {getMinimumSize(row), getPreferredSize(row), getMaximumSize(row)};
Note that these value includes grid lines.
getSizes in interface GridRowLayoutrow - The row to return the the size constraint for.
null elements if not specified. Array never null
and always of length 3.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||