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
ConstructorsConstructorDescriptionPrintFigureScaleableOperation(IPrintConfiguration printConfiguration) Creates a new PrintFigureScaleableOperation. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidPrints the pages based on the preference values in_preferences.protected voidsetupPrinterGraphicsFor(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, setPrintSourceMethods inherited from class org.eclipse.draw2d.PrintOperation
cleanup, createGraphics, getFreshGraphics, getFreshPrinterGraphics, getPrinter, getPrintRegion, run, setPrinter, setPrintMargin, setupGraphicsForPage, 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:
setupPrinterGraphicsForin classorg.eclipse.draw2d.PrintFigureOperation- See Also:
-
printPages
protected void printPages()Prints the pages based on the preference values in_preferences.- Overrides:
printPagesin classorg.eclipse.draw2d.PrintFigureOperation- See Also:
-