public class IlvPrintableTimeScale extends IlvPrintableComponent
IlvTimeScale
.NO_SUCH_PAGE, PAGE_EXISTS
Constructor and Description |
---|
IlvPrintableTimeScale(IlvTimeScale timeScale,
IlvUnit.Rectangle area,
Date date,
IlvDuration duration)
Creates a
PrintableTimeScale to print a specified portion
of a given IlvTimeScale . |
Modifier and Type | Method and Description |
---|---|
IlvTimeScale.PaintContext |
getPaintContext()
Returns the
IlvTimeScale.PaintContext used to print the
time scale. |
int |
print(Graphics dst,
PageFormat format,
int pageIndex)
Implements the
java.awt.print.Printable.print method. |
void |
setPrintableArea(IlvUnit.Rectangle area)
Sets the area, in page coordinates, defining where the time
scale should be printed.
|
getComponent, getPrintableArea, setComponent
getPage
public IlvPrintableTimeScale(IlvTimeScale timeScale, IlvUnit.Rectangle area, Date date, IlvDuration duration)
PrintableTimeScale
to print a specified portion
of a given IlvTimeScale
.timeScale
- The IlvTimeScale
to be printed.area
- The rectangular area, in paper coordinates, defining where the
time scale is printed.date
- The start of the time interval to print.duration
- The duration of the time interval to print.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
public void setPrintableArea(IlvUnit.Rectangle area)
IlvTimeScale.PaintContext
for the specified print area.setPrintableArea
in class IlvPrintableComponent
area
- The print area, defined in page coordinates.public IlvTimeScale.PaintContext getPaintContext()
IlvTimeScale.PaintContext
used to print the
time scale.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.