public class SimpleComponentFactory extends DefaultComponentFactory
SimpleGranularity. E.g. the dateline created by this factory is
SimpleDateline, which uses SimpleGranularityZoomPolicy,
SimpleGranularityDatelineModel, and
SimpleGranularityDatelineRenderer.| Modifier | Constructor and Description |
|---|---|
protected |
SimpleComponentFactory()
Constructs a simple component factory (protected due to singleton
pattern).
|
| Modifier and Type | Method and Description |
|---|---|
Dateline |
createDateline(Timeline timeline)
Creates a new
Dateline for the given Gantt chart and timeline. |
Eventline |
createEventline(Timeline timeline,
Dateline dateline)
Creates a new
Eventline for the given Gantt chart and timeline. |
static SimpleComponentFactory |
getInstance()
Returns the singleton instance of the component factory.
|
createLayerContainer, createLayerContainerCorner, createLayerContainerRowHeader, createLayerContainerScrollPane, createSplitPane, createTimeline, createTreeTable, createTreeTableCorner, createTreeTableHeader, createTreeTableRowHeader, createTreeTableScrollPaneprotected SimpleComponentFactory()
public static SimpleComponentFactory getInstance()
public Dateline createDateline(Timeline timeline)
IComponentFactoryDateline for the given Gantt chart and timeline.
The dateline will show times / dates for the given time zone and it will
allow the user to scroll across the given time span.createDateline in interface IComponentFactorycreateDateline in class DefaultComponentFactorytimeline - the parent timelineIComponentFactory.createTimeline(AbstractGanttChart),
IComponentFactory.createEventline(Timeline, Dateline)public Eventline createEventline(Timeline timeline, Dateline dateline)
IComponentFactoryEventline for the given Gantt chart and timeline.
The eventline will show global events and activities.createEventline in interface IComponentFactorycreateEventline in class DefaultComponentFactorytimeline - the parent timelinedateline - the dateline that is used in the same timelineIComponentFactory.createDateline(Timeline),
IComponentFactory.createTimeline(AbstractGanttChart)Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.