public class GanttPrinter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
APACHE |
static java.lang.String |
XDO |
| Constructor and Description |
|---|
GanttPrinter(UIGantt gantt)
Constructs an instance of the GanttPrinter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
print(java.io.OutputStream out)
Generates FO for the gantt object used for initializing this object.
|
void |
setColumnVisible(int index,
boolean isVisible)
Specifies the column visibility.
|
void |
setEndTime(java.util.Date end)
Specifies the end time for this ganttPrint object.
|
void |
setFOType(java.lang.String type)
Specifies the FO type.
|
void |
setMargin(int top,
int bottom,
int left,
int right)
Specifies the top, bottom, left, and right margin in CSS point unit.
|
void |
setPageSize(int height,
int width)
Specifies the page height and width in CSS point unit.
|
void |
setStartTime(java.util.Date start)
Specifies the start time for this ganttPrint object.
|
public static final java.lang.String XDO
public static final java.lang.String APACHE
public GanttPrinter(UIGantt gantt)
gantt - The UIGantt object.public void print(java.io.OutputStream out)
out - Write FO to this output stream.public void setMargin(int top,
int bottom,
int left,
int right)
top - The top margin.bottom - The bottom margin.left - The left margin.right - The right margin.public void setPageSize(int height,
int width)
height - The page heightwidth - The page widthpublic void setStartTime(java.util.Date start)
start - The start time for this ganttPrint object.public void setEndTime(java.util.Date end)
end - The end time for this ganttPrint object.public void setColumnVisible(int index,
boolean isVisible)
index - The column index.isVisible - The visibility flag.public void setFOType(java.lang.String type)
type - Valid values are GanttPrinter.XDO (default) and GanttPrinter.APACHE