Class PrintFigureScaleableOperation
java.lang.Object
org.eclipse.draw2d.PrintOperation
org.eclipse.draw2d.PrintFigureOperation
org.eclipse.graphiti.ui.internal.util.ui.print.PrintFigureScaleableOperation
public class PrintFigureScaleableOperation
extends org.eclipse.draw2d.PrintFigureOperation
A PrintFigureOperation, which allows to print with fully configurable size
and position. The width, height, and margins are expected to be accessible
through the field
_preferences
.-
Field Summary
Fields inherited from class org.eclipse.draw2d.PrintFigureOperation
FIT_HEIGHT, FIT_PAGE, FIT_WIDTH, TILE
-
Constructor Summary
ConstructorDescriptionPrintFigureScaleableOperation
(IPrintConfiguration printConfiguration) Creates a new PrintFigureScaleableOperation. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Prints the pages based on the preference values in_preferences
.protected void
setupPrinterGraphicsFor
(org.eclipse.draw2d.Graphics graphics, org.eclipse.draw2d.IFigure figure) Overrides superclass.Methods inherited from class org.eclipse.draw2d.PrintFigureOperation
getPrintMode, getPrintSource, preparePrintSource, restorePrintSource, setPrintMode, setPrintSource
Methods inherited from class org.eclipse.draw2d.PrintOperation
cleanup, getFreshPrinterGraphics, getPrinter, getPrintRegion, run, setPrinter, setPrintMargin, setupGraphicsForPage
-
Constructor Details
-
PrintFigureScaleableOperation
Creates a new PrintFigureScaleableOperation.- Parameters:
p
- The printer, where to printfigure
- actually only used to call super methodsimage
- The image to print, this is currently used for printing since Figures do not allow for flexible xy-scaling.
-
-
Method Details
-
setupPrinterGraphicsFor
protected void setupPrinterGraphicsFor(org.eclipse.draw2d.Graphics graphics, org.eclipse.draw2d.IFigure figure) Overrides superclass. This means, that the print-modes of the super-class are ignored.- Overrides:
setupPrinterGraphicsFor
in classorg.eclipse.draw2d.PrintFigureOperation
- See Also:
-
PrintFigureOperation.setupPrinterGraphicsFor(org.eclipse.draw2d.Graphics, org.eclipse.draw2d.IFigure)
-
printPages
protected void printPages()Prints the pages based on the preference values in_preferences
.- Overrides:
printPages
in classorg.eclipse.draw2d.PrintFigureOperation
- See Also:
-
PrintOperation.printPages()
-