public class IlvPrintableGanttSheet extends IlvPrintableComponent
IlvGanttSheet
. Users of the class can specify the time
interval and the vertical interval. The class automatically calculates
the transformation required to print the specified portion.NO_SUCH_PAGE, PAGE_EXISTS
Constructor and Description |
---|
IlvPrintableGanttSheet(IlvGanttSheet sheet,
IlvUnit.Rectangle area,
Date start,
IlvDuration duration,
double yStart,
double yEnd)
Creates a
PrintableGanttSheet that is used to print
a portion of the Gantt sheet. |
IlvPrintableGanttSheet(IlvGanttSheet sheet,
IlvUnit.Rectangle area,
Date start,
IlvDuration duration,
int row,
double scale)
Creates a
PrintableGanttSheet that is used to print
a portion of the Gantt sheet. |
IlvPrintableGanttSheet(IlvGanttSheet sheet,
IlvUnit.Rectangle area,
Date start,
IlvDuration duration,
int fromRow,
int toRow)
Creates a
PrintableGanttSheet that is used to print
a portion of the Gantt sheet. |
Modifier and Type | Method and Description |
---|---|
boolean |
isPrintingWithBackground()
Returns whether the background is painted when printing.
|
int |
print(Graphics dst,
PageFormat format,
int pageIndex)
Implements the
java.awt.print.Printable.print method. |
void |
setPrintingWithBackground(boolean includeBackground)
Sets whether the background is painted when printing.
|
getComponent, getPrintableArea, setComponent, setPrintableArea
getPage
public IlvPrintableGanttSheet(IlvGanttSheet sheet, IlvUnit.Rectangle area, Date start, IlvDuration duration, int fromRow, int toRow)
PrintableGanttSheet
that is used to print
a portion of the Gantt sheet.sheet
- The Gantt sheet to be printed.area
- The rectangular area, in paper coordinates, indicating the
position where the Gantt sheet should be printed.start
- The start date of the time interval to be printed.duration
- The duration of the time interval to be printed.fromRow
- The top row of the vertical interval to be printed.toRow
- The bottom row of the vertical interval to be printed.public IlvPrintableGanttSheet(IlvGanttSheet sheet, IlvUnit.Rectangle area, Date start, IlvDuration duration, int row, double scale)
PrintableGanttSheet
that is used to print
a portion of the Gantt sheet.sheet
- The Gantt sheet to be printed.area
- The rectangular area, in paper coordinates, indicating the
position where the Gantt sheet should be printed.start
- The start date of the time interval to be printed.duration
- The duration of the time interval to be printed.row
- The top row of the vertical interval to be printed.scale
- The vertical zoom scale used to print.public IlvPrintableGanttSheet(IlvGanttSheet sheet, IlvUnit.Rectangle area, Date start, IlvDuration duration, double yStart, double yEnd)
PrintableGanttSheet
that is used to print
a portion of the Gantt sheet.sheet
- The Gantt sheet to be printed.area
- The rectangular area, in paper coordinates, indicating the
position where the Gantt sheet should be printed.start
- The start date of the time interval to be printed.duration
- The duration of the time interval to be printed.yStart
- The top of the vertical interval to be printed.yEnd
- The bottom of the vertical interval to be printed.public boolean isPrintingWithBackground()
true
if the background is painted when printingsetPrintingWithBackground(boolean)
public void setPrintingWithBackground(boolean includeBackground)
false
: By default, no background is
printed.includeBackground
- true
if the background shall be
painted when printingisPrintingWithBackground()
,
IlvManagerView.setBackground(Color)
,
IlvManagerView.setBackgroundPatternLocation(URL)
public int print(Graphics dst, PageFormat format, int pageIndex) throws PrinterException
java.awt.print.Printable.print
method. This method is called
to print the object.dst
- The output device, which must be a Graphics2D
object.format
- The format of the page.pageIndex
- The index of the page.PrinterException
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.