Class TLcyLspSaveAsImageActionFactory
java.lang.Object
com.luciad.lucy.map.action.lightspeed.TLcyLspSaveAsImageActionFactory
Factory which allows to create ILcdAction instances which can be used to save a
component or a view to an image.
The created actions will show a dialog to the user asking where the image should be created, and allows to customize the image options (for example the compression options when saving to jpg).
More specialized actions are available for Lightspeed map components, which will also save the overlay components (for example the BingMaps copyright notice). These actions are similar to the standard actions to save a map to an image available in the Lucy UI.
A similar class is available for GXY map components. See
TLcySaveAsImageActionFactory
- Since:
- 2013.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ILcdActioncreateActionForComponent(JComponent aComponent, ILcyLucyEnv aLucyEnv) Create an action to save aJComponentto an image.static ILcdActioncreateActionForMapComponent(ILcyGenericMapComponent<? extends ILspView, ? extends ILspLayer> aMapComponent, ILcyLucyEnv aLucyEnv) Create an action to save aILcyGenericMapComponentwith anILspViewto an image.static ILcdActioncreateActionForMapComponent(ILcyLspMapComponent aMapComponent, ILcyLucyEnv aLucyEnv) Create an action to save aILcyLspMapComponentto an image
-
Method Details
-
createActionForComponent
Create an action to save aJComponentto an image. Identical toTLcySaveAsImageActionFactory#createActionForComponent- Parameters:
aComponent- The component to save. Must not benullaLucyEnv- The Lucy back-end. Must not benull- Returns:
- An action which allows to save
aComponentto an image. See class javadoc for more information about the action. - See Also:
-
createActionForMapComponent
public static ILcdAction createActionForMapComponent(ILcyLspMapComponent aMapComponent, ILcyLucyEnv aLucyEnv) Create an action to save aILcyLspMapComponentto an image- Parameters:
aMapComponent- The map component to save. Must not benullaLucyEnv- The Lucy back-end. Must not benull- Returns:
- An action which allows to save
aMapComponentto an image. See class javadoc for more information about the action.
-
createActionForMapComponent
public static ILcdAction createActionForMapComponent(ILcyGenericMapComponent<? extends ILspView, ? extends ILspLayer> aMapComponent, ILcyLucyEnv aLucyEnv) Create an action to save aILcyGenericMapComponentwith anILspViewto an image. Currently onlyALspAWTViewinstances are supported. If theILspViewis not anALspAWTView, the returned action will always bedisabled.- Parameters:
aMapComponent- The component to save. Must not benullaLucyEnv- The Lucy back-end. Must not benull- Returns:
- An action which allows to save
aMapComponentto an image. See class javadoc for more information about the action.
-