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, createTreeTableScrollPane
protected SimpleComponentFactory()
public static SimpleComponentFactory getInstance()
public Dateline createDateline(Timeline timeline)
IComponentFactory
Dateline
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 IComponentFactory
createDateline
in class DefaultComponentFactory
timeline
- the parent timelineIComponentFactory.createTimeline(AbstractGanttChart)
,
IComponentFactory.createEventline(Timeline, Dateline)
public Eventline createEventline(Timeline timeline, Dateline dateline)
IComponentFactory
Eventline
for the given Gantt chart and timeline.
The eventline will show global events and activities.createEventline
in interface IComponentFactory
createEventline
in class DefaultComponentFactory
timeline
- the parent timelinedateline
- the dateline that is used in the same timelineIComponentFactory.createDateline(Timeline)
,
IComponentFactory.createTimeline(AbstractGanttChart)
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.