public class DualGanttChart extends AbstractGanttChart
AbstractGanttChart.Banner
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_HORIZONTAL_SPLITTER_LOCATION
Constant used for the name of those property change events that get fired
when the application changes the location of the horizontal splitter.
|
static String |
PROPERTY_PRIMARY_PRINT_MANAGER
Constant used for the name of those property change events that get fired
when the application changes the primary print manager property.
|
static String |
PROPERTY_SECONDARY_MODEL
Constant used for dealing with property change events that get triggered
when the secondary Gantt chart model gets changed.
|
static String |
PROPERTY_SECONDARY_PRINT_MANAGER
Constant used for the name of those property change events that get fired
when the application changes the secondary print manager property.
|
static String |
PROPERTY_SECONDARY_VISIBLE
Constant used for dealing with property change events.
|
static String |
PROPERTY_VERTICAL_SPLITTER_LOCATION
Constant used for the name of those property change events that get fired
when the application changes the location of the vertical splitter.
|
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 |
---|
DualGanttChart()
Constructs a new Gantt chart that is capable of displaying two models at
the same time (a primary and a secondary model).
|
DualGanttChart(IColumnModel columnModel)
Constructs a new Gantt chart that is capable of displaying two models at
the same time (a primary and a secondary model).
|
DualGanttChart(IComponentFactory compFactory)
Constructs a new Gantt chart that is capable of displaying two models at
the same time (a primary and a secondary model).
|
DualGanttChart(IGanttChartModel model)
Constructs a new Gantt chart that is capable of displaying two models at
the same time (a primary and a secondary model).
|
DualGanttChart(IGanttChartModel primaryModel,
IGanttChartModel secondaryModel)
Constructs a new Gantt chart that is capable of displaying two models at
the same time (a primary and a secondary model).
|
DualGanttChart(IGanttChartModel primaryModel,
IGanttChartModel secondaryModel,
IColumnModel columnModel)
Constructs a new Gantt chart that is capable of displaying two models at
the same time (a primary and a secondary model).
|
DualGanttChart(IGanttChartModel primaryModel,
IGanttChartModel secondaryModel,
IColumnModel columnModel,
IComponentFactory compFactory)
Constructs a new Gantt chart that is capable of displaying two models at
the same time (a primary and a secondary model).
|
DualGanttChart(IGanttChartModel primaryModel,
IGanttChartModel secondaryModel,
IComponentFactory compFactory)
Constructs a new Gantt chart that is capable of displaying two models at
the same time (a primary and a secondary model).
|
Modifier and Type | Method and Description |
---|---|
protected LayerContainerScrollPane |
createLayerContainerScrollPane(boolean primary,
TreeTableScrollPane tableScrollPane,
LayerContainer lc)
Creates the right-hand side of a Gantt chart, a scrollpane that wraps a
timeline (including dateline and eventline) and a layer container.
|
protected TreeTableScrollPane |
createTreeTableScrollPane(boolean primary,
IGanttChartModel model,
TreeTable table)
Creates the left-hand side of a Gantt chart, a scrollpane that wraps a
tree table, a column header and a row header.
|
protected int |
getFixedHorizonalSplitterLocation(int location)
Returns a location for the horizontal splitter that obeys the following
constraints:
location is larger than the minimum height of the primary tree
table scrollpane (equivalent to the height of the column header)
location is smaller than the minimum height of the secondary
layer container scrollpane (equivalent to height of horizontal scrollbar)
Obeying these constraints ensures that the column header, the timeline
and the horizontal scrollbars will always remain visible after the user
performed a drag operation via the horizontal splitter.
|
protected int |
getFixedVerticalSplitterLocation(int location)
Returns a location for the vertical splitter that obeys the following
constraints:
location is larger than the minimum width of the primary tree
table scrollpane (equivalent to the width of the row header)
location is smaller than the minimum width of the primary
layer container scrollpane (equivalent to width of vertical scrollbar)
Obeying these constraints ensures that the row header and the vertical
scrollbars will always remain visible after the user performed a drag
operation via the vertical splitter.
|
IGridComponent[] |
getGridComponents()
Returns all grid components managed by the Gantt chart container.
|
JScrollBar |
getHorizontalLayerContainerScrollBar()
Returns the horizontal scrollbar, which is used for the layer container
scrollpane.
|
JComponent |
getHorizontalSplitter()
Returns the component used to realize the horizontal splitter.
|
int |
getHorizontalSplitterLocation()
Returns the location of the horizontal splitter, which separates the
primary / upper Gantt chart from the secondary / lower Gantt chart.
|
JScrollBar |
getHorizontalTreeTableScrollBar()
Returns the horizontal scrollbar, which is used for the tree table
scrollpane.
|
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.
|
LayerContainer |
getPrimaryLayerContainer()
Returns the primary layer container.
|
LayerContainerRowHeader |
getPrimaryLayerContainerRowHeader()
Returns the row header that gets used in combination with the primary
layer container.
|
LayerContainerScrollPane |
getPrimaryLayerContainerScrollPane()
Returns the scrollpane for the primary layer container.
|
IPrintManager |
getPrimaryPrintManager()
Returns the print manager used for printing the primary Gantt chart (the
upper part).
|
TreeTable |
getPrimaryTreeTable()
Returns the primary tree table.
|
TreeTableRowHeader |
getPrimaryTreeTableRowHeader()
Returns the primary row header.
|
TreeTableScrollPane |
getPrimaryTreeTableScrollPane()
Returns the scrollpane used for the primary tree table.
|
PrintContext[] |
getPrintContexts()
Returns all print context supported by the Gantt chart.
|
LayerContainer |
getSecondaryLayerContainer()
Returns the secondary layer container.
|
LayerContainerRowHeader |
getSecondaryLayerContainerRowHeader()
Returns the row header that gets used in combination with the secondary
layer container.
|
LayerContainerScrollPane |
getSecondaryLayerContainerScrollPane()
Returns the secondary layer container scrollpane.
|
IGanttChartModel |
getSecondaryModel()
Returns the secondary Gantt chart model.
|
IPrintManager |
getSecondaryPrintManager()
Returns the print manager used for printing the secondary Gantt chart
(the lower part).
|
PrintSetup |
getSecondaryPrintSetup()
Returns the secondary print setup object, which is used to configure the
decorative elements of a printout (header and footer).
|
TreeTable |
getSecondaryTreeTable()
Returns the secondary tree table.
|
TreeTableRowHeader |
getSecondaryTreeTableRowHeader()
Returns the secondary row header.
|
TreeTableScrollPane |
getSecondaryTreeTableScrollPane()
Returns the secondary tree table scrollpane.
|
double |
getSecondaryWeight()
Returns the weight that will be used to calculate the initial height of
the secondary Gantt chart when it first becomes visible.
|
int |
getSplitterSize()
Returns the width of the vertical splitter and the height of the
horizontal splitter.
|
TreeTable[] |
getTreeTables()
Returns all tree tables managed by the Gantt chart container.
|
TreeTableScrollPane[] |
getTreeTableScrollPanes()
Returns all tree table scrollpanes managed by the Gantt chart container.
|
JComponent |
getVerticalSplitter()
Returns the component used to realize the vertical splitter.
|
int |
getVerticalSplitterLocation()
Returns the location of the vertical splitter, which separates the
left-hand side from the right-hand side of the Gantt chart.
|
boolean |
isSecondaryVisible()
Returns TRUE if the secondary Gantt chart is visible.
|
void |
print(boolean preview)
Prints the Gantt chart.
|
void |
print(boolean preview,
ITimeSpan span)
Prints the Gantt chart.
|
void |
printSecondaryModel(boolean preview)
Prints a Gantt chart based on the secondary model.
|
void |
printSecondaryModel(boolean preview,
ITimeSpan span)
Prints a Gantt chart based on the secondary model.
|
void |
propertyChange(PropertyChangeEvent evt) |
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 |
setHorizontalSplitterLocation(int location)
Specifies the location of the horizontal splitter, which separates the
primary / upper Gantt chart from the secondary / lower Gantt chart.
|
void |
setModel(IGanttChartModel model)
Specifies a model to be used by the Gantt chart as a data source.
|
void |
setPrimaryPrintManager(IPrintManager manager)
Sets the print manager to be used for the upper Gantt chart when the
application invokes printing.
|
void |
setSecondaryModel(IGanttChartModel model)
Specifies a new secondary Gantt chart model.
|
void |
setSecondaryPrintManager(IPrintManager manager)
Sets the print manager to be used for the lower Gantt chart when the
application invokes printing.
|
void |
setSecondaryPrintSetup(PrintSetup ps)
Specifies a new secondary print setup object, which is used to configure
the decorative elements of a printout (header and footer).
|
void |
setSecondaryVisible(boolean visible)
Determines whether the secondary Gantt chart is visible or not.
|
void |
setSecondaryWeight(double weight)
Sets the weight used to calculate the initial height of the secondary
chart.
|
void |
setSplitterSize(int size)
Sets the width of the vertical splitter and the height of the horizontal
splitter.
|
void |
setVerticalSplitterLocation(int location)
Specifies the location of the vertical splitter, which separates the
left-hand side from the right-hand side of the Gantt chart.
|
void |
tearDown()
Tears down the Gantt chart by calling
Eventline.tearDown() and
LayerContainer.tearDown() on all layer containers used within the
Gantt chart (e.g. |
addAvailableColumn, addMessage, addMessageListener, addSortingListener, addToolBarAction, alignEndTimes, alignStartTimes, clearMessages, clearToolBarActions, collapseAll, columnModelChanged, commandExecute, commandRedo, commandStackChanged, commandUndo, createPrintableGanttChart, expandAll, 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, removeAvailableColumn, removeMessage, removeMessageListener, removeSortingListener, removeToolBarAction, setActiveSpreadsheet, setAvailableColumns, setCalendarModel, setCalendarVisible, setColumnModel, setCommandInterceptor, setCommandStack, setControlsBackground, setControlsForeground, setCrosshairVisible, setEnabled, setGranularity, setGridLineMode, setKeyColumnPosition, setLabelsVisible, setLayerContainerRowHeaderWidth, setPagingModel, setPolicyProvider, setPopupVisible, setPrintSetup, setProgressMonitorFactory, setRelationsVisible, setRowLayerVisible, setRowResizePosition, setShowingCommandExceptions, setTimeNowScrolling, setTimeNowVisible, setTimeSpan, setTreeTableRowHeaderWidth, setVerticalLinesOnTop, showAllObjects, showEarliestObjects, showLatestObjects, showMessage, showMessage, showMessage, showMessageContext, showMessages, showTime, showTimeNow, sortTables
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 static final String PROPERTY_SECONDARY_MODEL
public static final String PROPERTY_SECONDARY_VISIBLE
public static final String PROPERTY_PRIMARY_PRINT_MANAGER
public static final String PROPERTY_SECONDARY_PRINT_MANAGER
public static final String PROPERTY_VERTICAL_SPLITTER_LOCATION
public static final String PROPERTY_HORIZONTAL_SPLITTER_LOCATION
public DualGanttChart(IGanttChartModel primaryModel, IGanttChartModel secondaryModel, IColumnModel columnModel, IComponentFactory compFactory)
primaryModel
- the first model that will be displayed in the upper user
interface components (primary tree table, layer container)secondaryModel
- the second model that will be displayed in the lower user
interface components (secondary tree table, layer container)columnModel
- the model used for the column headercompFactory
- a factory for creating the various user interface components
that constitute a Gantt chart (table, layer container, column
header, ...)public DualGanttChart(IGanttChartModel primaryModel, IGanttChartModel secondaryModel, IColumnModel columnModel)
DefaultComponentFactory
.primaryModel
- the first model that will be displayed in the upper user
interface components (primary tree table, layer container)secondaryModel
- the second model that will be displayed in the lower user
interface components (secondary tree table, layer container)columnModel
- the model used for the column headerpublic DualGanttChart(IGanttChartModel primaryModel, IGanttChartModel secondaryModel, IComponentFactory compFactory)
DefaultColumnModel
.primaryModel
- the first model that will be displayed in the upper user
interface components (primary tree table, layer container)secondaryModel
- the second model that will be displayed in the lower user
interface components (secondary tree table, layer container)compFactory
- a factory for creating the various user interface components
that constitute a Gantt chart (table, layer container, column
header, ...)public DualGanttChart(IGanttChartModel primaryModel, IGanttChartModel secondaryModel)
DefaultComponentFactory
. The column
model is an instance of DefaultColumnModel
.primaryModel
- the first model that will be displayed in the upper user
interface components (primary tree table, layer container)secondaryModel
- the second model that will be displayed in the lower user
interface components (secondary tree table, layer container)public DualGanttChart(IGanttChartModel model)
DefaultComponentFactory
.model
- the model that will be displayed in the upper and the lower
user interface componentspublic DualGanttChart(IColumnModel columnModel)
DefaultGanttChartModel
instances will be
created instead. The component factory used by the Gantt chart is a
DefaultComponentFactory
.columnModel
- the model used for the column headerpublic DualGanttChart(IComponentFactory compFactory)
DefaultGanttChartModel
instances will be
created instead. The Gantt chart's column model is an instance of
DefaultColumnModel
.compFactory
- a factory for creating the various user interface components
that constitute a Gantt chart (table, layer container, column
header, ...)public DualGanttChart()
DefaultGanttChartModel
instances will be
created instead. The component factory used by the Gantt chart is a
DefaultComponentFactory
and the column model is an instance of
DefaultColumnModel
.public IGanttChartModel getSecondaryModel()
setSecondaryModel(IGanttChartModel)
public void setSecondaryModel(IGanttChartModel model)
PROPERTY_SECONDARY_MODEL
.model
- the new secondary modelgetSecondaryModel()
public boolean isSecondaryVisible()
setSecondaryVisible(boolean)
public void setSecondaryVisible(boolean visible)
PROPERTY_SECONDARY_VISIBLE
.visible
- determines visibility of the secondary Gantt chartisSecondaryVisible()
public double getSecondaryWeight()
setSecondaryWeight(double)
public void setSecondaryWeight(double weight)
weight * height
where
height
is the height of the Dual Gantt chart container.weight
- the weight variable (must be within [0,1])getSecondaryWeight()
public TreeTable[] getTreeTables()
AbstractGanttChart
getTreeTables
in class AbstractGanttChart
public LayerContainer[] getLayerContainers()
AbstractGanttChart
getLayerContainers
in class AbstractGanttChart
public LayerContainer getPrimaryLayerContainer()
getPrimaryLayerContainerScrollPane()
,
getSecondaryLayerContainer()
public LayerContainerRowHeader getPrimaryLayerContainerRowHeader()
public LayerContainerScrollPane getPrimaryLayerContainerScrollPane()
getPrimaryLayerContainer()
,
getSecondaryLayerContainerScrollPane()
public TreeTable getPrimaryTreeTable()
getPrimaryTreeTableScrollPane()
,
getSecondaryTreeTable()
public TreeTableScrollPane getPrimaryTreeTableScrollPane()
getPrimaryTreeTable()
,
getSecondaryTreeTableScrollPane()
public TreeTableRowHeader getPrimaryTreeTableRowHeader()
getSecondaryTreeTableRowHeader()
public LayerContainer getSecondaryLayerContainer()
getSecondaryLayerContainerScrollPane()
,
getPrimaryLayerContainer()
public LayerContainerRowHeader getSecondaryLayerContainerRowHeader()
public LayerContainerScrollPane getSecondaryLayerContainerScrollPane()
getSecondaryLayerContainer()
,
getPrimaryLayerContainerScrollPane()
public TreeTable getSecondaryTreeTable()
getSecondaryTreeTableScrollPane()
,
getPrimaryTreeTable()
public TreeTableScrollPane getSecondaryTreeTableScrollPane()
getSecondaryTreeTable()
,
getPrimaryTreeTableScrollPane()
public TreeTableRowHeader getSecondaryTreeTableRowHeader()
getPrimaryTreeTableRowHeader()
protected TreeTableScrollPane createTreeTableScrollPane(boolean primary, IGanttChartModel model, TreeTable table)
IComponentFactory
).primary
- specifies whether the tree table scrollpane will be used for
the primary Gantt chartmodel
- the data sourcetable
- the table for which to create a scrollpanecreateLayerContainerScrollPane(boolean, TreeTableScrollPane,
LayerContainer)
protected LayerContainerScrollPane createLayerContainerScrollPane(boolean primary, TreeTableScrollPane tableScrollPane, LayerContainer lc)
primary
- specifies whether the layer container scrollpane will be used
for the primary Gantt charttableScrollPane
- the scrollpane of the tree table to the left of the layer
container scrollpanelc
- the layer container for which to create a scrollpanepublic int getVerticalSplitterLocation()
setVerticalSplitterLocation(int)
public void setVerticalSplitterLocation(int location)
location
- the splitter locationgetVerticalSplitterLocation()
,
AbstractGanttChart.getTreeTableRowHeaderWidth()
public int getHorizontalSplitterLocation()
setHorizontalSplitterLocation(int)
public void setHorizontalSplitterLocation(int location)
location
- getHorizontalSplitterLocation()
public void resetToPreferredSizes()
AbstractGanttChart
resetToPreferredSizes
in class AbstractGanttChart
public int getSplitterSize()
setSplitterSize(int)
public void setSplitterSize(int size)
size
- the size used for the width / height of the dividersgetSplitterSize()
public JComponent getVerticalSplitter()
getHorizontalSplitter()
public JComponent getHorizontalSplitter()
getVerticalSplitter()
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 void printSecondaryModel(boolean preview)
preview
- if TRUE a preview dialog will be shown first before printingpublic void printSecondaryModel(boolean preview, ITimeSpan span)
preview
- if TRUE a preview dialog will be shown first before printingspan
- the time span to printprotected int getFixedHorizonalSplitterLocation(int location)
location
- the raw location usually based on some mouse motion eventgetFixedVerticalSplitterLocation(int)
,
setVerticalSplitterLocation(int)
protected int getFixedVerticalSplitterLocation(int location)
location
- the raw location usually based on some mouse motion eventgetFixedHorizonalSplitterLocation(int)
,
setHorizontalSplitterLocation(int)
,
AbstractGanttChart.getTreeTableRowHeaderWidth()
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
propertyChange
in class AbstractGanttChart
public IPrintManager getPrimaryPrintManager()
public void setPrimaryPrintManager(IPrintManager manager)
manager
- the print manager to use for printing the Gantt chartTimeGranularityPrintManager
,
SimpleGranularityPrintManager
public IPrintManager getSecondaryPrintManager()
public void setSecondaryPrintManager(IPrintManager manager)
manager
- the print manager to use for printing the Gantt chartTimeGranularityPrintManager
,
SimpleGranularityPrintManager
public LayerContainerScrollPane[] getLayerContainerScrollPanes()
AbstractGanttChart
getLayerContainerScrollPanes
in class AbstractGanttChart
public IGridComponent[] getGridComponents()
AbstractGanttChart
GridControl
instances.getGridComponents
in class AbstractGanttChart
public TreeTableScrollPane[] getTreeTableScrollPanes()
AbstractGanttChart
getTreeTableScrollPanes
in class AbstractGanttChart
public void setModel(IGanttChartModel model)
AbstractGanttChart
AbstractGanttChart.PROPERTY_MODEL
.setModel
in class AbstractGanttChart
model
- the new Gantt chart modelAbstractGanttChart.getModel()
public JScrollBar getHorizontalLayerContainerScrollBar()
DualGanttChart
uses a single horizontal scrollbar
for both scrollpanes.public JScrollBar getHorizontalTreeTableScrollBar()
DualGanttChart
uses a single horizontal scrollbar
for both scrollpanes.public void setSecondaryPrintSetup(PrintSetup ps)
ps
- the new print setup to usepublic PrintSetup getSecondaryPrintSetup()
public void tearDown()
AbstractGanttChart
Eventline.tearDown()
and
LayerContainer.tearDown()
on all layer containers used within the
Gantt chart (e.g. the DualGanttChart
will call
tearDown()
on two layer containers. The layer container will
then tear down all layerstearDown
in class AbstractGanttChart
Eventline.tearDown()
,
LayerContainer.tearDown()
,
AbstractLayer.tearDown()
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.