|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGridComponent
A grid component is an object that supports a grid based on a given
granularity. This grid is usually used for drag & drop operations, so that
dragged objects line up with the (for example) exact beginning and / or end
of a day. Grid components can be observed by other objects, which implement
the IGridComponentListener
interface. This way the currently used
grid granularity of a component can be visualized.
Eventline.setGridGranularity(IGranularity)
,
LayerContainer.setGridGranularity(IGranularity)
,
GridControl
,
GridControlPanel
Method Summary | |
---|---|
void |
addGridComponentListener(IGridComponentListener l)
Adds a listener to the grid component. |
java.lang.String |
getGridComponentName()
Returns the name of the grid component. |
IGranularity |
getGridGranularity()
Returns the granularity used by the grid component. |
IGridPolicy |
getGridPolicy()
Returns the grid policy used by the grid component. |
boolean |
isGridAutomatic()
Determines whether the component is using an automatic grid. |
boolean |
isGridControlVisible()
Determines whether the UI component used to control the grid is currently visible or not. |
void |
removeGridComponentListener(IGridComponentListener l)
Removes a listener from the grid component. |
void |
setGridAutomatic(boolean b)
Specifies whether the component is using an automatic grid. |
void |
setGridGranularity(IGranularity granularity)
Specifies a new granularity to be used by the grid component. |
Method Detail |
---|
void setGridGranularity(IGranularity granularity)
IGridPolicy
to calculate grid
locations. It will not be used if the automatic grid feature is turned
on.
granularity
- the granularity to be used for the gridsetGridAutomatic(boolean)
IGranularity getGridGranularity()
void setGridAutomatic(boolean b)
b
- if TRUE the grid gets calculated automatically and not based
on the given grid granularityboolean isGridAutomatic()
boolean isGridControlVisible()
IGridPolicy getGridPolicy()
java.lang.String getGridComponentName()
void addGridComponentListener(IGridComponentListener l)
l
- the grid component listenervoid removeGridComponentListener(IGridComponentListener l)
l
- the grid component listener that gets removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |