public abstract class IlvChartPrintContext extends Object
IlvChartPrintableDocument
to define and handle the printing of a
portion of a chart within a page.IlvChartPrintableDocument.createPages()
,
IlvPrintableChart
Constructor and Description |
---|
IlvChartPrintContext(IlvUnit.Rectangle printArea,
IlvChartPrintableDocument document,
IlvPage page)
Creates a new
PrintContext object. |
Modifier and Type | Method and Description |
---|---|
Color |
getBackground()
Returns the background color to use, instead of the default background
color.
|
IlvChart |
getChart()
Returns the chart to be printed.
|
IlvChartPrintableDocument |
getDocument()
Returns the document.
|
Rectangle |
getDrawRect()
Returns the printing chart area draw rect in paper coordinate.
|
IlvPage |
getPage()
Returns the page.
|
IlvUnit.Rectangle |
getPrintArea()
Returns the print area.
|
abstract IlvDataInterval |
getRange(int axisIdx)
Returns the printing range for the specified axis.
|
boolean |
isTitleVisible(IlvScale scale)
Returns whether the title of the specified scale should be printed on
this page.
|
boolean |
isVisible(IlvChartDrawable drawable)
Returns whether the specified drawable object should be printed on this
page.
|
public IlvChartPrintContext(IlvUnit.Rectangle printArea, IlvChartPrintableDocument document, IlvPage page) throws IllegalArgumentException
PrintContext
object.printArea
- The destination printing area.document
- The document handling this page.page
- The page to be printed. Note that the page may have not
been added to a document yet.IllegalArgumentException
- The corresponding transforms cannot be computed.public final IlvChartPrintableDocument getDocument()
public final IlvPage getPage()
public final IlvChart getChart()
public final IlvUnit.Rectangle getPrintArea()
public abstract IlvDataInterval getRange(int axisIdx)
public Rectangle getDrawRect()
public Color getBackground()
The default implementation uses the background color in the
IlvChartPrintableDocument
.
null
if
the default (possibly Swing Look&Feel dependent) background
color should be used.public boolean isTitleVisible(IlvScale scale)
The default implementation uses the repeatTitle
property
of the IlvChartPrintableDocument
.
public boolean isVisible(IlvChartDrawable drawable)
The default implementation uses the repeatYScales
property
of the IlvChartPrintableDocument
.
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.