Package com.luciad.lucy.addons.print
Class ALcyPrintableComponentFactory
java.lang.Object
com.luciad.lucy.addons.print.ALcyPrintableMapComponentFactory<ILcyMapComponent>
com.luciad.lucy.addons.print.ALcyPrintableComponentFactory
- Direct Known Subclasses:
TLcyPrintableComponentFactory
public abstract class ALcyPrintableComponentFactory
extends ALcyPrintableMapComponentFactory<ILcyMapComponent>
Factory for the creation of a printable component for some
ILcyMapComponent
.
The printable component represents the page layout and its content as a java.awt.Component
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract TLcyGXYViewPrintableComponent
createPrintableComponent
(ILcyMapComponent aMapComponent, TLcyProperties aProperties) Creates a printable component for the givenILcyMapComponent
.Methods inherited from class com.luciad.lucy.addons.print.ALcyPrintableMapComponentFactory
getLucyEnv, setLucyEnv
-
Constructor Details
-
ALcyPrintableComponentFactory
public ALcyPrintableComponentFactory()
-
-
Method Details
-
createPrintableComponent
public abstract TLcyGXYViewPrintableComponent createPrintableComponent(ILcyMapComponent aMapComponent, TLcyProperties aProperties) Creates a printable component for the givenILcyMapComponent
. It will typically return a component that contains the same data as the given map component, possibly decorated with a legend, overview, header text, ... The parameterTLcyProperties
contains a number of settings, which can be used while creating theTLcyGXYViewPrintableComponent
, for example to find out if an overview needs to be added or not. Furthermore, theTLcyGXYViewPrintableComponent
should update itself whenever applicable properties in aProperties are changed. What properties are applicable, depends on the implementation of this factory. It could for example show/hide the overview based on a boolean value of the properties object. The keys and values that can be expected in aProperties are described in the various_KEY
and_VALUE
constants ofTLcyPrintAddOn
.- Specified by:
createPrintableComponent
in classALcyPrintableMapComponentFactory<ILcyMapComponent>
- Parameters:
aMapComponent
- The map component.aProperties
- The property node.- Returns:
- the created printable component
-