|
Eclipse Draw2d 3.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.draw2d.Graphics
org.eclipse.draw2d.ScaledGraphics
org.eclipse.draw2d.PrinterGraphics
public class PrinterGraphics
A scalable graphics object used to print to a printer.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.draw2d.ScaledGraphics |
|---|
ScaledGraphics.State |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.draw2d.Graphics |
|---|
LINE_CUSTOM, LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
| Constructor Summary | |
|---|---|
PrinterGraphics(Graphics g,
Printer p)
Creates a new PrinterGraphics with Graphics g, using Printer p |
|
| Method Summary | |
|---|---|
void |
dispose()
Disposes this object, releasing any resources. |
void |
drawImage(Image srcImage,
int x,
int y)
Draws the given Image at the location (x,y). |
void |
drawImage(Image srcImage,
int sx,
int sy,
int sw,
int sh,
int tx,
int ty,
int tw,
int th)
Draws a rectangular section of the given Image to the specified rectangular reagion on the canvas. |
void |
setLineAttributes(LineAttributes attributes)
Overridden to translate dashes to printer specific values. |
| Methods inherited from class org.eclipse.draw2d.Graphics |
|---|
drawArc, drawFocus, drawImage, drawImage, drawLine, drawOval, drawRectangle, drawString, drawText, drawText, drawTextLayout, fillArc, fillGradient, fillOval, fillRectangle, fillString, fillText, scale, setLineDash, shear, translate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrinterGraphics(Graphics g,
Printer p)
g - Graphics object to draw withp - Printer to print to| Method Detail |
|---|
public void dispose()
Graphics
dispose in class ScaledGraphicsScaledGraphics.dispose()
public void drawImage(Image srcImage,
int x,
int y)
Graphics
drawImage in class ScaledGraphicssrcImage - the Imagex - the x coordinatey - the y coordinateGraphics.drawImage(Image, int, int)
public void drawImage(Image srcImage,
int sx,
int sy,
int sw,
int sh,
int tx,
int ty,
int tw,
int th)
Graphics
drawImage in class ScaledGraphicssrcImage - the imagesx - the x coordinate of the sourcesy - the y coordinate of the sourcesw - the width of the sourcesh - the height of the sourcetx - the x coordinate of the destinationty - the y coordinate of the destinationtw - the width of the destinationth - the height of the destinationGraphics.drawImage(Image, int, int, int, int, int, int, int, int)public void setLineAttributes(LineAttributes attributes)
setLineAttributes in class ScaledGraphicsattributes - the line attributesorg.eclipse.draw2d.ScaledGraphics#setLineAttributes(org.eclipse.swt.graphics.LineAttributes)
|
Eclipse Draw2d 3.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||