Eclipse Draw2d
2.1

org.eclipse.draw2d
Class PrinterGraphics

java.lang.Object
  |
  +--org.eclipse.draw2d.Graphics
        |
        +--org.eclipse.draw2d.ScaledGraphics
              |
              +--org.eclipse.draw2d.PrinterGraphics

public class PrinterGraphics
extends ScaledGraphics


Nested Class Summary
 
Nested classes inherited from class org.eclipse.draw2d.ScaledGraphics
ScaledGraphics.State
 
Field Summary
 
Fields inherited from class org.eclipse.draw2d.Graphics
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 drawImage(Image srcImage, int x, int y)
           
 void drawImage(Image srcImage, int sx, int sy, int sw, int sh, int tx, int ty, int tw, int th)
           
 
Methods inherited from class org.eclipse.draw2d.ScaledGraphics
clipRect, dispose, drawArc, drawFocus, drawLine, drawOval, drawPolygon, drawPolyline, drawRectangle, drawRoundRectangle, drawString, drawText, fillArc, fillGradient, fillOval, fillPolygon, fillRectangle, fillRoundRectangle, fillString, fillText, getBackgroundColor, getClip, getFont, getFontMetrics, getForegroundColor, getLineStyle, getLineWidth, getXORMode, popState, pushState, restoreState, scale, setBackgroundColor, setClip, setFont, setForegroundColor, setLineStyle, setLineWidth, setXORMode, translate
 
Methods inherited from class org.eclipse.draw2d.Graphics
drawArc, drawFocus, drawImage, drawImage, drawLine, drawOval, drawRectangle, drawString, drawText, fillArc, fillGradient, fillOval, fillRectangle, fillString, fillText, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrinterGraphics

public PrinterGraphics(Graphics g,
                       Printer p)
Creates a new PrinterGraphics with Graphics g, using Printer p

Parameters:
g - Graphics object to draw with * @param p Printer to print to
Method Detail

drawImage

public void drawImage(Image srcImage,
                      int x,
                      int y)
Overrides:
drawImage in class ScaledGraphics
See Also:
Graphics.drawImage(Image, int, int)

drawImage

public void drawImage(Image srcImage,
                      int sx,
                      int sy,
                      int sw,
                      int sh,
                      int tx,
                      int ty,
                      int tw,
                      int th)
Overrides:
drawImage in class ScaledGraphics

Eclipse Draw2d
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.