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, ELLIPSISOK| 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, widgetSelectedapplyDialogFont, close, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, create, getBlockedHandler, getImage, setBlockedHandler, shortenTextgetDefaultImage, getDefaultImages, getDefaultOrientation, getReturnCode, getShell, getWindowManager, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setWindowManagerequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFigure, getScaledImagewidgetDefaultSelectedAdapter, widgetSelectedAdapterpublic 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()
ISaveAsImageConfigurationconfigure in interface ISaveAsImageConfigurationpublic void addExporters(java.util.Map<java.lang.String,java.lang.Boolean> diagramExporterTypes)
ISaveAsImageConfigurationaddExporters in interface ISaveAsImageConfigurationdiagramExporterTypes - A Map holding all exporters.public void modifyText(ModifyEvent e)
modifyText in interface ModifyListenerpublic void updateControls()
updateControls in class AbstractFigureSelectionDialogpublic final int getImageFormat()
ISaveAsImageConfigurationSWT.IMAGE_BMP.getImageFormat in interface ISaveAsImageConfigurationpublic final java.lang.String getFormattedFileExtension()
ISaveAsImageConfigurationgetFormattedFileExtension in interface ISaveAsImageConfigurationpublic final java.lang.String getFileExtension()
ISaveAsImageConfigurationgetFileExtension in interface ISaveAsImageConfigurationpublic double getImageScaleFactor()
ISaveAsImageConfigurationgetImageScaleFactor in interface ISaveAsImageConfiguration