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
FieldsModifier and TypeFieldDescriptionstatic final StringProperty name for the background color of the maps in the configuration file.static final StringProperty name for the background color of the map overviews in the configuration file.static final ColorDefault value for the propertyBACKGROUND_COLOR_MAP_OVERVIEW_KEY.static final ColorDefault value for the propertyBACKGROUND_COLOR_MAP_KEY.static final StringProperty name which represents the visibility of the 'classification combo box'.static final booleanDefault value for the propertyCLASSIFICATION_COMBO_BOX_VISIBLE_KEYstatic final StringProperty name which represents the selected value of the 'classification combo box'.static final StringProperty name which represents the value of the 'classification checkbox'.static final booleanDefault value for the propertyCLASSIFICATION_SELECTED_KEYstatic final StringProperty name which represents the visibility of the 'classification checkbox'.static final booleanDefault value for the propertyCLASSIFICATION_VISIBLE_KEYstatic final StringProperty suffix for the column count.static final intDefault value for the propertyCOL_COUNT_SUFFIX.static final StringProperty name which represents the value of the 'crop marks' checkbox.static final booleanDefault value for the propertyCROP_MARKS_SELECTED_KEY.static final StringProperty name which represents the visibility of the 'crop marks' checkbox.static final booleanDefault value for the propertyCROP_MARKS_VISIBLE_KEY.static final StringProperty name which represents the html file to use as 'footer text'.static final StringProperty name which represents the value of the 'footer text' checkbox.static final booleanDefault value for the propertyFOOTER_TEXT_SELECTED_KEY.static final StringDefault value for the propertyFOOTER_TEXT_KEY.static final StringProperty name which represents the visibility of the 'footer text' checkbox.static final booleanDefault value for the propertyFOOTER_TEXT_VISIBLE_KEY.static final StringProperty name which represents the html file to use as 'header text'.static final StringProperty name which represents the value of the 'header text' checkbox.static final booleanDefault value for the propertyHEADER_TEXT_SELECTED_KEY.static final StringDefault value for the propertyHEADER_TEXT_KEY.static final StringProperty name which represents the visibility of the 'header text' checkbox.static final booleanDefault value for the propertyHEADER_TEXT_VISIBLE_KEY.static final StringDeprecated.This property has been deprecated.static final booleanDeprecated.This property has been deprecated.static final StringProperty name which represents the value of the 'legend' checkbox.static final booleanDefault value for the propertyLEGEND_SELECTED_KEY.static final StringProperty name which represents the visibility of the 'legend' checkbox.static final booleanDefault value for the propertyLEGEND_VISIBLE_KEY.static final StringProperty name which represents the value of the 'header text field'.static final booleanDefault value for the propertyMODIFIABLE_HEADER_TEXT_FIELD_VISIBLE_KEYstatic final StringProperty name which controls the text to use as 'header text'.static final StringProperty name which represents the value of the 'header text' checkbox.static final booleanDefault value for the propertyMODIFIABLE_HEADER_TEXT_SELECTED_KEYstatic final StringDefault value for the propertyMODIFIABLE_HEADER_TEXT_KEYstatic final StringProperty name which represents the visibility of the 'header text' checkbox.static final booleanDefault value for the propertyMODIFIABLE_HEADER_TEXT_FIELD_VISIBLE_KEYstatic final StringProperty name for the chosen page orientation.static final StringDefault value for the propertyORIENTATION_CHOICE_KEY.static final StringCustom orientation 'landscape' for the propertyORIENTATION_CHOICE_KEY.static final StringCustom orientation 'portrait' for the propertyORIENTATION_CHOICE_KEY.static final StringProperty name which represents the enabled state of the 'overview' checkbox.static final booleanDefault value for the propertyOVERVIEW_ENABLED_KEY.static final StringProperty name which represents the value of the 'overview' checkbox.static final booleanDefault value for the propertyOVERVIEW_SELECTED_KEY.static final StringProperty name which represents the visibility of the 'overview' checkbox.static final booleanDefault value for the propertyOVERVIEW_VISIBLE_KEY.static final StringProperty name for the chosen page format.static final StringProperty name which represents the value of the 'position marks' checkbox.static final booleanDefault value for the propertyPOSITION_MARKS_SELECTED_KEY.static final StringProperty name which represents the visibility of the 'position marks' checkbox.static final booleanDefault value for the propertyPOSITION_MARKS_VISIBLE_KEY.static final StringProperty name for the pages limit of the print preview.static final intDefault value for the propertyPREVIEW_PAGES_LIMIT_KEYstatic final StringProperty name for the print preview scales.static final double[]Default value for the propertyPREVIEW_SCALE_ITEMS_KEYstatic final StringProperty name for the print preview scale.static final doubleDefault value for the propertyPREVIEW_SCALE_KEYstatic final StringProperty suffix which represents the print area to use.static final ILcdBoundsDefault value for the propertyPRINT_AREA_SUFFIX.static final TLcyGroupDescriptorstatic final StringProperty name for the pages limit of the print action.static final intDefault value for the propertyPRINT_PAGES_LIMIT_KEYstatic final StringProperty that represents an enumeration of the possible print scale values.static final double[]Default value for the propertyPRINT_SCALE_ITEMS_KEY.static final StringProperty representing the relative size of icons, lines, and text.static final StringProperty name which represents the maximum print scale.static final doubleDefault value for the propertyPRINT_SCALE_MAXIMUM_KEY.static final StringProperty name which represents the minimum print scale.static final doubleDefault value for the propertyPRINT_SCALE_MINIMUM_KEY.static final doubleDefault value for the propertyPRINT_SCALE_KEY, expressed as a percentage (0.95 means 95%).static final StringProperty name which represents the visibility of the print scale slider.static final booleanDefault value for the propertyPRINT_SCALE_VISIBLE_KEY.static final StringProperty name for the chosen print service.static final StringProperty name for the chosen printer job.static final StringProperty name representing the printing area to use.static final StringDefault value for the propertyPRINTING_AREA_CHOICE_KEY.static final StringCustom printing area 'printArea' for the propertyPRINTING_AREA_CHOICE_KEY.static final StringCustom printing area 'viewExtents' for the propertyPRINTING_AREA_CHOICE_KEY.static final StringThe property prefix to use for the 'printingArea' properties.static final StringProperty 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 StringProperty name which represents the rasterization quality in dpi.static final StringProperty 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 StringProperty name which represents the maximum rasterization quality in dpi.static final intDefault value for the propertyRASTERIZATION_QUALITY_MAXIMUM_KEY.static final StringProperty name which represents the minimum rasterization quality in dpi.static final intDefault value for the propertyRASTERIZATION_QUALITY_MINIMUM_KEY.static final intDefault value for the propertyRASTERIZATION_QUALITY_KEY.static final StringProperty name which represents the visibility of the rasterization quality slider.static final booleanDefault value for the propertyRASTERIZATION_QUALITY_VISIBLE_KEY.static final StringProperty suffix for the row count.static final intDefault value for the propertyROW_COUNT_SUFFIX.static final StringProperty name which represents the value of the 'scale icon' checkbox.static final booleanDefault value for the propertySCALE_ICON_SELECTED_KEY.static final StringProperty name which represents the visibility of the 'scale icon' checkbox.static final booleanDefault value for the propertySCALE_ICON_VISIBLE_KEY.static final StringProperty suffix which represents a chosen calculation type.static final StringDefault value for the propertySCALE_OR_PAGES_SUFFIX.static final StringCustom 'pages' value for the propertySCALE_OR_PAGES_SUFFIX.static final StringCustom 'scale' value for the propertySCALE_OR_PAGES_SUFFIX.static final StringProperty name which represents the value of the 'scale indication' checkbox.static final booleanDefault value for the propertySCALE_TEXT_SELECTED_KEY.static final StringProperty name which represents the visibility of the 'scale indication' checkbox.static final booleanDefault value for the propertySCALE_TEXT_VISIBLE_KEY.static final StringProperty suffix which represents the value of the 'snap to full pages' checkbox.static final booleanDefault value for the propertySNAP_TO_FULL_PAGES_SELECTED_SUFFIX.static final StringProperty suffix which represents the visibility of the 'snap to full pages' checkbox.static final booleanDefault value for the propertySNAP_TO_FULL_PAGES_VISIBLE_SUFFIX.static final StringProperty suffix for the paper scales.static final double[]Default value for the propertySPECIFIC_SCALE_ITEMS_SUFFIX.static final StringProperty suffix for the paper scale.static final doubleDefault value for the propertySPECIFIC_SCALE_SUFFIX.static final StringProperty name which represents the visibility of the 'title text field'.static final booleanDefault value for the propertyTITLE_TEXT_FIELD_VISIBLE_KEY.static final StringProperty name which represents the text to use as 'title text'.static final StringProperty name which represents the value of the 'title text' checkbox.static final booleanDefault value for the propertyTITLE_TEXT_SELECTED_KEY.static final StringDefault value for the propertyTITLE_TEXT_KEY.static final StringProperty name which represents the visibility of the 'title text' checkbox.static final booleanDefault value for the propertyTITLE_TEXT_VISIBLE_KEY.static final StringProperty name which represents the way to handle transparency.static final intDefault value for the propertyTRANSPARENCY_HANDLING_KEYstatic final intCustom transparency handling for the propertyTRANSPARENCY_HANDLING_KEYstatic final intCustom transparency handling for the propertyTRANSPARENCY_HANDLING_KEYstatic final intCustom transparency handling for the propertyTRANSPARENCY_HANDLING_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TLcyPropertiescreateDefaultProperties(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 aPrintablethat can be used to decorate each page.createPrintPageable(Pageable aViewPageable, TLcyPrintContext aPrintContext) Returns thePageablethat is used for printing (not for preview printing), based on the givenPageable.Returns theALcyPrintableComponentFactorythat is used by this addon.Returns theILcyObjectCustomizerFactorythat is used by this addon.Returns anILcdFilterthat returns true if the given object is anILcdGXYLayerthat represents the print area on the map, false otherwise.Deprecated.only useful in prior to 6.1 modeReturns theALcyPrintPreviewFactorythat is used by this addon.getProperties(ILcyMapComponent aMapComponent) Returns theTLcyPropertiesfor the given map component.voidperformQuickPrint(TLcyProperties aProperties, ILcyMapComponent aMapComponent) Trigger the print action foraMapComponentwithaPropertiescontaining all desired settings.voidplugInto(ILcyLucyEnv aLucyEnv) Plugs this addon into the given lucy environment.voidsetPrintableComponentFactory(ALcyPrintableComponentFactory aPrintableComponentFactory) Sets theALcyPrintableComponentFactorythat should be used by this addon.voidsetPrintAreaCustomizerFactory(ILcyObjectCustomizerFactory aPrintAreaCustomizerFactory) Sets theILcyObjectCustomizerFactorythat should be used by this addon.voidsetPrintComponentAction(TLcdPrintComponentAction aPrintComponentAction) Deprecated.only useful in prior to 6.1 modevoidsetPrintPreviewFactory(ALcyPrintPreviewFactory aPrintPreviewFactory) Sets theALcyPrintPreviewFactorythat should be used by this addon.voidunplugFrom(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_PORTRAITorORIENTATION_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_PAGESorSCALE_OR_PAGES_VALUE_SCALEPlease refer toPRINTING_AREA_CHOICE_KEYfor 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_KEYfor 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_KEYfor 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_KEYfor 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_KEYfor 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_KEYfor 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_KEYfor 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 typeILcdBoundsand it uses the world reference from the map component in which the print area has been created. Please refer toPRINTING_AREA_CHOICE_KEYfor 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_KEYproperty (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_KEYfor 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_PREFIXand "." plus the suffix of the property you want to create.For example,
PRINTING_AREA_PREFIX+PRINTING_AREA_CHOICE_VALUE_VIEW_EXTENTS+ "." +COL_COUNT_SUFFIXrepresents the property key corresponding to the number of columns the printing areaPRINTING_AREA_CHOICE_VALUE_VIEW_EXTENTSshould 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_KEYfor 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_KEYandRASTERIZATION_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_KEYandRASTERIZATION_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_KEYandRASTERIZATION_QUALITY_MAXIMUM_KEYvalues 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_KEYandPRINT_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_KEYandPRINT_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_KEYandPRINT_SCALE_MAXIMUM_KEYvalues 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_OPTIMIZEDorTRANSPARENCY_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, theplugIntomethod must also be called. This is typically done by aILcyLucyEnvinstance, upon request of the application front-end.
-
-
Method Details
-
plugInto
Description copied from class:ALcyAddOnPlugs 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 theTLcdPrintComponentActionthat this addon delegates to.- Returns:
- the
TLcdPrintComponentActionthat this addon delegates to.
-
setPrintComponentAction
Deprecated.only useful in prior to 6.1 modeSets theTLcdPrintComponentActionthis addon delegates to.- Parameters:
aPrintComponentAction- The print component action.
-
getPrintableComponentFactory
Returns theALcyPrintableComponentFactorythat is used by this addon.- Returns:
- the
ALcyPrintableComponentFactorythat is used by this addon.
-
setPrintableComponentFactory
Sets theALcyPrintableComponentFactorythat should be used by this addon. Please refer toTLcyPrintAddOnfor more information.- Parameters:
aPrintableComponentFactory- The printable component factory.
-
getPrintPreviewFactory
Returns theALcyPrintPreviewFactorythat is used by this addon.- Returns:
- the
ALcyPrintPreviewFactorythat is used by this addon.
-
setPrintPreviewFactory
Sets theALcyPrintPreviewFactorythat should be used by this addon. Please refer toTLcyPrintAddOnfor more information.- Parameters:
aPrintPreviewFactory- The print preview factory.
-
getPrintAreaCustomizerFactory
Returns theILcyObjectCustomizerFactorythat is used by this addon.- Returns:
- the
ILcyObjectCustomizerFactorythat is used by this addon.
-
setPrintAreaCustomizerFactory
Sets theILcyObjectCustomizerFactorythat should be used by this addon. Please refer toTLcyPrintAddOnfor more information.- Parameters:
aPrintAreaCustomizerFactory- The object customizer factory.
-
getProperties
Returns theTLcyPropertiesfor the given map component. These are the current stored values of the properties used in the print addon. Please refer toTLcyPrintAddOnfor 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
TLcyPropertiesfor 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
TLcyPropertiesinstance 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
TLcyPropertiesinstance 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
TLcyPropertiesfor the given map component. - Since:
- 2015.1.27
- See Also:
-
getPrintAreaGXYLayerFilter
Returns anILcdFilterthat returns true if the given object is anILcdGXYLayerthat 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
aMapComponentwithaPropertiescontaining 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:ALcyAddOnUnplugs this addon from the given Lucy environment. It removes the functionality previously added to the Lucy backend.- Specified by:
unplugFromin classALcyAddOn- Parameters:
aLucyEnv- The lucy environment to unplug from.- See Also:
-
createPageDecorator
Creates a
Printablethat 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
Printablethat can be used to decorate each page.
-
createPrintPageable
Returns the
Pageablethat is used for printing (not for preview printing), based on the givenPageable. The givenPageableis 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- thePageablethat is capable to print the view.aPrintContext- the print context.- Returns:
- the
Pageablethat is used for printing
-