|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.swing.DefaultComponentFactory
public class DefaultComponentFactory
The default component factory used by the Gantt charts. The factory
implements (as it is common) the singleton pattern. Instances can be
retrieved via the getInstance()
method.
Constructor Summary | |
---|---|
protected |
DefaultComponentFactory()
Constructs a 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. |
LayerContainer |
createLayerContainer(AbstractGanttChart gc,
TreeTable table,
IGanttChartModel model)
Creates a LayerContainer for the given Gantt chart and tree table
combination. |
javax.swing.JComponent |
createLayerContainerCorner(LayerContainer lc,
java.lang.String corner)
Creates a new component that will be placed in the specified corner of the layer container scrollpane. |
LayerContainerRowHeader |
createLayerContainerRowHeader(LayerContainer lc)
Creates a new LayerContainerRowHeader that will be used for the
given layer container. |
Timeline |
createTimeline(AbstractGanttChart gc)
Creates a new Timeline for the given Gantt chart. |
TreeTable |
createTreeTable(AbstractGanttChart gc,
ITreeTableModel model)
Creates a TreeTable for the given Gantt chart. |
javax.swing.JComponent |
createTreeTableCorner(TreeTable table,
java.lang.String corner)
Creates a component that will be placed in the upper left corner of the scrollpane that contains the tree table. |
TreeTableHeader |
createTreeTableHeader(AbstractGanttChart gc)
Creates a TreeTableHeader for the given Gantt chart. |
TreeTableRowHeader |
createTreeTableRowHeader(TreeTable table)
Creates a new TreeTableRowHeader that will be used for the given
tree table. |
static IComponentFactory |
getInstance()
Returns the singleton instance of the component factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DefaultComponentFactory()
Method Detail |
---|
public static IComponentFactory getInstance()
public Timeline createTimeline(AbstractGanttChart gc)
IComponentFactory
Timeline
for the given Gantt chart. The timeline
will forward the given time span and time zone to the dateline that it
will also create via the same component factory.
createTimeline
in interface IComponentFactory
gc
- the owner Gantt chart
IComponentFactory.createDateline(Timeline)
,
IComponentFactory.createEventline(Timeline, Dateline)
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
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
timeline
- the parent timelinedateline
- the dateline that is used in the same timeline
IComponentFactory.createDateline(Timeline)
,
IComponentFactory.createTimeline(AbstractGanttChart)
public TreeTable createTreeTable(AbstractGanttChart gc, ITreeTableModel model)
IComponentFactory
TreeTable
for the given Gantt chart. The table can use
the given model to populate itself with date.
createTreeTable
in interface IComponentFactory
gc
- the owner Gantt chart / parent container of the tablemodel
- the date source for the table
public TreeTableHeader createTreeTableHeader(AbstractGanttChart gc)
IComponentFactory
TreeTableHeader
for the given Gantt chart. A Gantt
chart only uses a single column header even if it displays more than one
table at a time.
createTreeTableHeader
in interface IComponentFactory
gc
- the owner Gantt chart of the header
AbstractGanttChart.getTreeTableHeader()
public TreeTableRowHeader createTreeTableRowHeader(TreeTable table)
IComponentFactory
TreeTableRowHeader
that will be used for the given
tree table. Row headers display toggles for expanding/collapsing tree
nodes and also row numbers / outline numbers for each row.
createTreeTableRowHeader
in interface IComponentFactory
table
- the tree table that uses the row header for visualizing row
numbers
public javax.swing.JComponent createTreeTableCorner(TreeTable table, java.lang.String corner)
IComponentFactory
createTreeTableCorner
in interface IComponentFactory
table
- the table that is wrapped by the scrollpanecorner
- the corner where the component will be placed (UPPER_LEFT,
UPPER_RIGHT, LOWER_LEFT, LOWER_RIGHT)
TreeTableScrollPane
,
JScrollPane.setCorner(String, java.awt.Component)
public LayerContainer createLayerContainer(AbstractGanttChart gc, TreeTable table, IGanttChartModel model)
IComponentFactory
LayerContainer
for the given Gantt chart and tree table
combination. The layer container can utilize the given Gantt chart model
to determine how many layers and spreadsheets it has to add to itself.
createLayerContainer
in interface IComponentFactory
gc
- the owner Gantt chart of the layer containertable
- the table to the left of the layer containermodel
- the model represented by the layer container
public javax.swing.JComponent createLayerContainerCorner(LayerContainer lc, java.lang.String corner)
IComponentFactory
createLayerContainerCorner
in interface IComponentFactory
lc
- the layer containercorner
- the corner in which to place the component (UPPER_LEFT,
UPPER_RIGHT, LOWER_LEFT, LOWER_RIGHT)
NavigationControlPanel
public LayerContainerRowHeader createLayerContainerRowHeader(LayerContainer lc)
IComponentFactory
LayerContainerRowHeader
that will be used for the
given layer container. Layer container row headers can be used for things
like the display of a scale for a resource capacity.
createLayerContainerRowHeader
in interface IComponentFactory
lc
- the layer container that uses the row header for things like
capacity scales
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |