Class AbstractExportImageAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.esa.snap.rcp.actions.file.export.AbstractExportImageAction
-
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
,org.openide.util.ContextAwareAction
,org.openide.util.HelpCtx.Provider
,org.openide.util.LookupListener
- Direct Known Subclasses:
ExportImageAction
,ExportLegendImageAction
public abstract class AbstractExportImageAction extends AbstractAction implements org.openide.util.LookupListener, org.openide.util.ContextAwareAction, org.openide.util.HelpCtx.Provider
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static String[]
BMP_FORMAT_DESCRIPTION
protected static String[]
GEOTIFF_FORMAT_DESCRIPTION
static String
IMAGE_EXPORT_DIR_PREFERENCES_KEY
protected static String[]
JPEG_FORMAT_DESCRIPTION
protected static String[]
PNG_FORMAT_DESCRIPTION
protected static String[]
TIFF_FORMAT_DESCRIPTION
-
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
-
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
-
Constructor Summary
Constructors Constructor Description AbstractExportImageAction(String name, String helpId)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
configureFileChooser(SnapFileChooser fileChooser, ProductSceneView view, String imageBaseName)
protected static SnapFileFilter
createFileFilter(String[] description)
protected abstract RenderedImage
createImage(String imageFormat, ProductSceneView view)
protected void
exportImage(String imageFormat, ProductSceneView view, boolean entireImageSelected, File file)
protected void
exportImage(SnapFileFilter[] filters)
org.openide.util.HelpCtx
getHelpCtx()
protected abstract boolean
isEntireImageSelected()
protected static boolean
isTransparencySupportedByFormat(String formatName)
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
-
-
-
-
Field Detail
-
IMAGE_EXPORT_DIR_PREFERENCES_KEY
public static final String IMAGE_EXPORT_DIR_PREFERENCES_KEY
- 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
-
GEOTIFF_FORMAT_DESCRIPTION
protected static final String[] GEOTIFF_FORMAT_DESCRIPTION
-
TIFF_FORMAT_DESCRIPTION
protected static final String[] TIFF_FORMAT_DESCRIPTION
-
-
Method Detail
-
isTransparencySupportedByFormat
protected static boolean isTransparencySupportedByFormat(String formatName)
-
createFileFilter
protected static SnapFileFilter createFileFilter(String[] description)
-
getHelpCtx
public org.openide.util.HelpCtx getHelpCtx()
- Specified by:
getHelpCtx
in interfaceorg.openide.util.HelpCtx.Provider
-
exportImage
protected void exportImage(SnapFileFilter[] filters)
-
exportImage
protected void exportImage(String imageFormat, ProductSceneView view, boolean entireImageSelected, File file)
-
createImage
protected abstract RenderedImage createImage(String imageFormat, ProductSceneView view)
-
isEntireImageSelected
protected abstract boolean isEntireImageSelected()
-
configureFileChooser
protected abstract void configureFileChooser(SnapFileChooser fileChooser, ProductSceneView view, String imageBaseName)
-
-