Eclipse Draw2d
2.1

org.eclipse.draw2d
Class ScaledGraphics

java.lang.Object
  |
  +--org.eclipse.draw2d.Graphics
        |
        +--org.eclipse.draw2d.ScaledGraphics
Direct Known Subclasses:
PrinterGraphics

public class ScaledGraphics
extends Graphics


Nested Class Summary
protected static class ScaledGraphics.State
           
 
Field Summary
 
Fields inherited from class org.eclipse.draw2d.Graphics
LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID
 
Constructor Summary
ScaledGraphics(Graphics g)
           
 
Method Summary
 void clipRect(Rectangle r)
           
 void dispose()
           
 void drawArc(int x, int y, int w, int h, int offset, int sweep)
           
 void drawFocus(int x, int y, int w, int h)
           
 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)
           
 void drawLine(int x1, int y1, int x2, int y2)
           
 void drawOval(int x, int y, int w, int h)
           
 void drawPolygon(PointList points)
           
 void drawPolyline(PointList points)
           
 void drawRectangle(int x, int y, int w, int h)
           
 void drawRoundRectangle(Rectangle r, int arcWidth, int arcHeight)
           
 void drawString(String s, int x, int y)
           
 void drawText(String s, int x, int y)
           
 void fillArc(int x, int y, int w, int h, int offset, int sweep)
           
 void fillGradient(int x, int y, int w, int h, boolean vertical)
           
 void fillOval(int x, int y, int w, int h)
           
 void fillPolygon(PointList points)
           
 void fillRectangle(int x, int y, int w, int h)
           
 void fillRoundRectangle(Rectangle r, int arcWidth, int arcHeight)
           
 void fillString(String s, int x, int y)
           
 void fillText(String s, int x, int y)
           
 Color getBackgroundColor()
           
 Rectangle getClip(Rectangle rect)
           
 Font getFont()
           
 FontMetrics getFontMetrics()
           
 Color getForegroundColor()
           
 int getLineStyle()
           
 int getLineWidth()
           
 boolean getXORMode()
           
 void popState()
           
 void pushState()
           
 void restoreState()
           
 void scale(double amount)
           
 void setBackgroundColor(Color rgb)
           
 void setClip(Rectangle r)
           
 void setFont(Font f)
           
 void setForegroundColor(Color rgb)
           
 void setLineStyle(int style)
           
 void setLineWidth(int width)
           
 void setXORMode(boolean b)
           
 void translate(int dx, int dy)
           
 
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

ScaledGraphics

public ScaledGraphics(Graphics g)
Method Detail

clipRect

public void clipRect(Rectangle r)
Specified by:
clipRect in class Graphics

dispose

public void dispose()
Specified by:
dispose in class Graphics

drawArc

public void drawArc(int x,
                    int y,
                    int w,
                    int h,
                    int offset,
                    int sweep)
Specified by:
drawArc in class Graphics

fillArc

public void fillArc(int x,
                    int y,
                    int w,
                    int h,
                    int offset,
                    int sweep)
Specified by:
fillArc in class Graphics

fillGradient

public void fillGradient(int x,
                         int y,
                         int w,
                         int h,
                         boolean vertical)
Specified by:
fillGradient in class Graphics

drawFocus

public void drawFocus(int x,
                      int y,
                      int w,
                      int h)
Specified by:
drawFocus in class Graphics

drawImage

public void drawImage(Image srcImage,
                      int x,
                      int y)
Specified by:
drawImage in class Graphics

drawImage

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

drawLine

public void drawLine(int x1,
                     int y1,
                     int x2,
                     int y2)
Specified by:
drawLine in class Graphics

drawOval

public void drawOval(int x,
                     int y,
                     int w,
                     int h)
Specified by:
drawOval in class Graphics

fillOval

public void fillOval(int x,
                     int y,
                     int w,
                     int h)
Specified by:
fillOval in class Graphics

drawPolygon

public void drawPolygon(PointList points)
Specified by:
drawPolygon in class Graphics

fillPolygon

public void fillPolygon(PointList points)
Specified by:
fillPolygon in class Graphics

drawPolyline

public void drawPolyline(PointList points)
Specified by:
drawPolyline in class Graphics

drawRectangle

public void drawRectangle(int x,
                          int y,
                          int w,
                          int h)
Specified by:
drawRectangle in class Graphics

fillRectangle

public void fillRectangle(int x,
                          int y,
                          int w,
                          int h)
Specified by:
fillRectangle in class Graphics

drawRoundRectangle

public void drawRoundRectangle(Rectangle r,
                               int arcWidth,
                               int arcHeight)
Specified by:
drawRoundRectangle in class Graphics

fillRoundRectangle

public void fillRoundRectangle(Rectangle r,
                               int arcWidth,
                               int arcHeight)
Specified by:
fillRoundRectangle in class Graphics

drawString

public void drawString(String s,
                       int x,
                       int y)
Specified by:
drawString in class Graphics

fillString

public void fillString(String s,
                       int x,
                       int y)
Specified by:
fillString in class Graphics

drawText

public void drawText(String s,
                     int x,
                     int y)
Specified by:
drawText in class Graphics

fillText

public void fillText(String s,
                     int x,
                     int y)
Specified by:
fillText in class Graphics

getBackgroundColor

public Color getBackgroundColor()
Specified by:
getBackgroundColor in class Graphics

getClip

public Rectangle getClip(Rectangle rect)
Specified by:
getClip in class Graphics

getFont

public Font getFont()
Specified by:
getFont in class Graphics

getFontMetrics

public FontMetrics getFontMetrics()
Specified by:
getFontMetrics in class Graphics

getForegroundColor

public Color getForegroundColor()
Specified by:
getForegroundColor in class Graphics

getLineStyle

public int getLineStyle()
Specified by:
getLineStyle in class Graphics

getLineWidth

public int getLineWidth()
Specified by:
getLineWidth in class Graphics

getXORMode

public boolean getXORMode()
Specified by:
getXORMode in class Graphics

popState

public void popState()
Specified by:
popState in class Graphics

pushState

public void pushState()
Specified by:
pushState in class Graphics

restoreState

public void restoreState()
Specified by:
restoreState in class Graphics

scale

public void scale(double amount)
Specified by:
scale in class Graphics

setBackgroundColor

public void setBackgroundColor(Color rgb)
Specified by:
setBackgroundColor in class Graphics

setClip

public void setClip(Rectangle r)
Specified by:
setClip in class Graphics

setFont

public void setFont(Font f)
Specified by:
setFont in class Graphics

setForegroundColor

public void setForegroundColor(Color rgb)
Specified by:
setForegroundColor in class Graphics

setLineStyle

public void setLineStyle(int style)
Specified by:
setLineStyle in class Graphics

setLineWidth

public void setLineWidth(int width)
Specified by:
setLineWidth in class Graphics

setXORMode

public void setXORMode(boolean b)
Specified by:
setXORMode in class Graphics

translate

public void translate(int dx,
                      int dy)
Specified by:
translate in class Graphics

Eclipse Draw2d
2.1

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