|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.swing.DefaultComponentFactory com.dlsc.flexgantt.swing.SimpleComponentFactory
public class SimpleComponentFactory
A simple component factory is an exension of the default component factory.
It creates specializations of the Gantt chart components in order to support
SimpleGranularity
. E.g. the dateline created by this factory is
SimpleDateline
, which uses SimpleGranularityZoomPolicy
,
SimpleGranularityDatelineModel
, and
SimpleGranularityDatelineRenderer
.
Constructor Summary | |
---|---|
protected |
SimpleComponentFactory()
Constructs a simple component factory (protected due to singleton pattern). |
Method Summary | |
---|---|
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 IComponentFactory |
getInstance()
Returns the singleton instance of the component factory. |
Methods inherited from class com.dlsc.flexgantt.swing.DefaultComponentFactory |
---|
createLayerContainer, createLayerContainerCorner, createLayerContainerRowHeader, createTimeline, createTreeTable, createTreeTableCorner, createTreeTableHeader, createTreeTableRowHeader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SimpleComponentFactory()
Method Detail |
---|
public static IComponentFactory 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 timeline
IComponentFactory.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 timeline
IComponentFactory.createDateline(Timeline)
,
IComponentFactory.createTimeline(AbstractGanttChart)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |