public class TreeTableContainer extends AbstractGanttChart
TreeTable
was designed to only live within the context of a Gantt chart.AbstractGanttChart.Banner
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
PROPERTY_ACTIVE_SPREADSHEET, PROPERTY_CALENDAR_MODEL, PROPERTY_CALENDAR_VISIBLE, PROPERTY_COLUMN_MODEL, PROPERTY_COMMAND_STACK, PROPERTY_CONTROLS_BG_COLOR, PROPERTY_CONTROLS_FG_COLOR, PROPERTY_CROSSHAIR_VISIBLE, PROPERTY_GRID_LINE_MODE, PROPERTY_KEY_COLUMN_POSITION, PROPERTY_LABELS_VISIBLE, PROPERTY_LAYER_CONTAINER_ROW_HEADER_WIDTH, PROPERTY_MODEL, PROPERTY_PAGING_MODEL, PROPERTY_POLICY_PROVIDER, PROPERTY_POPUP_VISIBLE, PROPERTY_RELATIONS_VISIBLE, PROPERTY_ROW_LAYER_VISIBLE, PROPERTY_ROW_RESIZE_POSITION, PROPERTY_TIME_NOW_SCROLLING, PROPERTY_TIME_NOW_VISIBLE, PROPERTY_TREE_TABLE_ROW_HEADER_WIDTH, PROPERTY_VERTICAL_LINES_ON_TOP
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
TreeTableContainer()
Constructs a new tree table container 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. |
TreeTableContainer(IColumnModel columnModel)
Constructs a new tree table container that will use a
DefaultGanttChartModel as a data source and a
DefaultComponentFactory for creating the controls it needs. |
TreeTableContainer(IComponentFactory compFactory)
Constructs a new tree table container that will use a
DefaultColumnModel for the tree table / column header and a
DefaultGanttChartModel as its data source. |
TreeTableContainer(IGanttChartModel model)
Constructs a new tree table container that will use a
DefaultColumnModel for the tree table / column header and a
DefaultComponentFactory for creating the controls it needs. |
TreeTableContainer(IGanttChartModel model,
IColumnModel columnModel)
Constructs a new tree table container that will use a
DefaultComponentFactory to create the controls it needs. |
TreeTableContainer(IGanttChartModel model,
IColumnModel columnModel,
IComponentFactory compFactory)
Constructs a new tree table container.
|
TreeTableContainer(IGanttChartModel model,
IComponentFactory compFactory)
Constructs a new tree table container that will use a
DefaultColumnModel for the tree table / column header. |
Modifier and Type | Method and Description |
---|---|
void |
alignEndTimes()
Adjusts the end times of all currently selected and visible timeline
objects so that they are all the same.
|
void |
alignStartTimes()
Adjusts the start times of all currently selected and visible timeline
objects so that they are all the same.
|
void |
collapseAll()
Collapses all tree nodes in all tree tables.
|
void |
expandAll()
Expands all tree nodes in all tree tables.
|
IGridComponent[] |
getGridComponents()
Returns all grid components managed by the Gantt chart container.
|
LayerContainer[] |
getLayerContainers()
Returns all layer containers managed by the Gantt chart 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.
|
TreeTableRowHeader |
getRowHeader()
The row header of the tree table.
|
TreeTable |
getTreeTable()
Returns 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.
|
TreeTableScrollPane[] |
getTreeTableScrollPanes()
Returns all tree table scrollpanes managed by the Gantt chart container.
|
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 |
showAllObjects()
Scrolls and zooms the
Dateline in such a way that all timeline
objects (stored on the currently visible rows) become visible. |
void |
showEarliestObjects()
Scrolls the
Dateline in such a way that the earliest timeline
objects (stored on the currently visible rows) become visible. |
void |
showLatestObjects()
Scrolls the
Dateline in such a way that the latest timeline
objects (stored on the currently visible rows) become visible. |
void |
showMessageContext(IMessage msg)
Shows the context of the given message.
|
void |
showTime(long time,
boolean center)
Requests that the given time will be shown by the Gantt chart.
|
void |
showTimeNow(boolean center)
Requests that the time now will be shown by the Gantt chart.
|
addAvailableColumn, addMessage, addMessageListener, addSortingListener, addToolBarAction, clearMessages, clearToolBarActions, columnModelChanged, commandExecute, commandRedo, commandStackChanged, commandUndo, createPrintableGanttChart, fireMessageAdded, fireMessageRemoved, fireMessagesCleared, fireSortingEvent, getActiveSpreadsheet, getAvailableColumns, getCalendarModel, getColumn, getColumnCount, getColumnModel, getCommandInterceptor, getCommandStack, getComponentFactory, getControlsBackground, getControlsForeground, getDateline, getDatelineModel, getEventline, getGranularity, getGridLineMode, getKeyColumn, getKeyColumnPosition, getLayerContainerRowHeaderWidth, getMessages, getModel, getPagingModel, getPolicyProvider, getPrintSetup, getProgressMonitorFactory, getRowResizePosition, getSelectorFactory, getTimeline, getTimeSpan, getToolBarActions, getTreeTableHeader, getTreeTableRowHeaderWidth, isCalendarVisible, isCrosshairVisible, isLabelsVisible, isPopupVisible, isRelationsVisible, isRowLayerVisible, isShowingCommandExceptions, isTimeNowScrolling, isTimeNowVisible, isVerticalLinesOnTop, keyPressed, keyReleased, keyTyped, optimizeColumnWidth, optimizeColumnWidth, optimizeColumnWidth, optimizeColumnWidth, optimizeColumnWidth, optimizeColumnWidth, pageChanged, pageWillChange, paint, paintRowResizePosition, print, propertyChange, removeAvailableColumn, removeMessage, removeMessageListener, removeSortingListener, removeToolBarAction, setActiveSpreadsheet, setAvailableColumns, setCalendarModel, setCalendarVisible, setColumnModel, setCommandInterceptor, setCommandStack, setControlsBackground, setControlsForeground, setCrosshairVisible, setEnabled, setGranularity, setGridLineMode, setKeyColumnPosition, setLabelsVisible, setLayerContainerRowHeaderWidth, setModel, setPagingModel, setPolicyProvider, setPopupVisible, setPrintSetup, setProgressMonitorFactory, setRelationsVisible, setRowLayerVisible, setRowResizePosition, setShowingCommandExceptions, setTimeNowScrolling, setTimeNowVisible, setTimeSpan, setTreeTableRowHeaderWidth, setVerticalLinesOnTop, showMessage, showMessage, showMessage, showMessages, sortTables, tearDown
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, 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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
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, transferFocusDownCycle, validate, validateTree
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, 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, transferFocusBackward, transferFocusUpCycle
public TreeTableContainer(IGanttChartModel model, IColumnModel columnModel, 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
compFactory
- a factory for those UI components that are required by the
tree table containerpublic TreeTableContainer(IGanttChartModel model, IColumnModel columnModel)
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 TreeTableContainer(IGanttChartModel model, IComponentFactory compFactory)
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 are required by the
tree table containerpublic TreeTableContainer(IGanttChartModel model)
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 TreeTableContainer(IColumnModel columnModel)
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 TreeTableContainer(IComponentFactory compFactory)
DefaultColumnModel
for the tree table / column header and a
DefaultGanttChartModel
as its data source.compFactory
- a factory for those UI components that are required by the
tree table containerpublic TreeTableContainer()
DefaultColumnModel
for the tree table / column header, a
DefaultGanttChartModel
as its data source and a
DefaultComponentFactory
to create the controls it requires.public TreeTable getTreeTable()
getTreeTableScrollPane()
public TreeTableRowHeader getRowHeader()
AbstractGanttChart.getTreeTableHeader()
public TreeTableScrollPane getTreeTableScrollPane()
getTreeTable()
public void showEarliestObjects()
AbstractGanttChart
Dateline
in such a way that the earliest timeline
objects (stored on the currently visible rows) become visible.showEarliestObjects
in class AbstractGanttChart
public void showLatestObjects()
AbstractGanttChart
Dateline
in such a way that the latest timeline
objects (stored on the currently visible rows) become visible.showLatestObjects
in class AbstractGanttChart
public void showAllObjects()
AbstractGanttChart
Dateline
in such a way that all timeline
objects (stored on the currently visible rows) become visible.showAllObjects
in class AbstractGanttChart
public void showTime(long time, boolean center)
AbstractGanttChart
showTime
in class AbstractGanttChart
time
- the time to make visiblecenter
- if TRUE the time now will be shown in the center / middle of
the layer container, otherwise it will be on the left edge of
the layer containerAbstractGanttChart.showTimeNow(boolean)
public void showTimeNow(boolean center)
AbstractGanttChart
showTimeNow
in class AbstractGanttChart
center
- if TRUE the time now will be shown in the center / middle of
the layer container, otherwise it will be on the left edge of
the layer containerAbstractGanttChart.showTime(long, boolean)
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 void expandAll()
AbstractGanttChart
expandAll
in class AbstractGanttChart
public void collapseAll()
AbstractGanttChart
collapseAll
in class AbstractGanttChart
public void showMessageContext(IMessage msg)
AbstractGanttChart
TreePathMessage
then the tree path will be opened. If the message
is a TimelineObjectPathMessage
then the matching timeline object
will be shown.showMessageContext
in class AbstractGanttChart
msg
- the message for which to show the contextpublic void resetToPreferredSizes()
AbstractGanttChart
resetToPreferredSizes
in class AbstractGanttChart
public void alignEndTimes()
AbstractGanttChart
alignEndTimes
in class AbstractGanttChart
AbstractGanttChart.alignStartTimes()
public void alignStartTimes()
AbstractGanttChart
alignStartTimes
in class AbstractGanttChart
AbstractGanttChart.alignEndTimes()
public PrintContext[] getPrintContexts()
AbstractGanttChart
getPrintContexts
in class AbstractGanttChart
public 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
public LayerContainer[] getLayerContainers()
AbstractGanttChart
getLayerContainers
in class AbstractGanttChart
public TreeTable[] getTreeTables()
AbstractGanttChart
getTreeTables
in class AbstractGanttChart
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.