|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel com.dlsc.flexgantt.swing.AbstractGanttChart com.dlsc.flexgantt.swing.GanttChart
public class GanttChart
A basic Gantt chart implementation that is capable of visualizing the data
provided by a single Gantt chart model. The chart consists of a left-hand
side and a right-hand side. The left-hand side is implemented by a
TreeTableScrollPane
containing a TreeTable
, a
TreeTableRowHeader
and a TreeTableHeader
. The right-hand
side is implemented by a LayerContainerScrollPane
containing a
Timeline
(which itself contains a Dateline
and an
Eventline
.
DualGanttChart
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
static java.lang.String |
PROPERTY_PRINT_MANAGER
Constant used for those property change events that get fired when the print manager changes. |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
GanttChart()
Constructs a new standard Gantt chart. |
|
GanttChart(IColumnModel columnModel)
Constructs a new standard Gantt chart. |
|
GanttChart(IComponentFactory compFactory)
Constructs a new standard Gantt chart. |
|
GanttChart(IGanttChartModel model)
Constructs a new standard Gantt chart. |
|
GanttChart(IGanttChartModel model,
IColumnModel columnModel)
Constructs a new standard Gantt chart. |
|
GanttChart(IGanttChartModel model,
IColumnModel columnModel,
IComponentFactory compFactory)
Constructs a new standard Gantt chart. |
|
GanttChart(IGanttChartModel model,
IColumnModel columnModel,
java.util.TimeZone zone,
IComponentFactory compFactory)
Constructs a new standard Gantt chart. |
|
GanttChart(IGanttChartModel model,
IComponentFactory compFactory)
Constructs a new standard Gantt chart. |
Method Summary | |
---|---|
IGridComponent[] |
getGridComponents()
Returns all grid components managed by the Gantt chart container. |
LayerContainer |
getLayerContainer()
Returns the Gantt chart's layer container that is responsible for managing system, timeline and custom layers. |
LayerContainerRowHeader |
getLayerContainerRowHeader()
Returns the row header that gets used in combination with the layer container. |
LayerContainer[] |
getLayerContainers()
Returns all layer containers managed by the Gantt chart container. |
LayerContainerScrollPane |
getLayerContainerScrollPane()
Returns the scrollpane that wraps the Gantt chart's layer container. |
LayerContainerScrollPane[] |
getLayerContainerScrollPanes()
Returns all layer container scrollpanes managed by the Gantt chart container. |
PrintContext[] |
getPrintContexts()
Returns all print context supported by the Gantt chart. |
IPrintManager |
getPrintManager()
Returns the print manager to be used when the application invokes printing. |
javax.swing.JSplitPane |
getSplitPane()
The split pane used to layout and resize the left-hand side and the right-hand side of the Gantt chart. |
TreeTable |
getTreeTable()
Returns the Gantt chart's tree table that is responsible for visualizing the hierarchical data structures provided by the Gantt chart model (which is basically an extended tree table model). |
TreeTableRowHeader |
getTreeTableRowHeader()
The row header of the tree table. |
TreeTable[] |
getTreeTables()
Returns all tree tables managed by the Gantt chart container. |
TreeTableScrollPane |
getTreeTableScrollPane()
Returns the scrollpane that wraps the tree table, the row header and the column header (basically the entire left-hand side of the chart). |
TreeTableScrollPane[] |
getTreeTableScrollPanes()
Returns all tree table scrollpanes managed by the Gantt chart container. |
void |
print(boolean preview)
Prints the Gantt chart. |
void |
print(boolean preview,
ITimeSpan span)
Prints the Gantt chart. |
void |
resetToPreferredSizes()
Causes the Gantt chart to lay out its left- and right-hand side in such a way that the tree table on the left becomes fully visible. |
void |
setPrintManager(IPrintManager manager)
Sets the print manager to be used when the application invokes printing. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTY_PRINT_MANAGER
setPrintManager(IPrintManager)
,
Constant Field ValuesConstructor Detail |
---|
public GanttChart(IGanttChartModel model, IColumnModel columnModel, java.util.TimeZone zone, IComponentFactory compFactory)
model
- the model that will be used as a data source for the tree
table and the layer containercolumnModel
- the data source for column information will be primarily used
by the TreeTableHeader
zone
- the time zone that will be visualized by the timelinecompFactory
- a factory for those UI components that constitute a Gantt
chartpublic GanttChart(IGanttChartModel model, IColumnModel columnModel, IComponentFactory compFactory)
TimeZone.getDefault()
.
model
- the model that will be used as a data source for the tree
table and the layer containercolumnModel
- the data source for column information will be primarily used
by the TreeTableHeader
compFactory
- a factory for those UI components that constitute a Gantt
chartpublic GanttChart(IGanttChartModel model, IColumnModel columnModel)
TimeZone.getDefault()
. The Gantt
chart will use the DefaultComponentFactory
to create the controls
it needs.
model
- the model that will be used as a data source for the tree
table and the layer containercolumnModel
- the data source for column information will be primarily used
by the TreeTableHeader
public GanttChart(IGanttChartModel model, IComponentFactory compFactory)
TimeZone.getDefault()
. The Gantt
chart will use a DefaultColumnModel
for the tree table / column
header.
model
- the model that will be used as a data source for the tree
table and the layer containercompFactory
- a factory for those UI components that constitute a Gantt
chartpublic GanttChart(IGanttChartModel model)
TimeZone.getDefault()
. The Gantt
chart will use a DefaultColumnModel
for the tree table / column
header and a DefaultComponentFactory
for creating the controls it
needs.
model
- the model that will be used as a data source for the tree
table and the layer containerpublic GanttChart(IColumnModel columnModel)
TimeZone.getDefault()
. The Gantt
chart will use a DefaultGanttChartModel
as a data source and a
DefaultComponentFactory
for creating the controls it needs.
columnModel
- the data source for column information will be primarily used
by the TreeTableHeader
public GanttChart(IComponentFactory compFactory)
TimeZone.getDefault()
. The Gantt
chart will use a DefaultColumnModel
for the tree table / column
header and a DefaultGanttChartModel
as its data source.
compFactory
- a factory for those UI components that constitute a Gantt
chartpublic GanttChart()
TimeZone.getDefault()
. The Gantt
chart will use a DefaultColumnModel
for the tree table / column
header, a DefaultGanttChartModel
as its data source and a
DefaultComponentFactory
to create the controls it requires.
Method Detail |
---|
public LayerContainer getLayerContainer()
getLayerContainerScrollPane()
public LayerContainerRowHeader getLayerContainerRowHeader()
public TreeTable getTreeTable()
getTreeTableScrollPane()
public TreeTable[] getTreeTables()
AbstractGanttChart
getTreeTables
in class AbstractGanttChart
public LayerContainerScrollPane getLayerContainerScrollPane()
public LayerContainer[] getLayerContainers()
AbstractGanttChart
getLayerContainers
in class AbstractGanttChart
public TreeTableRowHeader getTreeTableRowHeader()
AbstractGanttChart.getTreeTableHeader()
public javax.swing.JSplitPane getSplitPane()
public TreeTableScrollPane getTreeTableScrollPane()
getTreeTable()
public void resetToPreferredSizes()
AbstractGanttChart
resetToPreferredSizes
in class AbstractGanttChart
public IPrintManager getPrintManager()
TimeGranularityPrintManager
,
SimpleGranularityPrintManager
public void setPrintManager(IPrintManager manager)
manager
- the print manager to use for printing the Gantt chartTimeGranularityPrintManager
,
SimpleGranularityPrintManager
public PrintContext[] getPrintContexts()
AbstractGanttChart
getPrintContexts
in class AbstractGanttChart
public void print(boolean preview)
AbstractGanttChart
print
in class AbstractGanttChart
preview
- if TRUE a preview dialog will be shown first before printingAbstractGanttChart.print(boolean, ITimeSpan)
public void print(boolean preview, ITimeSpan span)
AbstractGanttChart
print
in class AbstractGanttChart
preview
- if TRUE a preview dialog will be shown first before printingspan
- the time span that needs to be printedpublic LayerContainerScrollPane[] getLayerContainerScrollPanes()
AbstractGanttChart
getLayerContainerScrollPanes
in class AbstractGanttChart
public TreeTableScrollPane[] getTreeTableScrollPanes()
AbstractGanttChart
getTreeTableScrollPanes
in class AbstractGanttChart
public IGridComponent[] getGridComponents()
AbstractGanttChart
GridControl
instances.
getGridComponents
in class AbstractGanttChart
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |