public class PrintContext extends Object
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 and Description |
---|
PrintContext() |
Modifier and Type | Method and Description |
---|---|
PrintGanttChart |
createPrintableGanttChart()
Constructs a printable Gantt chart.
|
AbstractGanttChart |
getGanttChart()
The Gantt chart that is being printed.
|
LayerContainer |
getLayerContainer()
Returns the layer container to print.
|
PrintSetup |
getPrintSetup()
Returns the print setup object containing information about the header
and footer setup.
|
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 |
setPrintSetup(PrintSetup setup)
The setup object containing the information for the header and footer.
|
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?).
|
public void setPrintSetup(PrintSetup setup)
setup
- the print setup informationpublic PrintSetup getPrintSetup()
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 IllegalStateException
IllegalStateException
- if a field is missingpublic ITimeSpan getTimeSpan()
public void setTimeSpan(ITimeSpan span)
span
- the time span to printpublic PrintGanttChart createPrintableGanttChart()
AbstractGanttChart.createPrintableGanttChart(PrintContext)
.Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.