public class PrinterGraphics extends ScaledGraphics
ScaledGraphics.State
LINE_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, translate
drawArc, drawFocus, drawImage, drawImage, drawLine, drawOval, drawRectangle, drawString, drawText, drawText, drawTextLayout, fillArc, fillGradient, fillOval, fillRectangle, fillString, fillText, scale, shear, translate
public void dispose()
Graphics
dispose
in class ScaledGraphics
ScaledGraphics.dispose()
public void drawImage(Image srcImage, int x, int y)
Graphics
drawImage
in class ScaledGraphics
srcImage
- 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 ScaledGraphics
srcImage
- 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 ScaledGraphics
attributes
- the line attributesScaledGraphics.setLineAttributes(org.eclipse.swt.graphics.LineAttributes)
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.