public class SimpleGranularitySelectorFactory extends Object implements ISelectorFactory
SimpleGranularity
as a timeline granularity.SimpleGranularityGotoSelector,
SimpleGranularityHorizonSelectorISelectorFactory.SelectorID| Modifier | Constructor and Description |
|---|---|
protected |
SimpleGranularitySelectorFactory()
This class implements the Singleton pattern, hence the
constructor is private.
|
| Modifier and Type | Method and Description |
|---|---|
Selector |
createSelector(AbstractGanttChart gc,
JComponent parentComponent,
ISelectorFactory.SelectorID id)
Creates a new selector for the given Gantt chart and the given selector
type.
|
Selector |
createSelector(IGridComponent gridComponent,
JComponent parentComponent,
ISelectorFactory.SelectorID id)
Creates a new selector for the given
IGridComponent instance and
the given selector type. |
Selector |
createSelector(LayerContainer layerContainer,
JComponent parentComponent,
ISelectorFactory.SelectorID id)
Creates a new selector for the given
LayerContainer and the given
selector type. |
static SimpleGranularitySelectorFactory |
getInstance()
Returns the singleton instance of this factory.
|
protected SimpleGranularitySelectorFactory()
getInstance() to lookup the
singleton instance.public static SimpleGranularitySelectorFactory getInstance()
public Selector createSelector(AbstractGanttChart gc, JComponent parentComponent, ISelectorFactory.SelectorID id)
ISelectorFactorycreateSelector in interface ISelectorFactorygc - the Gantt chart where the selector will be usedparentComponent - the parent component to which the selector will be boundid - the id of the selectorpublic Selector createSelector(LayerContainer layerContainer, JComponent parentComponent, ISelectorFactory.SelectorID id)
ISelectorFactoryLayerContainer and the given
selector type. Selectors are always bound to a parent component, which
gets also passed to this factory method.createSelector in interface ISelectorFactorylayerContainer - the layer container where the selector will be usedparentComponent - the parent component to which the selector will be boundid - the id of the selectorpublic Selector createSelector(IGridComponent gridComponent, JComponent parentComponent, ISelectorFactory.SelectorID id)
ISelectorFactoryIGridComponent instance and
the given selector type. Selectors are always bound to a parent
component, which gets also passed to this factory method.createSelector in interface ISelectorFactorygridComponent - the grid component where the selector will be usedparentComponent - the parent component to which the selector will be boundid - the id of the selectorCopyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.