public class TLcyPrintContext extends ALcyPrintContext<ILcdGXYView>
TLcyPrintContext
represents all that is needed to print, preview, modify, ... a
component which can be printed to one or more pages.
The method getGXYViewPrintableComponent()
returns the TLcyPrintableMapComponent
corresponding to the page layout and its content. This is the full component containing
the main map component and all extra elements as eg. the header text, the scale icon,...
Instances of this object are created internally in the print add-on. They are for example used
as a parameter in the methods of TLcyPrintPreviewFactory
.
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose this print context.
|
TLcyGXYViewPrintableComponent |
getGXYViewPrintableComponent()
Get the
TLcyGXYViewPrintableComponent that represents the content
of the pages. |
int |
getPageColumnCount()
Returns the used column count.
|
int |
getPageRowCount()
Returns the used row count.
|
Printable |
getPrintable()
Returns the
Printable that prints the view. |
ILcdBounds |
getPrintArea()
Returns the used printing area.
|
void |
invalidate()
Invalidates the state of this
ALcyPrintContext . |
addChangeListener, firePrintableComponentChangeEvent, getProperties, getView, removeChangeListener
public void dispose()
ALcyPrintContext
dispose
in class ALcyPrintContext<ILcdGXYView>
public TLcyGXYViewPrintableComponent getGXYViewPrintableComponent()
TLcyGXYViewPrintableComponent
that represents the content
of the pages.public ILcdBounds getPrintArea()
public void invalidate()
ALcyPrintContext
ALcyPrintContext
. It can
for example be used to refresh the print preview.invalidate
in class ALcyPrintContext<ILcdGXYView>
public Printable getPrintable()
ALcyPrintContext
Printable
that prints the view.getPrintable
in class ALcyPrintContext<ILcdGXYView>
Printable
that prints the view.public int getPageColumnCount()
public int getPageRowCount()