|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.swing.print.PrintContext
public class PrintContext
A print context wraps all those Gantt chart components that are needed by the
preview dialog to setup its internally used printable Gantt chart so that it
uses the same settings as these components. The standard GanttChart
always returns the same components when asked to print but the more complex
DualGanttChart
might return the upper (the primary) or the lower (the
secondary) components.
Constructor Summary | |
---|---|
PrintContext()
|
Method Summary | |
---|---|
AbstractGanttChart |
getGanttChart()
The Gantt chart that is being printed. |
LayerContainer |
getLayerContainer()
Returns the layer container to print. |
TreeTableRowHeader |
getRowHeader()
Returns the row header to print. |
Timeline |
getTimeline()
Returns the timeline to print. |
ITimeSpan |
getTimeSpan()
Returns the time span that needs to be printed. |
TreeTable |
getTreeTable()
Returns the tree table to print. |
TreeTableHeader |
getTreeTableHeader()
Returns the tree table header to print. |
void |
setGanttChart(AbstractGanttChart ganttChart)
Sets the Gantt chart that is being printed. |
void |
setLayerContainer(LayerContainer layerContainer)
Sets the layer container to print. |
void |
setRowHeader(TreeTableRowHeader rowHeader)
Sets the row header to print. |
void |
setTimeline(Timeline timeline)
Sets the timeline to print. |
void |
setTimeSpan(ITimeSpan span)
Returns the time span that needs to be printed. |
void |
setTreeTable(TreeTable treeTable)
Sets the tree table to print. |
void |
setTreeTableHeader(TreeTableHeader treeTableHeder)
Sets the tree table header to print. |
void |
validate()
Validates whether the print context is complete (all fields set, none NULL?). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrintContext()
Method Detail |
---|
public AbstractGanttChart getGanttChart()
public void setGanttChart(AbstractGanttChart ganttChart)
ganttChart
- the ganttChart that is being printedpublic LayerContainer getLayerContainer()
public void setLayerContainer(LayerContainer layerContainer)
layerContainer
- the layerContainer to printpublic TreeTableRowHeader getRowHeader()
public void setRowHeader(TreeTableRowHeader rowHeader)
rowHeader
- the row header to printpublic Timeline getTimeline()
public void setTimeline(Timeline timeline)
timeline
- the timeline to printpublic TreeTable getTreeTable()
public void setTreeTable(TreeTable treeTable)
treeTable
- the tree table to printpublic TreeTableHeader getTreeTableHeader()
public void setTreeTableHeader(TreeTableHeader treeTableHeder)
treeTableHeder
- the tree table header to printpublic void validate() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if a field is missingpublic ITimeSpan getTimeSpan()
public void setTimeSpan(ITimeSpan span)
span
- the time span to print
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |