com.miginfocom.calendar.grid
Interface GridRowLayout

All Known Implementing Classes:
DefaultGridRowLayout

public interface GridRowLayout

A layout that lays out the sub grid rows/lines of a main grid row.


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.
 

Method Detail

layout

void layout(GridRow row)
Should out the sub rows of the row.

Parameters:
row - The grid riw which sub grid rows to layout to lay out. Not null.
See Also:
GridRow.getGridRows()

getMinimumSize

java.lang.Integer getMinimumSize(GridRow row)
Return the minimum size, if any is specified.

Note that this value includes grid lines.

Parameters:
row - The row to return the the size constraint for.
Returns:
The minimum size, if any is specified. null if not specified.

getPreferredSize

java.lang.Integer getPreferredSize(GridRow row)
Return the preferred size, if any is specified. If the preferred size is expressed as relative (see GridSegmentSpec) this method will return null since an absolute size can't be calculated.

Note that this value includes grid lines.

Parameters:
row - The row to return the the size constraint for.
Returns:
The preferred size, of any is specified. null if not specified.

getMaximumSize

java.lang.Integer getMaximumSize(GridRow row)
Return the maximum size for the grid in the laid out dimension.

Note that this value includes grid lines.

Parameters:
row - The row to return the the size constraint for.
Returns:
The maximum size, if any is specified. null if not specified.

getSizes

java.lang.Integer[] getSizes(GridRow row)
Will return the values for min, preferred and max in one array. This is faster than calling them separately since they basically have to do the same thing three times, where as this version just have to do most if it once. It will always return the same as would: new Integer[] {getMinimumSize(row), getPreferredSize(row), getMaximumSize(row)};

Note that these value includes grid lines.

Parameters:
row - The row to return the the size constraint for.
Returns:
The min, preferred and max size, if any is specified. null elements if not specified. Array never null and always of length 3.


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.