Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Draw2d
3.3

org.eclipse.draw2d
Class PrinterGraphics

java.lang.Object
  extended by

org.eclipse.draw2d.Graphics
      extended by

org.eclipse.draw2d.ScaledGraphics
          extended by
org.eclipse.draw2d.PrinterGraphics

public class PrinterGraphics
extends ScaledGraphics

A scalable graphics object used to print to a printer.


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_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.
 
Methods inherited from class org.eclipse.draw2d. ScaledGraphics
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, scale, setAdvanced, setAlpha, setAntialias, setBackgroundColor, setBackgroundPattern, setClip, setFillRule, setFont, setForegroundColor, setForegroundPattern, setInterpolation, setLineAttributes, setLineCap, setLineDash, setLineJoin, setLineMiterLimit, setLineStyle, setLineWidth, setLineWidthFloat, setTextAntialias, setXORMode, translate, translate
 
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, rotate, scale, setLineDash, shear, 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
p - Printer to print to
Method Detail

dispose

public void dispose()
Description copied from class: Graphics
Disposes this object, releasing any resources.

Overrides:
dispose in class ScaledGraphics
See Also:
ScaledGraphics.dispose()

drawImage

public void drawImage(Image srcImage,
                      int x,
                      int y)
Description copied from class: Graphics
Draws the given Image at the location (x,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)
Description copied from class: Graphics
Draws a rectangular section of the given Image to the specified rectangular reagion on the canvas. The section of the image bounded by the rectangle (x1,y1,w1,h1) is copied to the section of the canvas bounded by the rectangle (x2,y2,w2,h2). If these two sizes are different, scaling will occur.

Overrides:
drawImage in class ScaledGraphics
See Also:
Graphics.drawImage(Image, int, int, int, int, int, int, int, int)

Eclipse Draw2d
3.3

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire