Class TLcyPrintAddOn
- Page Setup...: shows a page setup dialog.
- Print Preview...: shows a print preview dialog.
- Print...: shows a print dialog.
- Define Print Area: allows you to draw a print area on the map. If a print area is defined, the addon will use this area as the area that needs to be printed, otherwise the current map view is used.
ALcyPrintableComponentFactory
. The factory instance can be explicitly set by using
setPrintableComponentFactory
or the class can be set by using the configuration file.
If no factory is set, a default factory will be used.
The content of the print preview dialog is created by a ALcyPrintPreviewFactory
. The
factory instance can be explicitly set by using setPrintPreviewFactory
or the class
can be set by using the configuration file. If no factory is set, a default factory will be used.
The content of the editor used to modify a selected print area, is created by a
ILcyObjectCustomizerFactory
. The factory instance can be explicitly set using
setPrintAreaCustomizerFactory
or the class can be set
using the configuration file. It is recommended to subclass TLcyPrintAreaCustomizerFactory
for this purpose. If no factory is set, a default factory will be used.
A TLcyProperties
object is created for every map component. It contains the current
stored values of the properties used in the print addon. Initially all configured properties from the
configuration file are added. Afterwards, the object is updated each time a property has changed eg.
the page orientation, the visibility of the footer text,... The keys that can be used to retrieve
information from or set information to the properties (using for example get
)
are the constants of this class ending in KEY
, e.g., PAGE_FORMAT_KEY
,
HEADER_TEXT_SELECTED_KEY
, ... The value that can be expected for every key is documented
in the key constant itself, the default value is specified in constants ending in VALUE_DEFAULT
.
createPageDecorator
, or to add printed pages by overriding
createPrintPageable
. For more
information, see the javadoc of these methods.
Note: If the new functionality is not desired, the behavior prior to 6.1 can be used by
setting the configuration property "TLcyPrintAddOn.usePriorTo6.1" to true. In this case, no
multipage printing is possible and only the 'Print...' menu item is added. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Property name for the background color of the maps in the configuration file.static final String
Property name for the background color of the map overviews in the configuration file.static final Color
Default value for the propertyBACKGROUND_COLOR_MAP_OVERVIEW_KEY
.static final Color
Default value for the propertyBACKGROUND_COLOR_MAP_KEY
.static final String
Property name which represents the visibility of the 'classification combo box'.static final boolean
Default value for the propertyCLASSIFICATION_COMBO_BOX_VISIBLE_KEY
static final String
Property name which represents the selected value of the 'classification combo box'.static final String
Property name which represents the value of the 'classification checkbox'.static final boolean
Default value for the propertyCLASSIFICATION_SELECTED_KEY
static final String
Property name which represents the visibility of the 'classification checkbox'.static final boolean
Default value for the propertyCLASSIFICATION_VISIBLE_KEY
static final String
Property suffix for the column count.static final int
Default value for the propertyCOL_COUNT_SUFFIX
.static final String
Property name which represents the value of the 'crop marks' checkbox.static final boolean
Default value for the propertyCROP_MARKS_SELECTED_KEY
.static final String
Property name which represents the visibility of the 'crop marks' checkbox.static final boolean
Default value for the propertyCROP_MARKS_VISIBLE_KEY
.static final String
Property name which represents the html file to use as 'footer text'.static final String
Property name which represents the value of the 'footer text' checkbox.static final boolean
Default value for the propertyFOOTER_TEXT_SELECTED_KEY
.static final String
Default value for the propertyFOOTER_TEXT_KEY
.static final String
Property name which represents the visibility of the 'footer text' checkbox.static final boolean
Default value for the propertyFOOTER_TEXT_VISIBLE_KEY
.static final String
Property name which represents the html file to use as 'header text'.static final String
Property name which represents the value of the 'header text' checkbox.static final boolean
Default value for the propertyHEADER_TEXT_SELECTED_KEY
.static final String
Default value for the propertyHEADER_TEXT_KEY
.static final String
Property name which represents the visibility of the 'header text' checkbox.static final boolean
Default value for the propertyHEADER_TEXT_VISIBLE_KEY
.static final String
Deprecated.This property has been deprecated.static final boolean
Deprecated.This property has been deprecated.static final String
Property name which represents the value of the 'legend' checkbox.static final boolean
Default value for the propertyLEGEND_SELECTED_KEY
.static final String
Property name which represents the visibility of the 'legend' checkbox.static final boolean
Default value for the propertyLEGEND_VISIBLE_KEY
.static final String
Property name which represents the value of the 'header text field'.static final boolean
Default value for the propertyMODIFIABLE_HEADER_TEXT_FIELD_VISIBLE_KEY
static final String
Property name which controls the text to use as 'header text'.static final String
Property name which represents the value of the 'header text' checkbox.static final boolean
Default value for the propertyMODIFIABLE_HEADER_TEXT_SELECTED_KEY
static final String
Default value for the propertyMODIFIABLE_HEADER_TEXT_KEY
static final String
Property name which represents the visibility of the 'header text' checkbox.static final boolean
Default value for the propertyMODIFIABLE_HEADER_TEXT_FIELD_VISIBLE_KEY
static final String
Property name for the chosen page orientation.static final String
Default value for the propertyORIENTATION_CHOICE_KEY
.static final String
Custom orientation 'landscape' for the propertyORIENTATION_CHOICE_KEY
.static final String
Custom orientation 'portrait' for the propertyORIENTATION_CHOICE_KEY
.static final String
Property name which represents the enabled state of the 'overview' checkbox.static final boolean
Default value for the propertyOVERVIEW_ENABLED_KEY
.static final String
Property name which represents the value of the 'overview' checkbox.static final boolean
Default value for the propertyOVERVIEW_SELECTED_KEY
.static final String
Property name which represents the visibility of the 'overview' checkbox.static final boolean
Default value for the propertyOVERVIEW_VISIBLE_KEY
.static final String
Property name for the chosen page format.static final String
Property name which represents the value of the 'position marks' checkbox.static final boolean
Default value for the propertyPOSITION_MARKS_SELECTED_KEY
.static final String
Property name which represents the visibility of the 'position marks' checkbox.static final boolean
Default value for the propertyPOSITION_MARKS_VISIBLE_KEY
.static final String
Property name for the pages limit of the print preview.static final int
Default value for the propertyPREVIEW_PAGES_LIMIT_KEY
static final String
Property name for the print preview scales.static final double[]
Default value for the propertyPREVIEW_SCALE_ITEMS_KEY
static final String
Property name for the print preview scale.static final double
Default value for the propertyPREVIEW_SCALE_KEY
static final String
Property suffix which represents the print area to use.static final ILcdBounds
Default value for the propertyPRINT_AREA_SUFFIX
.static final TLcyGroupDescriptor
static final String
Property name for the pages limit of the print action.static final int
Default value for the propertyPRINT_PAGES_LIMIT_KEY
static final String
Property that represents an enumeration of the possible print scale values.static final double[]
Default value for the propertyPRINT_SCALE_ITEMS_KEY
.static final String
Property representing the relative size of icons, lines, and text.static final String
Property name which represents the maximum print scale.static final double
Default value for the propertyPRINT_SCALE_MAXIMUM_KEY
.static final String
Property name which represents the minimum print scale.static final double
Default value for the propertyPRINT_SCALE_MINIMUM_KEY
.static final double
Default value for the propertyPRINT_SCALE_KEY
, expressed as a percentage (0.95 means 95%).static final String
Property name which represents the visibility of the print scale slider.static final boolean
Default value for the propertyPRINT_SCALE_VISIBLE_KEY
.static final String
Property name for the chosen print service.static final String
Property name for the chosen printer job.static final String
Property name representing the printing area to use.static final String
Default value for the propertyPRINTING_AREA_CHOICE_KEY
.static final String
Custom printing area 'printArea' for the propertyPRINTING_AREA_CHOICE_KEY
.static final String
Custom printing area 'viewExtents' for the propertyPRINTING_AREA_CHOICE_KEY
.static final String
The property prefix to use for the 'printingArea' properties.static final String
Property that represents an enumeration of the possible rasterization quality values in dpi.static final int[]
Default value for the propertyRASTERIZATION_QUALITY_ITEMS_KEY
.static final String
Property name which represents the rasterization quality in dpi.static final String
Property that represents an enumeration fo the labels for the possible rasterization quality values in dpi.static final String[]
Default value for the propertyRASTERIZATION_QUALITY_LABELS_KEY
.static final String
Property name which represents the maximum rasterization quality in dpi.static final int
Default value for the propertyRASTERIZATION_QUALITY_MAXIMUM_KEY
.static final String
Property name which represents the minimum rasterization quality in dpi.static final int
Default value for the propertyRASTERIZATION_QUALITY_MINIMUM_KEY
.static final int
Default value for the propertyRASTERIZATION_QUALITY_KEY
.static final String
Property name which represents the visibility of the rasterization quality slider.static final boolean
Default value for the propertyRASTERIZATION_QUALITY_VISIBLE_KEY
.static final String
Property suffix for the row count.static final int
Default value for the propertyROW_COUNT_SUFFIX
.static final String
Property name which represents the value of the 'scale icon' checkbox.static final boolean
Default value for the propertySCALE_ICON_SELECTED_KEY
.static final String
Property name which represents the visibility of the 'scale icon' checkbox.static final boolean
Default value for the propertySCALE_ICON_VISIBLE_KEY
.static final String
Property suffix which represents a chosen calculation type.static final String
Default value for the propertySCALE_OR_PAGES_SUFFIX
.static final String
Custom 'pages' value for the propertySCALE_OR_PAGES_SUFFIX
.static final String
Custom 'scale' value for the propertySCALE_OR_PAGES_SUFFIX
.static final String
Property name which represents the value of the 'scale indication' checkbox.static final boolean
Default value for the propertySCALE_TEXT_SELECTED_KEY
.static final String
Property name which represents the visibility of the 'scale indication' checkbox.static final boolean
Default value for the propertySCALE_TEXT_VISIBLE_KEY
.static final String
Property suffix which represents the value of the 'snap to full pages' checkbox.static final boolean
Default value for the propertySNAP_TO_FULL_PAGES_SELECTED_SUFFIX
.static final String
Property suffix which represents the visibility of the 'snap to full pages' checkbox.static final boolean
Default value for the propertySNAP_TO_FULL_PAGES_VISIBLE_SUFFIX
.static final String
Property suffix for the paper scales.static final double[]
Default value for the propertySPECIFIC_SCALE_ITEMS_SUFFIX
.static final String
Property suffix for the paper scale.static final double
Default value for the propertySPECIFIC_SCALE_SUFFIX
.static final String
Property name which represents the visibility of the 'title text field'.static final boolean
Default value for the propertyTITLE_TEXT_FIELD_VISIBLE_KEY
.static final String
Property name which represents the text to use as 'title text'.static final String
Property name which represents the value of the 'title text' checkbox.static final boolean
Default value for the propertyTITLE_TEXT_SELECTED_KEY
.static final String
Default value for the propertyTITLE_TEXT_KEY
.static final String
Property name which represents the visibility of the 'title text' checkbox.static final boolean
Default value for the propertyTITLE_TEXT_VISIBLE_KEY
.static final String
Property name which represents the way to handle transparency.static final int
Default value for the propertyTRANSPARENCY_HANDLING_KEY
static final int
Custom transparency handling for the propertyTRANSPARENCY_HANDLING_KEY
static final int
Custom transparency handling for the propertyTRANSPARENCY_HANDLING_KEY
static final int
Custom transparency handling for the propertyTRANSPARENCY_HANDLING_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected TLcyProperties
createDefaultProperties
(ILcyMapComponent aMapComponent) This method is used by thegetProperties(ILcyMapComponent)
method to retrieve the properties for a certain map component the first time printing is triggered for that map component.createPageDecorator
(TLcyPrintContext aPrintContext) Creates aPrintable
that can be used to decorate each page.createPrintPageable
(Pageable aViewPageable, TLcyPrintContext aPrintContext) Returns thePageable
that is used for printing (not for preview printing), based on the givenPageable
.Returns theALcyPrintableComponentFactory
that is used by this addon.Returns theILcyObjectCustomizerFactory
that is used by this addon.Returns anILcdFilter
that returns true if the given object is anILcdGXYLayer
that represents the print area on the map, false otherwise.Deprecated.only useful in prior to 6.1 modeReturns theALcyPrintPreviewFactory
that is used by this addon.getProperties
(ILcyMapComponent aMapComponent) Returns theTLcyProperties
for the given map component.void
performQuickPrint
(TLcyProperties aProperties, ILcyMapComponent aMapComponent) Trigger the print action foraMapComponent
withaProperties
containing all desired settings.void
plugInto
(ILcyLucyEnv aLucyEnv) Plugs this addon into the given lucy environment.void
setPrintableComponentFactory
(ALcyPrintableComponentFactory aPrintableComponentFactory) Sets theALcyPrintableComponentFactory
that should be used by this addon.void
setPrintAreaCustomizerFactory
(ILcyObjectCustomizerFactory aPrintAreaCustomizerFactory) Sets theILcyObjectCustomizerFactory
that should be used by this addon.void
setPrintComponentAction
(TLcdPrintComponentAction aPrintComponentAction) Deprecated.only useful in prior to 6.1 modevoid
setPrintPreviewFactory
(ALcyPrintPreviewFactory aPrintPreviewFactory) Sets theALcyPrintPreviewFactory
that should be used by this addon.void
unplugFrom
(ILcyLucyEnv aLucyEnv) Unplugs this addon from the given Lucy environment.Methods inherited from class com.luciad.lucy.addons.ALcyAddOn
getConfigSourceName, getDisplayName, setConfigSourceName, setDisplayName
-
Field Details
-
PRINT_GROUP_DESCRIPTOR
-
BACKGROUND_COLOR_MAP_KEY
Property name for the background color of the maps in the configuration file. The corresponding property value is of typejava.awt.Color
.- See Also:
-
BACKGROUND_COLOR_MAP_VALUE_DEFAULT
Default value for the propertyBACKGROUND_COLOR_MAP_KEY
. -
BACKGROUND_COLOR_MAP_OVERVIEW_KEY
Property name for the background color of the map overviews in the configuration file. The corresponding property value is of typejava.awt.Color
.- See Also:
-
BACKGROUND_COLOR_MAP_OVERVIEW_VALUE_DEFAULT
Default value for the propertyBACKGROUND_COLOR_MAP_OVERVIEW_KEY
. -
ORIENTATION_CHOICE_KEY
Property name for the chosen page orientation. The corresponding property value is of typejava.lang.String
. UseORIENTATION_CHOICE_VALUE_PORTRAIT
orORIENTATION_CHOICE_VALUE_LANDSCAPE
- See Also:
-
ORIENTATION_CHOICE_VALUE_PORTRAIT
Custom orientation 'portrait' for the propertyORIENTATION_CHOICE_KEY
.- See Also:
-
ORIENTATION_CHOICE_VALUE_LANDSCAPE
Custom orientation 'landscape' for the propertyORIENTATION_CHOICE_KEY
.- See Also:
-
ORIENTATION_CHOICE_VALUE_DEFAULT
Default value for the propertyORIENTATION_CHOICE_KEY
.- See Also:
-
PAGE_FORMAT_KEY
Property name for the chosen page format. The corresponding property value is of typejava.awt.print.PageFormat
.- See Also:
-
PRINTER_JOB_KEY
Property name for the chosen printer job. The corresponding property value is of typejava.awt.print.PrinterJob
.- See Also:
-
PRINT_SERVICE_KEY
Property name for the chosen print service. The corresponding property value is of typejavax.print.PrintService
.- See Also:
-
SCALE_OR_PAGES_SUFFIX
Property suffix which represents a chosen calculation type. The corresponding property value is of typejava.lang.String
. UseSCALE_OR_PAGES_VALUE_PAGES
orSCALE_OR_PAGES_VALUE_SCALE
Please refer toPRINTING_AREA_CHOICE_KEY
for more information.- See Also:
-
SCALE_OR_PAGES_VALUE_PAGES
Custom 'pages' value for the propertySCALE_OR_PAGES_SUFFIX
.- See Also:
-
SCALE_OR_PAGES_VALUE_SCALE
Custom 'scale' value for the propertySCALE_OR_PAGES_SUFFIX
.- See Also:
-
SCALE_OR_PAGES_VALUE_DEFAULT
Default value for the propertySCALE_OR_PAGES_SUFFIX
.- See Also:
-
COL_COUNT_SUFFIX
Property suffix for the column count. The corresponding property value is of typejava.lang.Integer
. Please refer toPRINTING_AREA_CHOICE_KEY
for more information.- See Also:
-
COL_COUNT_VALUE_DEFAULT
public static final int COL_COUNT_VALUE_DEFAULTDefault value for the propertyCOL_COUNT_SUFFIX
.- See Also:
-
ROW_COUNT_SUFFIX
Property suffix for the row count. The corresponding property value is of typejava.lang.Integer
. Please refer toPRINTING_AREA_CHOICE_KEY
for more information.- See Also:
-
ROW_COUNT_VALUE_DEFAULT
public static final int ROW_COUNT_VALUE_DEFAULTDefault value for the propertyROW_COUNT_SUFFIX
.- See Also:
-
SPECIFIC_SCALE_ITEMS_SUFFIX
Property suffix for the paper scales. The corresponding property value is of typejava.lang.Double[]
. Please refer toPRINTING_AREA_CHOICE_KEY
for more information.- See Also:
-
SPECIFIC_SCALE_ITEMS_VALUE_DEFAULT
public static final double[] SPECIFIC_SCALE_ITEMS_VALUE_DEFAULTDefault value for the propertySPECIFIC_SCALE_ITEMS_SUFFIX
. -
SPECIFIC_SCALE_SUFFIX
Property suffix for the paper scale. If omitted or zero, the converted current view scale is used. The corresponding property value is of typejava.lang.Double
. Please refer toPRINTING_AREA_CHOICE_KEY
for more information.- See Also:
-
SPECIFIC_SCALE_VALUE_DEFAULT
public static final double SPECIFIC_SCALE_VALUE_DEFAULTDefault value for the propertySPECIFIC_SCALE_SUFFIX
.- See Also:
-
SNAP_TO_FULL_PAGES_VISIBLE_SUFFIX
Property suffix which represents the visibility of the 'snap to full pages' checkbox. The corresponding property value is of typejava.lang.Boolean
. Please refer toPRINTING_AREA_CHOICE_KEY
for more information.- See Also:
-
SNAP_TO_FULL_PAGES_VISIBLE_VALUE_DEFAULT
public static final boolean SNAP_TO_FULL_PAGES_VISIBLE_VALUE_DEFAULTDefault value for the propertySNAP_TO_FULL_PAGES_VISIBLE_SUFFIX
.- See Also:
-
SNAP_TO_FULL_PAGES_SELECTED_SUFFIX
Property suffix which represents the value of the 'snap to full pages' checkbox. The corresponding property value is of typejava.lang.Boolean
. Please refer toPRINTING_AREA_CHOICE_KEY
for more information.- See Also:
-
SNAP_TO_FULL_PAGES_SELECTED_VALUE_DEFAULT
public static final boolean SNAP_TO_FULL_PAGES_SELECTED_VALUE_DEFAULTDefault value for the propertySNAP_TO_FULL_PAGES_SELECTED_SUFFIX
.- See Also:
-
PRINT_AREA_SUFFIX
Property suffix which represents the print area to use. The corresponding property value is of typeILcdBounds
and it uses the world reference from the map component in which the print area has been created. Please refer toPRINTING_AREA_CHOICE_KEY
for more information.- See Also:
-
PRINT_AREA_VALUE_DEFAULT
Default value for the propertyPRINT_AREA_SUFFIX
. -
INCLUDES_COVERED_AREA_SUFFIX
Deprecated.This property has been deprecated. It is handled automatically, based on the value of thePRINTING_AREA_CHOICE_KEY
property (PRINTING_AREA_CHOICE_VALUE_PRINT_AREA
-> true
, otherwisefalse
).Property suffix which determines if the header and footer text should be included inside the given print area bounds,PRINT_AREA_SUFFIX
. The corresponding property value is of typejava.lang.Boolean
. Please refer toPRINTING_AREA_CHOICE_KEY
for more information.- See Also:
-
INCLUDES_COVERED_AREA_VALUE_DEFAULT
Deprecated.This property has been deprecated. SeeINCLUDES_COVERED_AREA_SUFFIX
.Default value for the propertyINCLUDES_COVERED_AREA_SUFFIX
.- See Also:
-
PRINTING_AREA_CHOICE_KEY
Property name representing the printing area to use. The value of this property is a part of the property name of all other 'printingArea' properties. Just add the value between the constantPRINTING_AREA_PREFIX
and "." plus the suffix of the property you want to create.For example,
PRINTING_AREA_PREFIX
+PRINTING_AREA_CHOICE_VALUE_VIEW_EXTENTS
+ "." +COL_COUNT_SUFFIX
represents the property key corresponding to the number of columns the printing areaPRINTING_AREA_CHOICE_VALUE_VIEW_EXTENTS
should use. The corresponding property value is of typejava.lang.String
.- See Also:
-
PRINTING_AREA_CHOICE_VALUE_VIEW_EXTENTS
Custom printing area 'viewExtents' for the propertyPRINTING_AREA_CHOICE_KEY
.- See Also:
-
PRINTING_AREA_CHOICE_VALUE_PRINT_AREA
Custom printing area 'printArea' for the propertyPRINTING_AREA_CHOICE_KEY
.- See Also:
-
PRINTING_AREA_CHOICE_VALUE_DEFAULT
Default value for the propertyPRINTING_AREA_CHOICE_KEY
.- See Also:
-
PRINTING_AREA_PREFIX
The property prefix to use for the 'printingArea' properties. Please refer toPRINTING_AREA_CHOICE_KEY
for more information.- See Also:
-
CROP_MARKS_VISIBLE_KEY
Property name which represents the visibility of the 'crop marks' checkbox. The corresponding property value is of typejava.lang.Boolean
.- See Also:
-
CROP_MARKS_VISIBLE_VALUE_DEFAULT
public static final boolean CROP_MARKS_VISIBLE_VALUE_DEFAULTDefault value for the propertyCROP_MARKS_VISIBLE_KEY
.- See Also:
-
CROP_MARKS_SELECTED_KEY
Property name which represents the value of the 'crop marks' checkbox. The corresponding property value is of typejava.lang.Boolean
.- See Also:
-
CROP_MARKS_SELECTED_VALUE_DEFAULT
public static final boolean CROP_MARKS_SELECTED_VALUE_DEFAULTDefault value for the propertyCROP_MARKS_SELECTED_KEY
.- See Also:
-
POSITION_MARKS_VISIBLE_KEY
Property name which represents the visibility of the 'position marks' checkbox. The corresponding property value is of typejava.lang.Boolean
.- See Also:
-
POSITION_MARKS_VISIBLE_VALUE_DEFAULT
public static final boolean POSITION_MARKS_VISIBLE_VALUE_DEFAULTDefault value for the propertyPOSITION_MARKS_VISIBLE_KEY
.- See Also:
-
POSITION_MARKS_SELECTED_KEY
Property name which represents the value of the 'position marks' checkbox. The corresponding property value is of typejava.lang.Boolean
.- See Also:
-
POSITION_MARKS_SELECTED_VALUE_DEFAULT
public static final boolean POSITION_MARKS_SELECTED_VALUE_DEFAULTDefault value for the propertyPOSITION_MARKS_SELECTED_KEY
.- See Also:
-
TITLE_TEXT_VISIBLE_KEY
Property name which represents the visibility of the 'title text' checkbox. The corresponding property value is of typejava.lang.Boolean
.- See Also:
-
TITLE_TEXT_VISIBLE_VALUE_DEFAULT
public static final boolean TITLE_TEXT_VISIBLE_VALUE_DEFAULTDefault value for the propertyTITLE_TEXT_VISIBLE_KEY
.- See Also:
-
TITLE_TEXT_SELECTED_KEY
Property name which represents the value of the 'title text' checkbox. The corresponding property value is of typejava.lang.Boolean
.- See Also:
-
TITLE_TEXT_SELECTED_VALUE_DEFAULT
public static final boolean TITLE_TEXT_SELECTED_VALUE_DEFAULTDefault value for the propertyTITLE_TEXT_SELECTED_KEY
.- See Also:
-
TITLE_TEXT_FIELD_VISIBLE_KEY
Property name which represents the visibility of the 'title text field'. The corresponding property value is of typejava.lang.Boolean
.- See Also:
-
TITLE_TEXT_FIELD_VISIBLE_VALUE_DEFAULT
public static final boolean TITLE_TEXT_FIELD_VISIBLE_VALUE_DEFAULTDefault value for the propertyTITLE_TEXT_FIELD_VISIBLE_KEY
.- See Also:
-
TITLE_TEXT_KEY
Property name which represents the text to use as 'title text'. The corresponding property value is of typejava.lang.String
.- See Also:
-
TITLE_TEXT_VALUE_DEFAULT
Default value for the propertyTITLE_TEXT_KEY
.- See Also:
-
MODIFIABLE_HEADER_TEXT_VISIBLE_KEY
Property name which represents the visibility of the 'header text' checkbox. The corresponding property value is of typejava.lang.Boolean
. The difference with the#HEADER_TEXT_*
properties is that this property controls the header text which is modifiable in the UI by the user.- Since:
- 2016.1.1
- See Also:
-
MODIFIABLE_HEADER_TEXT_VISIBLE_VALUE_DEFAULT
public static final boolean MODIFIABLE_HEADER_TEXT_VISIBLE_VALUE_DEFAULTDefault value for the propertyMODIFIABLE_HEADER_TEXT_FIELD_VISIBLE_KEY
- Since:
- 2016.1.1
- See Also:
-
MODIFIABLE_HEADER_TEXT_SELECTED_KEY
Property name which represents the value of the 'header text' checkbox. The corresponding property value is of typejava.lang.Boolean
. The difference with the#HEADER_TEXT_*
properties is that this property controls the header text which is modifiable in the UI by the user.- Since:
- 2016.1.1
- See Also:
-
MODIFIABLE_HEADER_TEXT_SELECTED_VALUE_DEFAULT
public static final boolean MODIFIABLE_HEADER_TEXT_SELECTED_VALUE_DEFAULTDefault value for the propertyMODIFIABLE_HEADER_TEXT_SELECTED_KEY
- Since:
- 2016.1.1
- See Also:
-
MODIFIABLE_HEADER_TEXT_FIELD_VISIBLE_KEY
Property name which represents the value of the 'header text field'. The corresponding property value is of typejava.lang.Boolean
. The difference with the#HEADER_TEXT_*
properties is that this property controls the header text which is modifiable in the UI by the user.- Since:
- 2016.1.1
- See Also:
-
MODIFIABLE_HEADER_TEXT_FIELD_VISIBLE_VALUE_DEFAULT
public static final boolean MODIFIABLE_HEADER_TEXT_FIELD_VISIBLE_VALUE_DEFAULTDefault value for the propertyMODIFIABLE_HEADER_TEXT_FIELD_VISIBLE_KEY
- Since:
- 2016.1.1
- See Also:
-
MODIFIABLE_HEADER_TEXT_KEY
Property name which controls the text to use as 'header text'. The corresponding property value is of typejava.lang.String
. The difference with the#HEADER_TEXT_*
properties is that this property controls the header text which is modifiable in the UI by the user.- Since:
- 2016.1.1
- See Also:
-
MODIFIABLE_HEADER_TEXT_VALUE_DEFAULT
Default value for the propertyMODIFIABLE_HEADER_TEXT_KEY
- Since:
- 2016.1.1
- See Also:
-
CLASSIFICATION_VISIBLE_KEY
Property name which represents the visibility of the 'classification checkbox'. The corresponding property value is of typejava.lang.Boolean
.- Since:
- 2016.1.1
- See Also:
-
CLASSIFICATION_VISIBLE_VALUE_DEFAULT
public static final boolean CLASSIFICATION_VISIBLE_VALUE_DEFAULTDefault value for the propertyCLASSIFICATION_VISIBLE_KEY
- Since:
- 2016.1.1
- See Also:
-
CLASSIFICATION_SELECTED_KEY
Property name which represents the value of the 'classification checkbox'. The corresponding property value is of typejava.lang.Boolean
- Since:
- 2016.1.1
- See Also:
-
CLASSIFICATION_SELECTED_VALUE_DEFAULT
public static final boolean CLASSIFICATION_SELECTED_VALUE_DEFAULTDefault value for the propertyCLASSIFICATION_SELECTED_KEY
- Since:
- 2016.1.1
- See Also:
-
CLASSIFICATION_COMBO_BOX_VISIBLE_KEY
Property name which represents the visibility of the 'classification combo box'. The corresponding property value is of typejava.lang.Boolean
- Since:
- 2016.1.1
- See Also:
-
CLASSIFICATION_COMBO_BOX_VISIBLE_VALUE_DEFAULT
public static final boolean CLASSIFICATION_COMBO_BOX_VISIBLE_VALUE_DEFAULTDefault value for the propertyCLASSIFICATION_COMBO_BOX_VISIBLE_KEY
- Since:
- 2016.1.1
- See Also:
-
CLASSIFICATION_KEY
Property name which represents the selected value of the 'classification combo box'. The corresponding property value is of typejava.lang.String
- Since:
- 2016.1.1
- See Also:
-
HEADER_TEXT_VISIBLE_KEY
Property name which represents the visibility of the 'header text' checkbox. The corresponding property value is of typejava.lang.Boolean
.- See Also:
-
HEADER_TEXT_VISIBLE_VALUE_DEFAULT
public static final boolean HEADER_TEXT_VISIBLE_VALUE_DEFAULTDefault value for the propertyHEADER_TEXT_VISIBLE_KEY
.- See Also:
-
HEADER_TEXT_SELECTED_KEY
Property name which represents the value of the 'header text' checkbox. The corresponding property value is of typejava.lang.Boolean
.- See Also:
-
HEADER_TEXT_SELECTED_VALUE_DEFAULT
public static final boolean HEADER_TEXT_SELECTED_VALUE_DEFAULTDefault value for the propertyHEADER_TEXT_SELECTED_KEY
.- See Also:
-
HEADER_TEXT_KEY
Property name which represents the html file to use as 'header text'. The corresponding property value is of typejava.lang.String
.- See Also:
-
HEADER_TEXT_VALUE_DEFAULT
Default value for the propertyHEADER_TEXT_KEY
.- See Also:
-
FOOTER_TEXT_VISIBLE_KEY
Property name which represents the visibility of the 'footer text' checkbox. The corresponding property value is of typejava.lang.Boolean
.- See Also:
-
FOOTER_TEXT_VISIBLE_VALUE_DEFAULT
public static final boolean FOOTER_TEXT_VISIBLE_VALUE_DEFAULTDefault value for the propertyFOOTER_TEXT_VISIBLE_KEY
.- See Also:
-
FOOTER_TEXT_SELECTED_KEY
Property name which represents the value of the 'footer text' checkbox. The corresponding property value is of typejava.lang.Boolean
.- See Also:
-
FOOTER_TEXT_SELECTED_VALUE_DEFAULT
public static final boolean FOOTER_TEXT_SELECTED_VALUE_DEFAULTDefault value for the propertyFOOTER_TEXT_SELECTED_KEY
.- See Also:
-
FOOTER_TEXT_KEY
Property name which represents the html file to use as 'footer text'. The corresponding property value is of typejava.lang.String
.- See Also:
-
FOOTER_TEXT_VALUE_DEFAULT
Default value for the propertyFOOTER_TEXT_KEY
.- See Also:
-
LEGEND_VISIBLE_KEY
Property name which represents the visibility of the 'legend' checkbox. The corresponding property value is of typejava.lang.Boolean
.- See Also:
-
LEGEND_VISIBLE_VALUE_DEFAULT
public static final boolean LEGEND_VISIBLE_VALUE_DEFAULTDefault value for the propertyLEGEND_VISIBLE_KEY
.- See Also:
-
LEGEND_SELECTED_KEY
Property name which represents the value of the 'legend' checkbox. The corresponding property value is of typejava.lang.Boolean
.- See Also:
-
LEGEND_SELECTED_VALUE_DEFAULT
public static final boolean LEGEND_SELECTED_VALUE_DEFAULTDefault value for the propertyLEGEND_SELECTED_KEY
.- See Also:
-
OVERVIEW_VISIBLE_KEY
Property name which represents the visibility of the 'overview' checkbox. The corresponding property value is of typejava.lang.Boolean
.- See Also:
-
OVERVIEW_VISIBLE_VALUE_DEFAULT
public static final boolean OVERVIEW_VISIBLE_VALUE_DEFAULTDefault value for the propertyOVERVIEW_VISIBLE_KEY
.- See Also:
-
OVERVIEW_ENABLED_KEY
Property name which represents the enabled state of the 'overview' checkbox. The corresponding property value is of typejava.lang.Boolean
.- See Also:
-
OVERVIEW_ENABLED_VALUE_DEFAULT
public static final boolean OVERVIEW_ENABLED_VALUE_DEFAULTDefault value for the propertyOVERVIEW_ENABLED_KEY
.- See Also:
-
OVERVIEW_SELECTED_KEY
Property name which represents the value of the 'overview' checkbox. The corresponding property value is of typejava.lang.Boolean
.- See Also:
-
OVERVIEW_SELECTED_VALUE_DEFAULT
public static final boolean OVERVIEW_SELECTED_VALUE_DEFAULTDefault value for the propertyOVERVIEW_SELECTED_KEY
.- See Also:
-
SCALE_ICON_VISIBLE_KEY
Property name which represents the visibility of the 'scale icon' checkbox. The corresponding property value is of typejava.lang.Boolean
.- See Also:
-
SCALE_ICON_VISIBLE_VALUE_DEFAULT
public static final boolean SCALE_ICON_VISIBLE_VALUE_DEFAULTDefault value for the propertySCALE_ICON_VISIBLE_KEY
.- See Also:
-
SCALE_ICON_SELECTED_KEY
Property name which represents the value of the 'scale icon' checkbox. The corresponding property value is of typejava.lang.Boolean
.- See Also:
-
SCALE_ICON_SELECTED_VALUE_DEFAULT
public static final boolean SCALE_ICON_SELECTED_VALUE_DEFAULTDefault value for the propertySCALE_ICON_SELECTED_KEY
.- See Also:
-
SCALE_TEXT_VISIBLE_KEY
Property name which represents the visibility of the 'scale indication' checkbox. The corresponding property value is of typejava.lang.Boolean
.- See Also:
-
SCALE_TEXT_VISIBLE_VALUE_DEFAULT
public static final boolean SCALE_TEXT_VISIBLE_VALUE_DEFAULTDefault value for the propertySCALE_TEXT_VISIBLE_KEY
.- See Also:
-
SCALE_TEXT_SELECTED_KEY
Property name which represents the value of the 'scale indication' checkbox. The corresponding property value is of typejava.lang.Boolean
.- See Also:
-
SCALE_TEXT_SELECTED_VALUE_DEFAULT
public static final boolean SCALE_TEXT_SELECTED_VALUE_DEFAULTDefault value for the propertySCALE_TEXT_SELECTED_KEY
.- See Also:
-
RASTERIZATION_QUALITY_KEY
Property name which represents the rasterization quality in dpi. The corresponding property value is of typejava.lang.Integer
. Use a value between the values ofRASTERIZATION_QUALITY_MINIMUM_KEY
andRASTERIZATION_QUALITY_MAXIMUM_KEY
.- See Also:
-
RASTERIZATION_QUALITY_VALUE_DEFAULT
public static final int RASTERIZATION_QUALITY_VALUE_DEFAULTDefault value for the propertyRASTERIZATION_QUALITY_KEY
.- See Also:
-
RASTERIZATION_QUALITY_ITEMS_KEY
Property that represents an enumeration of the possible rasterization quality values in dpi. The corresponding property value is an array of integers. If set, this property overridesRASTERIZATION_QUALITY_MINIMUM_KEY
andRASTERIZATION_QUALITY_MAXIMUM_KEY
.- See Also:
-
RASTERIZATION_QUALITY_ITEMS_VALUE_DEFAULT
public static final int[] RASTERIZATION_QUALITY_ITEMS_VALUE_DEFAULTDefault value for the propertyRASTERIZATION_QUALITY_ITEMS_KEY
. The default value is null, which means that theRASTERIZATION_QUALITY_MINIMUM_KEY
andRASTERIZATION_QUALITY_MAXIMUM_KEY
values should be used to determine the values. -
RASTERIZATION_QUALITY_LABELS_KEY
Property that represents an enumeration fo the labels for the possible rasterization quality values in dpi. The corresponding property value is an array of String instances (e.g. "low quality", "high quality" ).- See Also:
-
RASTERIZATION_QUALITY_LABELS_VALUE_DEFAULT
Default value for the propertyRASTERIZATION_QUALITY_LABELS_KEY
. The default value is null, which means that the labels are based on the values (e.g. a value of 72 gets the label "72 dpi"). -
RASTERIZATION_QUALITY_MINIMUM_KEY
Property name which represents the minimum rasterization quality in dpi. The corresponding property value is of typejava.lang.Integer
.- See Also:
-
RASTERIZATION_QUALITY_MINIMUM_VALUE_DEFAULT
public static final int RASTERIZATION_QUALITY_MINIMUM_VALUE_DEFAULTDefault value for the propertyRASTERIZATION_QUALITY_MINIMUM_KEY
.- See Also:
-
RASTERIZATION_QUALITY_MAXIMUM_KEY
Property name which represents the maximum rasterization quality in dpi. The corresponding property value is of typejava.lang.Integer
.- See Also:
-
RASTERIZATION_QUALITY_MAXIMUM_VALUE_DEFAULT
public static final int RASTERIZATION_QUALITY_MAXIMUM_VALUE_DEFAULTDefault value for the propertyRASTERIZATION_QUALITY_MAXIMUM_KEY
.- See Also:
-
RASTERIZATION_QUALITY_VISIBLE_KEY
Property name which represents the visibility of the rasterization quality slider. The corresponding property value is of typejava.lang.Boolean
.- See Also:
-
RASTERIZATION_QUALITY_VISIBLE_VALUE_DEFAULT
public static final boolean RASTERIZATION_QUALITY_VISIBLE_VALUE_DEFAULTDefault value for the propertyRASTERIZATION_QUALITY_VISIBLE_KEY
.- See Also:
-
PRINT_SCALE_KEY
Property representing the relative size of icons, lines, and text. For example, when the associated value is 2.0 all lines, text and icons will be painted twice as big.More specifically, the property value determines the size of a pixel, when printed. When for example an icon of 16x16 pixels is visible on the map, and the print factor is set to 1.0 (meaning 72 pixels per inch), that icon will appear on the printout as approximately 16/72=0.22 inch or 5.6 millimeter.
The corresponding property value is of type
java.lang.Double
. Use a value between the valuesPRINT_SCALE_MINIMUM_KEY
andPRINT_SCALE_MAXIMUM_KEY
.- See Also:
-
PRINT_SCALE_VALUE_DEFAULT
public static final double PRINT_SCALE_VALUE_DEFAULTDefault value for the propertyPRINT_SCALE_KEY
, expressed as a percentage (0.95 means 95%).- See Also:
-
PRINT_SCALE_ITEMS_KEY
Property that represents an enumeration of the possible print scale values. The corresponding property value is an array of doubles. If set, this property overridesPRINT_SCALE_MINIMUM_KEY
andPRINT_SCALE_MAXIMUM_KEY
.- See Also:
-
PRINT_SCALE_ITEMS_VALUE_DEFAULT
public static final double[] PRINT_SCALE_ITEMS_VALUE_DEFAULTDefault value for the propertyPRINT_SCALE_ITEMS_KEY
. The default value is null, which means that thePRINT_SCALE_MINIMUM_KEY
andPRINT_SCALE_MAXIMUM_KEY
values should be used to determine the values. -
PRINT_SCALE_MINIMUM_KEY
Property name which represents the minimum print scale. The corresponding property value is of typejava.lang.Integer
.- See Also:
-
PRINT_SCALE_MINIMUM_VALUE_DEFAULT
public static final double PRINT_SCALE_MINIMUM_VALUE_DEFAULTDefault value for the propertyPRINT_SCALE_MINIMUM_KEY
.- See Also:
-
PRINT_SCALE_MAXIMUM_KEY
Property name which represents the maximum print scale. The corresponding property value is of typejava.lang.Integer
.- See Also:
-
PRINT_SCALE_MAXIMUM_VALUE_DEFAULT
public static final double PRINT_SCALE_MAXIMUM_VALUE_DEFAULTDefault value for the propertyPRINT_SCALE_MAXIMUM_KEY
.- See Also:
-
PRINT_SCALE_VISIBLE_KEY
Property name which represents the visibility of the print scale slider. The corresponding property value is of typejava.lang.Boolean
.- See Also:
-
PRINT_SCALE_VISIBLE_VALUE_DEFAULT
public static final boolean PRINT_SCALE_VISIBLE_VALUE_DEFAULTDefault value for the propertyPRINT_SCALE_VISIBLE_KEY
.- See Also:
-
TRANSPARENCY_HANDLING_KEY
Property name which represents the way to handle transparency. The corresponding property value is of typejava.lang.Integer
. UseTRANSPARENCY_HANDLING_VALUE_JAVA_PRINTING
,TRANSPARENCY_HANDLING_VALUE_MEMORY_OPTIMIZED
orTRANSPARENCY_HANDLING_VALUE_VECTOR_OPTIMIZED
- See Also:
-
TRANSPARENCY_HANDLING_VALUE_DEFAULT
public static final int TRANSPARENCY_HANDLING_VALUE_DEFAULTDefault value for the propertyTRANSPARENCY_HANDLING_KEY
- See Also:
-
TRANSPARENCY_HANDLING_VALUE_JAVA_PRINTING
public static final int TRANSPARENCY_HANDLING_VALUE_JAVA_PRINTINGCustom transparency handling for the propertyTRANSPARENCY_HANDLING_KEY
- See Also:
-
TRANSPARENCY_HANDLING_VALUE_MEMORY_OPTIMIZED
public static final int TRANSPARENCY_HANDLING_VALUE_MEMORY_OPTIMIZEDCustom transparency handling for the propertyTRANSPARENCY_HANDLING_KEY
- See Also:
-
TRANSPARENCY_HANDLING_VALUE_VECTOR_OPTIMIZED
public static final int TRANSPARENCY_HANDLING_VALUE_VECTOR_OPTIMIZEDCustom transparency handling for the propertyTRANSPARENCY_HANDLING_KEY
- See Also:
-
PREVIEW_SCALE_ITEMS_KEY
Property name for the print preview scales. The corresponding property value is of typejava.lang.Double[]
. A value of 0.85 means 85%.- See Also:
-
PREVIEW_SCALE_ITEMS_VALUE_DEFAULT
public static final double[] PREVIEW_SCALE_ITEMS_VALUE_DEFAULTDefault value for the propertyPREVIEW_SCALE_ITEMS_KEY
-
PREVIEW_SCALE_KEY
Property name for the print preview scale. The corresponding property value is of typejava.lang.Double
. A value of 0.85 means 85%.- See Also:
-
PREVIEW_SCALE_VALUE_DEFAULT
public static final double PREVIEW_SCALE_VALUE_DEFAULTDefault value for the propertyPREVIEW_SCALE_KEY
- See Also:
-
PREVIEW_PAGES_LIMIT_KEY
Property name for the pages limit of the print preview. The corresponding property value is of typejava.lang.Integer
.- See Also:
-
PREVIEW_PAGES_LIMIT_VALUE_DEFAULT
public static final int PREVIEW_PAGES_LIMIT_VALUE_DEFAULTDefault value for the propertyPREVIEW_PAGES_LIMIT_KEY
- See Also:
-
PRINT_PAGES_LIMIT_KEY
Property name for the pages limit of the print action. The corresponding property value is of typejava.lang.Integer
.- See Also:
-
PRINT_PAGES_LIMIT_VALUE_DEFAULT
public static final int PRINT_PAGES_LIMIT_VALUE_DEFAULTDefault value for the propertyPRINT_PAGES_LIMIT_KEY
- See Also:
-
-
Constructor Details
-
TLcyPrintAddOn
public TLcyPrintAddOn()Creates a new print add-on. To plug in the add-on, theplugInto
method must also be called. This is typically done by aILcyLucyEnv
instance, upon request of the application front-end.
-
-
Method Details
-
plugInto
Description copied from class:ALcyAddOn
Plugs this addon into the given lucy environment. It is in the implementation of this method that the addon adds its functionality to the Lucy backend. -
getPrintComponentAction
Deprecated.only useful in prior to 6.1 modeReturns theTLcdPrintComponentAction
that this addon delegates to.- Returns:
- the
TLcdPrintComponentAction
that this addon delegates to.
-
setPrintComponentAction
Deprecated.only useful in prior to 6.1 modeSets theTLcdPrintComponentAction
this addon delegates to.- Parameters:
aPrintComponentAction
- The print component action.
-
getPrintableComponentFactory
Returns theALcyPrintableComponentFactory
that is used by this addon.- Returns:
- the
ALcyPrintableComponentFactory
that is used by this addon.
-
setPrintableComponentFactory
Sets theALcyPrintableComponentFactory
that should be used by this addon. Please refer toTLcyPrintAddOn
for more information.- Parameters:
aPrintableComponentFactory
- The printable component factory.
-
getPrintPreviewFactory
Returns theALcyPrintPreviewFactory
that is used by this addon.- Returns:
- the
ALcyPrintPreviewFactory
that is used by this addon.
-
setPrintPreviewFactory
Sets theALcyPrintPreviewFactory
that should be used by this addon. Please refer toTLcyPrintAddOn
for more information.- Parameters:
aPrintPreviewFactory
- The print preview factory.
-
getPrintAreaCustomizerFactory
Returns theILcyObjectCustomizerFactory
that is used by this addon.- Returns:
- the
ILcyObjectCustomizerFactory
that is used by this addon.
-
setPrintAreaCustomizerFactory
Sets theILcyObjectCustomizerFactory
that should be used by this addon. Please refer toTLcyPrintAddOn
for more information.- Parameters:
aPrintAreaCustomizerFactory
- The object customizer factory.
-
getProperties
Returns theTLcyProperties
for the given map component. These are the current stored values of the properties used in the print addon. Please refer toTLcyPrintAddOn
for more information. Note that if you want to change the default properties (=the properties used the first time printing is triggered for a certain map component), it is best to override thecreateDefaultProperties(ILcyMapComponent)
method instead.- Parameters:
aMapComponent
- The map component to query.- Returns:
- the
TLcyProperties
for the given map component.
-
createDefaultProperties
This method is used by the
getProperties(ILcyMapComponent)
method to retrieve the properties for a certain map component the first time printing is triggered for that map component.By default this method returns a
TLcyProperties
instance containing the settings defined in the configuration file. You can override this method to for example add extra settings to those properties. Note that you can add those extra settings as well by putting them in the configuration file.It is important that this method always returns a new
TLcyProperties
instance to avoid that changing the settings of one map component would affect the settings of another map component.- Parameters:
aMapComponent
- The map component- Returns:
- The initial
TLcyProperties
for the given map component. - Since:
- 2015.1.27
- See Also:
-
getPrintAreaGXYLayerFilter
Returns anILcdFilter
that returns true if the given object is anILcdGXYLayer
that represents the print area on the map, false otherwise. This can be used by custom legend implementations to avoid listing the print area layer.- Returns:
- The filter.
-
performQuickPrint
Trigger the print action for
aMapComponent
withaProperties
containing all desired settings.This method allows you to perform a print action through the API.
- Parameters:
aProperties
- The properties containing the desired print settings.aMapComponent
- The map component which must be printed.
-
unplugFrom
Description copied from class:ALcyAddOn
Unplugs this addon from the given Lucy environment. It removes the functionality previously added to the Lucy backend.- Specified by:
unplugFrom
in classALcyAddOn
- Parameters:
aLucyEnv
- The lucy environment to unplug from.- See Also:
-
createPageDecorator
Creates a
Printable
that can be used to decorate each page. It is for example possible to add a watermark to each page by overriding this method.By default, this method returns
null
, meaning that no decorations are added.- Parameters:
aPrintContext
- the print context.- Returns:
- a
Printable
that can be used to decorate each page.
-
createPrintPageable
Returns the
Pageable
that is used for printing (not for preview printing), based on the givenPageable
. The givenPageable
is used to print the view. Override this method to return a customPageable
, e.g. by wrapping the givenPageable
. It is for example possible to add a title page by overriding this method.By default, this method returns
aViewPageable
.- Parameters:
aViewPageable
- thePageable
that is capable to print the view.aPrintContext
- the print context.- Returns:
- the
Pageable
that is used for printing
-