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.PrintFigureOperationA 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.
-
-
Constructor Summary
Constructors Constructor Description PrintFigureScaleableOperation(IPrintConfiguration printConfiguration)Creates a new PrintFigureScaleableOperation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidprintPages()Prints 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, setPrintSource
-
-
-
-
Constructor Detail
-
PrintFigureScaleableOperation
public PrintFigureScaleableOperation(IPrintConfiguration printConfiguration)
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 Detail
-
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:
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:
printPagesin classorg.eclipse.draw2d.PrintFigureOperation- See Also:
PrintOperation.printPages()
-
-