public class PrintFigureDialog extends AbstractFigureSelectionDialog implements IPrintConfiguration, ModifyListener, PaintListener
PrintFigureScaleableOperation
Window.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, ELLIPSIS
OK
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, widgetDefaultSelected
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
cleanUp, getFigure, getScaledImage
widgetDefaultSelectedAdapter, widgetSelectedAdapter
public static final java.lang.String decimalNumberFormat
public static final double[] SCALE_FACTORS
public void updateControls()
updateControls
in class AbstractFigureSelectionDialog
public void paintControl(PaintEvent e)
paintControl
in interface PaintListener
public void buttonPressed(int buttonID)
buttonPressed
in class Dialog
public void modifyText(ModifyEvent e)
modifyText
in interface ModifyListener
public void widgetSelected(SelectionEvent e)
widgetSelected
in interface SelectionListener
widgetSelected
in class AbstractFigureSelectionDialog
public double getPrinterScaleFactor()
public IPrintPreferences getPreferences()
getPreferences
in interface IPrintConfiguration
public double getCurrentScale()
public Printer getPrinter()
IPrintConfiguration
Printer
to be used.getPrinter
in interface IPrintConfiguration
public double getMaximumOfXYImageScaleFactors()
_preferences
.public int configure()
IPrintConfiguration
configure
in interface IPrintConfiguration