public class PrinterGraphics extends ScaledGraphics
ScaledGraphics.StateLINE_CUSTOM, LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID| Constructor and Description |
|---|
PrinterGraphics(Graphics g,
Printer p)
Creates a new PrinterGraphics with Graphics g, using Printer p
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
clipPath, clipRect, drawArc, drawFocus, drawLine, drawOval, drawPath, drawPoint, drawPolygon, drawPolygon, drawPolyline, drawPolyline, drawRectangle, drawRoundRectangle, drawString, drawText, drawText, drawTextLayout, fillArc, fillGradient, fillOval, fillPath, fillPolygon, fillPolygon, fillRectangle, fillRoundRectangle, fillString, fillText, getAbsoluteScale, getAdvanced, getAlpha, getAntialias, getBackgroundColor, getClip, getFillRule, getFont, getFontMetrics, getForegroundColor, getInterpolation, getLineAttributes, getLineCap, getLineJoin, getLineMiterLimit, getLineStyle, getLineWidth, getLineWidthFloat, getTextAntialias, getXORMode, popState, pushState, restoreState, rotate, scale, setAdvanced, setAlpha, setAntialias, setBackgroundColor, setBackgroundPattern, setClip, setClip, setFillRule, setFont, setForegroundColor, setForegroundPattern, setInterpolation, setLineCap, setLineDash, setLineDash, setLineDashOffset, setLineJoin, setLineMiterLimit, setLineStyle, setLineWidth, setLineWidthFloat, setTextAntialias, setXORMode, translate, translatedrawArc, drawFocus, drawImage, drawImage, drawLine, drawOval, drawRectangle, drawString, drawText, drawText, drawTextLayout, fillArc, fillGradient, fillOval, fillRectangle, fillString, fillText, scale, shear, translatepublic void dispose()
Graphicsdispose in class ScaledGraphicsScaledGraphics.dispose()public void drawImage(Image srcImage, int x, int y)
GraphicsdrawImage 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)
GraphicsdrawImage 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 attributesScaledGraphics.setLineAttributes(org.eclipse.swt.graphics.LineAttributes)Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.