|
||||||||||
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.print.PrintGanttChart
public class PrintGanttChart
A Gantt chart specialized on being printed that takes another Gantt chart as its input and copies its configuration object. The Gantt chart does not have any scrollbars or splitter panels / handles that are not needed for printing.
Nested 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 |
---|
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.print.Printable |
---|
NO_SUCH_PAGE, PAGE_EXISTS |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
PrintGanttChart(PrintContext ctx)
Constructs a new printable Gantt chart. |
Method Summary | |
---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
|
void |
alignEndTimes()
Method not supported by the printable Gantt chart. |
void |
alignStartTimes()
Method not supported by the printable Gantt chart. |
void |
collapseAll()
Method not supported by the printable Gantt chart. |
protected void |
copySettings(AbstractGanttChart from,
AbstractGanttChart to)
Copies the settings from one Gantt chart to another. |
protected void |
copySettings(Dateline from,
Dateline to,
ITimeSpan span)
Copies the settings from one dateline to another. |
protected void |
copySettings(Eventline from,
Eventline to)
Copies the settings from one eventline to another. |
protected void |
copySettings(LayerContainer from,
LayerContainer to)
Copies the settings from one layer container to another. |
void |
copySettings(PrintContext ctx)
Copies various settings from various Gantt chart UI components to the printable Gantt chart. |
protected void |
copySettings(Timeline from,
Timeline to)
Copies the settings from one timeline to another. |
protected void |
copySettings(TreeTableHeader from,
TreeTableHeader to)
Copies the settings from one tree table header to another. |
protected void |
copySettings(TreeTableRowHeader from,
TreeTableRowHeader to)
Copies the settings from one row header to another. |
protected void |
copySettings(TreeTable from,
TreeTable to)
Copies the settings from one Gantt chart to another. |
void |
datelineModelChanged(DatelineModelEvent e)
The listener's callback method that gets invoked when the model's time span or time zone changes. |
void |
datelineModelWillChange(DatelineModelEvent evt)
The listener's callback method that gets invoked when the model's time span or time zone will change. |
void |
expandAll()
Method not supported by the printable Gantt chart. |
IGridComponent[] |
getGridComponents()
Returns all grid components managed by the Gantt chart container. |
LayerContainer |
getLayerContainer()
Returns the layer container used for printing. |
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. |
PreviewDialog |
getPreviewDialog()
Returns a preview dialog that can (optionally) be set if the user requested a preview before actually printing the Gantt chart. |
PrintContext[] |
getPrintContexts()
Returns all print context supported by the Gantt chart. |
TreeTableRowHeader |
getRowHeader()
Returns the row header used for printing. |
TreeTable |
getTreeTable()
Returns the tree table used for printing. |
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. |
void |
layoutContainer(java.awt.Container parent)
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
|
void |
print(boolean preview,
ITimeSpan span)
Method not supported by the printable Gantt chart. |
int |
print(java.awt.Graphics g,
java.awt.print.PageFormat pageFormat,
int pageIndex)
|
void |
removeLayoutComponent(java.awt.Component comp)
|
void |
resetToPreferredSizes()
Method not supported by the printable Gantt chart. |
void |
setPreviewDialog(PreviewDialog dialog)
Sets a preview dialog if the user requested a preview dialog before actually printing the Gantt chart. |
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)
Method not supported by the printable Gantt chart. |
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. |
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 |
Constructor Detail |
---|
public PrintGanttChart(PrintContext ctx)
ctx
- the print context for which the preview Gantt chart gets
created (the preview Gantt chart will copy its settings from
the components provided by the context)Method Detail |
---|
public void copySettings(PrintContext ctx)
ctx
- public void datelineModelWillChange(DatelineModelEvent evt)
IDatelineModelListener
datelineModelWillChange
in interface IDatelineModelListener
evt
- the event that occured on the datelinepublic void datelineModelChanged(DatelineModelEvent e)
IDatelineModelListener
datelineModelChanged
in interface IDatelineModelListener
e
- the event that occured on the datelinepublic LayerContainer getLayerContainer()
public TreeTable getTreeTable()
public TreeTableRowHeader getRowHeader()
public int print(java.awt.Graphics g, java.awt.print.PageFormat pageFormat, int pageIndex) throws java.awt.print.PrinterException
print
in interface java.awt.print.Printable
java.awt.print.PrinterException
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 addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent
in interface java.awt.LayoutManager
public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
in interface java.awt.LayoutManager
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize
in interface java.awt.LayoutManager
public void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
public void print(boolean preview, ITimeSpan span)
print
in class AbstractGanttChart
preview
- if TRUE a preview dialog will be shown first before printingspan
- the time span that needs to be printedAbstractGanttChart.print(boolean,
ITimeSpan)
public void expandAll()
expandAll
in class AbstractGanttChart
AbstractGanttChart.expandAll()
public void collapseAll()
collapseAll
in class AbstractGanttChart
AbstractGanttChart.collapseAll()
public void showMessageContext(IMessage msg)
showMessageContext
in class AbstractGanttChart
msg
- the message for which to show the contextAbstractGanttChart.showMessageContext(com.dlsc.flexgantt.swing.IMessage)
public void resetToPreferredSizes()
resetToPreferredSizes
in class AbstractGanttChart
AbstractGanttChart.resetToPreferredSizes()
public void alignEndTimes()
alignEndTimes
in class AbstractGanttChart
AbstractGanttChart.alignEndTimes()
public void alignStartTimes()
alignStartTimes
in class AbstractGanttChart
AbstractGanttChart.alignStartTimes()
protected void copySettings(AbstractGanttChart from, AbstractGanttChart to)
from
- the source Gantt chartto
- the target Gantt chartprotected void copySettings(TreeTable from, TreeTable to)
from
- the source Gantt chartto
- the target Gantt chartprotected void copySettings(TreeTableHeader from, TreeTableHeader to)
from
- the source tree table headerto
- the target tree table headerprotected void copySettings(TreeTableRowHeader from, TreeTableRowHeader to)
from
- the source row headerto
- the target row headerprotected void copySettings(Dateline from, Dateline to, ITimeSpan span)
from
- the source datelineto
- the target datelinespan
- the printed time spanprotected void copySettings(Eventline from, Eventline to)
from
- the source eventlineto
- the target eventlineprotected void copySettings(Timeline from, Timeline to)
from
- the source timelineto
- the target timelineprotected void copySettings(LayerContainer from, LayerContainer to)
from
- the source layer containerto
- the target layer containerpublic PreviewDialog getPreviewDialog()
public void setPreviewDialog(PreviewDialog dialog)
dialog
- a preview dialogpublic 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |