org.esa.beam.visat.actions
Class AbstractExportImageAction

java.lang.Object
  extended by org.esa.beam.framework.ui.command.Command
      extended by org.esa.beam.framework.ui.command.SelectableCommand
          extended by org.esa.beam.framework.ui.command.ExecCommand
              extended by org.esa.beam.visat.actions.AbstractExportImageAction
All Implemented Interfaces:
com.bc.ceres.core.runtime.ConfigurableExtension
Direct Known Subclasses:
ExportImageAction, ExportLegendImageAction

public abstract class AbstractExportImageAction
extends ExecCommand


Field Summary
protected static String[] BMP_FORMAT_DESCRIPTION
           
static String EXPORT_IMAGE_CMD_ID
           
static String EXPORT_LEGEND_IMAGE_CMD_ID
           
static String EXPORT_ROI_IMAGE_CMD_ID
           
protected static String[] GEOTIFF_FORMAT_DESCRIPTION
           
protected static String[] JPEG_FORMAT_DESCRIPTION
           
protected static String[] PNG_FORMAT_DESCRIPTION
           
protected static String[] TIFF_FORMAT_DESCRIPTION
           
 
Fields inherited from class org.esa.beam.framework.ui.command.ExecCommand
TOGGLE_ACTION_KEY
 
Fields inherited from class org.esa.beam.framework.ui.command.SelectableCommand
SELECTED_ACTION_KEY
 
Fields inherited from class org.esa.beam.framework.ui.command.Command
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_POPUP_TEXT, ACTION_KEY_SEPARATOR_AFTER, ACTION_KEY_SEPARATOR_BEFORE, ACTION_KEY_SORT_CHILDREN, HELP_ID_KEY
 
Constructor Summary
AbstractExportImageAction()
           
 
Method Summary
protected abstract  void configureFileChooser(BeamFileChooser fileChooser, ProductSceneView view, String imageBaseName)
           
protected abstract  RenderedImage createImage(String imageFormat, ProductSceneView view)
           
protected  void exportImage(VisatApp visatApp, BeamFileFilter[] filters, SelectableCommand command)
           
protected  BeamFileFilter[] getImageFileFilters()
           
protected  BeamFileFilter[] getSceneImageFileFilters()
           
protected  VisatApp getVisatApp()
           
protected abstract  boolean isEntireImageSelected()
           
protected static boolean isTransparencySupportedByFormat(String formatName)
           
 
Methods inherited from class org.esa.beam.framework.ui.command.ExecCommand
addCommandListener, configure, configure, createMenuItem, createToolBarButton, execute, execute, fireActionPerformed, isToggle, removeCommandListener, setToggle
 
Methods inherited from class org.esa.beam.framework.ui.command.SelectableCommand
actionPerformed, createAction, isSelected, setSelected
 
Methods inherited from class org.esa.beam.framework.ui.command.Command
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, 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, setPopupText, setProperty, setProperty, setSeparatorAfter, setSeparatorBefore, setShortDescription, setSmallIcon, setText, toString, updateComponentTreeUI, updateState, updateState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EXPORT_IMAGE_CMD_ID

public static final String EXPORT_IMAGE_CMD_ID
See Also:
Constant Field Values

EXPORT_ROI_IMAGE_CMD_ID

public static final String EXPORT_ROI_IMAGE_CMD_ID
See Also:
Constant Field Values

EXPORT_LEGEND_IMAGE_CMD_ID

public static final String EXPORT_LEGEND_IMAGE_CMD_ID
See Also:
Constant Field Values

BMP_FORMAT_DESCRIPTION

protected static final String[] BMP_FORMAT_DESCRIPTION

PNG_FORMAT_DESCRIPTION

protected static final String[] PNG_FORMAT_DESCRIPTION

JPEG_FORMAT_DESCRIPTION

protected static final String[] JPEG_FORMAT_DESCRIPTION

TIFF_FORMAT_DESCRIPTION

protected static final String[] TIFF_FORMAT_DESCRIPTION

GEOTIFF_FORMAT_DESCRIPTION

protected static final String[] GEOTIFF_FORMAT_DESCRIPTION
Constructor Detail

AbstractExportImageAction

public AbstractExportImageAction()
Method Detail

exportImage

protected void exportImage(VisatApp visatApp,
                           BeamFileFilter[] filters,
                           SelectableCommand command)

createImage

protected abstract RenderedImage createImage(String imageFormat,
                                             ProductSceneView view)

isEntireImageSelected

protected abstract boolean isEntireImageSelected()

configureFileChooser

protected abstract void configureFileChooser(BeamFileChooser fileChooser,
                                             ProductSceneView view,
                                             String imageBaseName)

getImageFileFilters

protected BeamFileFilter[] getImageFileFilters()

getSceneImageFileFilters

protected BeamFileFilter[] getSceneImageFileFilters()

getVisatApp

protected VisatApp getVisatApp()

isTransparencySupportedByFormat

protected static boolean isTransparencySupportedByFormat(String formatName)


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.