public class PrintFigureDialog extends AbstractFigureSelectionDialog implements IPrintConfiguration, ModifyListener, PaintListener
PrintFigureScaleableOperationWindow.IExceptionHandler| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
decimalNumberFormat |
static double[] |
SCALE_FACTORS |
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 |
|---|
PrintFigureDialog(Shell shell,
org.eclipse.gef.GraphicalViewer graphicalViewer,
Printer printer)
Creates a new PrintFigureDialog.
|
| Modifier and Type | Method and Description |
|---|---|
void |
buttonPressed(int buttonID)
This method is currently not used, since "normal" user would not need it.
|
int |
configure()
Configures this container.
|
double |
getCurrentScale() |
double |
getMaximumOfXYImageScaleFactors() |
IPrintPreferences |
getPreferences()
Returns the printer preferences as given through this dialog.
|
Printer |
getPrinter()
Returns the
Printer to be used. |
double |
getPrinterScaleFactor() |
void |
modifyText(ModifyEvent e) |
void |
paintControl(PaintEvent e) |
void |
updateControls() |
void |
widgetSelected(SelectionEvent e) |
cleanUp, getFigure, getGraphicalViewer, getImage, getScaledImage, setScaledImage, setScaledImage, widgetDefaultSelectedapplyDialogFont, 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, waitcleanUp, getFigure, getScaledImagewidgetDefaultSelectedAdapter, widgetSelectedAdapterpublic static final java.lang.String decimalNumberFormat
public static final double[] SCALE_FACTORS
public void updateControls()
updateControls in class AbstractFigureSelectionDialogpublic void paintControl(PaintEvent e)
paintControl in interface PaintListenerpublic void buttonPressed(int buttonID)
buttonPressed in class Dialogpublic void modifyText(ModifyEvent e)
modifyText in interface ModifyListenerpublic void widgetSelected(SelectionEvent e)
widgetSelected in interface SelectionListenerwidgetSelected in class AbstractFigureSelectionDialogpublic double getPrinterScaleFactor()
public IPrintPreferences getPreferences()
getPreferences in interface IPrintConfigurationpublic double getCurrentScale()
public Printer getPrinter()
IPrintConfigurationPrinter to be used.getPrinter in interface IPrintConfigurationpublic double getMaximumOfXYImageScaleFactors()
_preferences.public int configure()
IPrintConfigurationconfigure in interface IPrintConfiguration