public class TimeGranularitySelectorFactory extends Object implements ISelectorFactory
TimeGranularity
as
a timeline granularity. As it is common for factories this class implements
the Singleton pattern.TimeGranularityGotoSelector
,
TimeGranularityHorizonSelector
ISelectorFactory.SelectorID
Modifier | Constructor and Description |
---|---|
protected |
TimeGranularitySelectorFactory()
This class implements the Singleton pattern, hence the
constructor is protected.
|
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 TimeGranularitySelectorFactory |
getInstance()
Returns the singleton instance of this factory.
|
protected TimeGranularitySelectorFactory()
getInstance()
to lookup the
singleton instance.public static TimeGranularitySelectorFactory getInstance()
public Selector createSelector(AbstractGanttChart gc, JComponent parentComponent, ISelectorFactory.SelectorID id)
ISelectorFactory
createSelector
in interface ISelectorFactory
gc
- 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)
ISelectorFactory
LayerContainer
and the given
selector type. Selectors are always bound to a parent component, which
gets also passed to this factory method.createSelector
in interface ISelectorFactory
layerContainer
- 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)
ISelectorFactory
IGridComponent
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 ISelectorFactory
gridComponent
- 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.