|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swt.print.GraphPrinter
The GraphPrinter class is the counterpart to the Swing
GraphPrintable class. It provides method to print a
VisualGraphView to a Display or to render it to an image.
| Field Summary | |
boolean |
inhibitLT2RBFlip
Inhibit x flipping. |
boolean |
inhibitYFlip
Inhibit y flipping. |
| Constructor Summary | |
GraphPrinter(VisualGraphView vgView,
double viewScale,
int rows,
int cols)
Constructs a new GraphPrinter instance for the given VisualGraphView. |
|
| Method Summary | |
boolean |
drawCutBorder()
Returns the draw cut border flag |
void |
drawCutBorder(boolean b)
Sets the draw cut border flag |
boolean |
drawMargins()
Returns the draw margin flag |
void |
drawMargins(boolean b)
Sets the draw margin flag |
static double |
getMaximumHeightDouble(org.eclipse.swt.graphics.Device device,
org.eclipse.swt.graphics.GC gc,
FormatItem[] items,
BasePageFormat cpf)
The method getMaximumHeightDouble returns the maximum height required for the list of FormatItems. |
void |
printTo(org.eclipse.swt.graphics.Device swtDevice,
org.eclipse.swt.graphics.GC gc,
BasePageFormat bpf,
int row,
int col,
int pageIndex)
Prints the page of the graph specified by row and col to the given device by using the given graphic context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public boolean inhibitLT2RBFlip
public boolean inhibitYFlip
| Constructor Detail |
public GraphPrinter(VisualGraphView vgView,
double viewScale,
int rows,
int cols)
vgView - the view to printviewScale - the view scale used to renderrows - defines in how many rows this view is devidedcols - defines in how many columns this view is devided| Method Detail |
public final void drawMargins(boolean b)
b - the new value for the draw margin flagpublic final boolean drawMargins()
public final void drawCutBorder(boolean b)
b - the new value for the draw cut border flagpublic final boolean drawCutBorder()
public final void printTo(org.eclipse.swt.graphics.Device swtDevice,
org.eclipse.swt.graphics.GC gc,
BasePageFormat bpf,
int row,
int col,
int pageIndex)
swtDevice - a swt device to draw on (could be a printer too)gc - the graphic context used for drawingbpf - the page formatrow - the row index of the view part which should be drawncol - the columm index of the view part which should be drawnpageIndex - the page index
public static double getMaximumHeightDouble(org.eclipse.swt.graphics.Device device,
org.eclipse.swt.graphics.GC gc,
FormatItem[] items,
BasePageFormat cpf)
device - the device which renders the fontgc - graphics context to use to determine expected boundsitems - list of items to check.cpf - PageFormat responsible for the scaled font.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||