public abstract class AbstractExportImageAction extends AbstractAction implements org.openide.util.LookupListener, org.openide.util.ContextAwareAction, org.openide.util.HelpCtx.Provider
Modifier and Type | Field and Description |
---|---|
protected static String[] |
BMP_FORMAT_DESCRIPTION |
protected static String[] |
GEOTIFF_FORMAT_DESCRIPTION |
protected static String[] |
JPEG_FORMAT_DESCRIPTION |
protected static String[] |
PNG_FORMAT_DESCRIPTION |
protected static String[] |
TIFF_FORMAT_DESCRIPTION |
changeSupport, enabled
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 and Description |
---|
AbstractExportImageAction(String name,
String helpId) |
Modifier and Type | Method and 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(SnapFileFilter[] filters) |
protected void |
exportImage(String imageFormat,
ProductSceneView view,
boolean entireImageSelected,
File file) |
org.openide.util.HelpCtx |
getHelpCtx() |
protected abstract boolean |
isEntireImageSelected() |
protected static boolean |
isTransparencySupportedByFormat(String formatName) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
actionPerformed
protected static final String[] BMP_FORMAT_DESCRIPTION
protected static final String[] PNG_FORMAT_DESCRIPTION
protected static final String[] JPEG_FORMAT_DESCRIPTION
protected static final String[] GEOTIFF_FORMAT_DESCRIPTION
protected static final String[] TIFF_FORMAT_DESCRIPTION
public org.openide.util.HelpCtx getHelpCtx()
getHelpCtx
in interface org.openide.util.HelpCtx.Provider
protected void exportImage(SnapFileFilter[] filters)
protected void exportImage(String imageFormat, ProductSceneView view, boolean entireImageSelected, File file)
protected abstract RenderedImage createImage(String imageFormat, ProductSceneView view)
protected abstract boolean isEntireImageSelected()
protected abstract void configureFileChooser(SnapFileChooser fileChooser, ProductSceneView view, String imageBaseName)
protected static boolean isTransparencySupportedByFormat(String formatName)
protected static SnapFileFilter createFileFilter(String[] description)
Copyright © 2014–2016 European Space Agency (ESA). All rights reserved.