Package com.luciad.lucy.addons.print
Class TLcyPrintContext
java.lang.Object
com.luciad.lucy.addons.print.ALcyPrintContext<ILcdGXYView>
com.luciad.lucy.addons.print.TLcyPrintContext
- All Implemented Interfaces:
ILcdChangeSource
A
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
.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Dispose this print context.Get theTLcyGXYViewPrintableComponent
that represents the content of the pages.int
Returns the used column count.int
Returns the used row count.Returns thePrintable
that prints the view.Returns the used printing area.void
Invalidates the state of thisALcyPrintContext
.Methods inherited from class com.luciad.lucy.addons.print.ALcyPrintContext
addChangeListener, firePrintableComponentChangeEvent, getProperties, getView, removeChangeListener
-
Method Details
-
dispose
public void dispose()Description copied from class:ALcyPrintContext
Dispose this print context.- Specified by:
dispose
in classALcyPrintContext<ILcdGXYView>
-
getGXYViewPrintableComponent
Get theTLcyGXYViewPrintableComponent
that represents the content of the pages.- Returns:
- the content of the pages.
-
getPrintArea
Returns the used printing area.- Returns:
- the used printing area.
-
invalidate
public void invalidate()Description copied from class:ALcyPrintContext
Invalidates the state of thisALcyPrintContext
. It can for example be used to refresh the print preview.- Specified by:
invalidate
in classALcyPrintContext<ILcdGXYView>
-
getPrintable
Description copied from class:ALcyPrintContext
Returns thePrintable
that prints the view.- Specified by:
getPrintable
in classALcyPrintContext<ILcdGXYView>
- Returns:
- the
Printable
that prints the view.
-
getPageColumnCount
public int getPageColumnCount()Returns the used column count.- Returns:
- the used column count.
-
getPageRowCount
public int getPageRowCount()Returns the used row count.- Returns:
- the used row count.
-