|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.miginfocom.calendar.grid.TrackingGridDimensionLayout
public class TrackingGridDimensionLayout
A grid layout that tracks the grid lines and grid rows of another grid in one dimension.
| Constructor Summary | |
|---|---|
TrackingGridDimensionLayout(int layoutDimIx,
int trackDimIx,
DateGrid trackedGrid,
java.awt.Component thisComp,
java.awt.Component trackedComp)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getDimension()
Return the dimension this layout is supposed to layout. |
java.lang.Integer |
getMaximumSize(Grid grid)
Return the maximum size for the grid in the laid out dimension. |
int |
getMinimumSize(Grid grid)
Return the minimum size, of any is specified. |
java.lang.Integer |
getPreferredSize(Grid grid)
Return the preferred size, of any is specified. |
void |
layout(Grid grid)
Lay out the grid in the dimension that this object is handling. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TrackingGridDimensionLayout(int layoutDimIx,
int trackDimIx,
DateGrid trackedGrid,
java.awt.Component thisComp,
java.awt.Component trackedComp)
layoutDimIx - The dimension to layout on the sent in grid. Grid.PRIMARY_DIMENSION or Grid.SECONDARY_DIMENSION.trackDimIx - The dimension to track on trackedGrid. Grid.PRIMARY_DIMENSION or Grid.SECONDARY_DIMENSION.trackedGrid - The grid to track. Will be stored in a WeakReference.thisComp - The component that the grid that is to be laied out will reside in. Used to compensate
for the primary dimension offset that might occur of the grids are in different components.
Will be stored in a WeakReference.trackedComp - The component that the trackedGrid will reside in. Used to compensate
for the primary dimension offset that might occur of the grids are in different components.
Will be stored in a WeakReference.| Method Detail |
|---|
public int getMinimumSize(Grid grid)
GridDimensionLayout
getMinimumSize in interface GridDimensionLayoutgrid - The grid to return the the size constraint for.
public java.lang.Integer getPreferredSize(Grid grid)
GridDimensionLayoutGridSegmentSpec)
this method will return null since an absolute size can't be calculated.
getPreferredSize in interface GridDimensionLayoutgrid - The grid to return the the size constraint for.
public java.lang.Integer getMaximumSize(Grid grid)
GridDimensionLayout
getMaximumSize in interface GridDimensionLayoutgrid - The grid to return the the size constraint for.
null if not specified.public int getDimension()
GridDimensionLayout
getDimension in interface GridDimensionLayoutGrid.PRIMARY_DIMENSION or Grid.SECONDARY_DIMENSION.public void layout(Grid grid)
GridDimensionLayout
This is normally done by calling grid.getGridRows(dimIx) and grid.getGridLines(dimIx)
and setting the size and position for those.
layout in interface GridDimensionLayoutgrid - The grid to lay out. Not null.Grid.getGridRows(int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||