public class PrintFigureDialog extends AbstractFigureSelectionDialog implements IPrintConfiguration, org.eclipse.swt.events.ModifyListener, org.eclipse.swt.events.PaintListener
PrintFigureScaleableOperation| 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(org.eclipse.swt.widgets.Shell shell,
org.eclipse.gef.GraphicalViewer graphicalViewer,
org.eclipse.swt.printing.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.
|
org.eclipse.swt.printing.Printer |
getPrinter()
Returns the
Printer to be used. |
double |
getPrinterScaleFactor() |
void |
modifyText(org.eclipse.swt.events.ModifyEvent e) |
void |
paintControl(org.eclipse.swt.events.PaintEvent e) |
void |
updateControls() |
void |
widgetSelected(org.eclipse.swt.events.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, getScaledImagepublic static final java.lang.String decimalNumberFormat
public static final double[] SCALE_FACTORS
public PrintFigureDialog(org.eclipse.swt.widgets.Shell shell,
org.eclipse.gef.GraphicalViewer graphicalViewer,
org.eclipse.swt.printing.Printer printer)
shell - The Shell of this dialog.graphicalViewer - The GraphicalViewer, which to print.printer - The printer, to which to printpublic void updateControls()
updateControls in class AbstractFigureSelectionDialogpublic void paintControl(org.eclipse.swt.events.PaintEvent e)
paintControl in interface org.eclipse.swt.events.PaintListenerpublic void buttonPressed(int buttonID)
buttonPressed in class org.eclipse.jface.dialogs.Dialogpublic void modifyText(org.eclipse.swt.events.ModifyEvent e)
modifyText in interface org.eclipse.swt.events.ModifyListenerpublic void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
widgetSelected in interface org.eclipse.swt.events.SelectionListenerwidgetSelected in class AbstractFigureSelectionDialogpublic double getPrinterScaleFactor()
public IPrintPreferences getPreferences()
getPreferences in interface IPrintConfigurationpublic double getCurrentScale()
public org.eclipse.swt.printing.Printer getPrinter()
IPrintConfigurationPrinter to be used.getPrinter in interface IPrintConfigurationpublic double getMaximumOfXYImageScaleFactors()
_preferences.public int configure()
IPrintConfigurationconfigure in interface IPrintConfiguration