public class ExportLegendImageAction extends AbstractExportImageAction
Modifier and Type | Class and Description |
---|---|
static class |
ExportLegendImageAction.ImageLegendDialog |
BMP_FORMAT_DESCRIPTION, EXPORT_IMAGE_CMD_ID, EXPORT_LEGEND_IMAGE_CMD_ID, EXPORT_ROI_IMAGE_CMD_ID, GEOTIFF_FORMAT_DESCRIPTION, JPEG_FORMAT_DESCRIPTION, PNG_FORMAT_DESCRIPTION, TIFF_FORMAT_DESCRIPTION
TOGGLE_ACTION_KEY
SELECTED_ACTION_KEY
ACTION_KEY_CONTEXT, ACTION_KEY_LARGE_ICON, ACTION_KEY_LOCATION, ACTION_KEY_PARENT, ACTION_KEY_PLACE_AFTER, ACTION_KEY_PLACE_BEFORE, ACTION_KEY_PLACE_CONTEXT_TOP, ACTION_KEY_PLACE_FIRST, ACTION_KEY_PLACE_LAST, ACTION_KEY_POPUP_TEXT, ACTION_KEY_SEPARATOR_AFTER, ACTION_KEY_SEPARATOR_BEFORE, ACTION_KEY_SORT_CHILDREN, HELP_ID_KEY
Constructor and Description |
---|
ExportLegendImageAction() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(CommandEvent event)
Invoked when a command action is performed.
|
protected void |
configureFileChooser(BeamFileChooser fileChooser,
ProductSceneView view,
String imageBaseName) |
protected RenderedImage |
createImage(String imageFormat,
ProductSceneView view) |
protected boolean |
isEntireImageSelected() |
void |
updateState(CommandEvent event)
Called when a command should update its state.
|
exportImage, getImageFileFilters, getSceneImageFileFilters, getVisatApp, isTransparencySupportedByFormat
addCommandListener, configure, configure, createMenuItem, createToolBarButton, execute, execute, fireActionPerformed, isToggle, removeCommandListener, setToggle
createAction, isSelected, setSelected
addEventListener, containsContext, containsLocation, containsProperty, containsPropertyValue, createResourceKey, fireUpdateState, getAccelerator, getAction, getCommandID, getCommandUIFactory, getConfigBoolean, getConfigIcon, getConfigString, getConfigStrings, getContexts, getEventListenerList, getHelpId, getLargeIcon, getLocations, getLongDescription, getMnemonic, getParent, getPlaceAfter, getPlaceBefore, getPlaceFirst, getPlaceLast, getPopupText, getProperty, getProperty, getProperty, getProperty, getResourceBoolean, getResourceIcon, getResourceString, getResourceStringArray, getResourceStrings, getShortDescription, getSmallIcon, getSortChildren, getText, getValue, isEnabled, isPlaceAtContextTop, isSeparatorAfter, isSeparatorBefore, removeEventListener, setAccelerator, setCommandID, setCommandUIFactory, setContexts, setEnabled, setHelpId, setLargeIcon, setLocations, setLongDescription, setMnemonic, setParent, setPlaceAfter, setPlaceAtContextTop, setPlaceBefore, setPlaceFirst, setPlaceLast, setPopupText, setProperty, setProperty, setSeparatorAfter, setSeparatorBefore, setShortDescription, setSmallIcon, setText, toString, updateComponentTreeUI, updateState
public void actionPerformed(CommandEvent event)
SelectableCommand
actionPerformed
in class SelectableCommand
event
- the command eventpublic void updateState(CommandEvent event)
Command
This method can contain some code which analyzes the underlying element and makes a decision whether this item or group should be made visible/invisible or enabled/disabled etc.
updateState
in class Command
event
- the command eventprotected void configureFileChooser(BeamFileChooser fileChooser, ProductSceneView view, String imageBaseName)
configureFileChooser
in class AbstractExportImageAction
protected RenderedImage createImage(String imageFormat, ProductSceneView view)
createImage
in class AbstractExportImageAction
protected boolean isEntireImageSelected()
isEntireImageSelected
in class AbstractExportImageAction
Copyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.