public class ExportDiagramDialog extends AbstractFigureSelectionDialog implements ModifyListener, ISaveAsImageConfiguration
Window.IExceptionHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
HEIGHTS |
static double[] |
SCALE_FACTORS |
static java.lang.String[] |
WIDTHS |
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
OK
Constructor and Description |
---|
ExportDiagramDialog(Shell shell,
org.eclipse.gef.GraphicalViewer graphicalViewer)
Creates a new ExportDiagramDialog.
|
Modifier and Type | Method and Description |
---|---|
void |
addExporters(java.util.Map<java.lang.String,java.lang.Boolean> diagramExporterTypes)
Should add the given exporters to an internal list.
|
int |
configure()
Does the actual configuration.
|
java.lang.String |
getFileExtension()
Returns the file extension to use.
|
java.lang.String |
getFormattedFileExtension()
Returns the selected file extension formatted in a standard way, e.g.
|
int |
getImageFormat()
Returns the image format as defined by the SWT.IMAGE_* constants like
SWT.IMAGE_BMP . |
double |
getImageScaleFactor()
Retunrs the scale factor to be used in the saved image.
|
void |
modifyText(ModifyEvent e) |
void |
updateControls() |
cleanUp, getFigure, getGraphicalViewer, getImage, getScaledImage, setScaledImage, setScaledImage, widgetDefaultSelected, widgetSelected
applyDialogFont, close, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, create, getBlockedHandler, getImage, setBlockedHandler, shortenText
getDefaultImage, getDefaultImages, getDefaultOrientation, getReturnCode, getShell, getWindowManager, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setWindowManager
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFigure, getScaledImage
widgetDefaultSelectedAdapter, widgetSelectedAdapter
public static final java.lang.String[] WIDTHS
public static final java.lang.String[] HEIGHTS
public static final double[] SCALE_FACTORS
public ExportDiagramDialog(Shell shell, org.eclipse.gef.GraphicalViewer graphicalViewer)
shell
- The Shell of this dialog.graphicalViewer
- The GraphicalViewer, which to save.public int configure()
ISaveAsImageConfiguration
configure
in interface ISaveAsImageConfiguration
public void addExporters(java.util.Map<java.lang.String,java.lang.Boolean> diagramExporterTypes)
ISaveAsImageConfiguration
addExporters
in interface ISaveAsImageConfiguration
diagramExporterTypes
- A Map
holding all exporters.public void modifyText(ModifyEvent e)
modifyText
in interface ModifyListener
public void updateControls()
updateControls
in class AbstractFigureSelectionDialog
public final int getImageFormat()
ISaveAsImageConfiguration
SWT.IMAGE_BMP
.getImageFormat
in interface ISaveAsImageConfiguration
public final java.lang.String getFormattedFileExtension()
ISaveAsImageConfiguration
getFormattedFileExtension
in interface ISaveAsImageConfiguration
public final java.lang.String getFileExtension()
ISaveAsImageConfiguration
getFileExtension
in interface ISaveAsImageConfiguration
public double getImageScaleFactor()
ISaveAsImageConfiguration
getImageScaleFactor
in interface ISaveAsImageConfiguration