public interface IGridComponent
IGridComponentListener
interface. This way the currently used
grid granularity of a component can be visualized.Eventline.setGridGranularity(IGranularity)
,
LayerContainer.setGridGranularity(IGranularity)
,
GridControl
,
GridControlPanel
Modifier and Type | Method and Description |
---|---|
void |
addGridComponentListener(IGridComponentListener l)
Adds a listener to the grid component.
|
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.
|
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()
String getGridComponentName()
void addGridComponentListener(IGridComponentListener l)
l
- the grid component listenervoid removeGridComponentListener(IGridComponentListener l)
l
- the grid component listener that gets removedCopyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.