Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## edu.uci.ics.jung.visualization.transform.shape
Class GraphicsDecorator

    java.lang.Object
      edu.uci.ics.jung.visualization.transform.shape.GraphicsDecorator

Direct Known Subclasses:
  TransformingGraphics

public abstract class GraphicsDecorator
extends Object

a complete wrapping of Graphics2D, useful as a base class.

Author:
  Tom Nelson - RABA Technologies
See Also:
  `as an example subclass`

Field Summary
`protected Graphics2D` | `delegate`

Constructor Summary
`GraphicsDecorator()`
`GraphicsDecorator(Graphics2D delegate)`

Method Summary
`void` | `addRenderingHints(Map hints)`
`void` | `clearRect(int x, int y, int width, int height)`
`void` | `clip(Shape s)`
`void` | `clipRect(int x, int y, int width, int height)`
`void` | `copyArea(int x, int y, int width, int height, int dx, int dy)`
`Graphics` | `create()`
`Graphics` | `create(int x, int y, int width, int height)`
`void` | `dispose()`
`void` | `draw(Shape s)`
`void` | `draw3DRect(int x, int y, int width, int height, boolean raised)`
`void` | `drawArc(int x, int y, int width, int height, int startAngle, int arcAngle)`
`void` | `drawBytes(byte[] data, int offset, int length, int x, int y)`
`void` | `drawChars(char[] data, int offset, int length, int x, int y)`
`void` | `drawGlyphVector(GlyphVector g, float x, float y)`
`void` | `drawImage(BufferedImage img, BufferedImageOp op, int x, int y)`
`boolean` | `drawImage(Image img, AffineTransform xform, ImageObserver obs)`
`boolean` | `drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer)`
`boolean` | `drawImage(Image img, int x, int y, ImageObserver observer)`
`boolean` | `drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer)`
`boolean` | `drawImage(Image img, int x, int y, int width, int height, ImageObserver observer)`
`boolean` | `drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer)`
`boolean` | `drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)`
`void` | `drawLine(int x1, int y1, int x2, int y2)`
`void` | `drawOval(int x, int y, int width, int height)`
`void` | `drawPolygon(int[] xPoints, int[] yPoints, int nPoints)`
`void` | `drawPolygon(Polygon p)`
`void` | `drawPolyline(int[] xPoints, int[] yPoints, int nPoints)`
`void` | `drawRect(int x, int y, int width, int height)`
`void` | `drawRenderableImage(RenderableImage img, AffineTransform xform)`
`void` | `drawRenderedImage(RenderedImage img, AffineTransform xform)`
`void` | `drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)`
`void` | `drawString(AttributedCharacterIterator iterator, float x, float y)`
`void` | `drawString(AttributedCharacterIterator iterator, int x, int y)`
`void` | `drawString(String s, float x, float y)`
`void` | `drawString(String str, int x, int y)`
`boolean` | `equals(Object obj)`
`void` | `fill(Shape s)`
`void` | `fill3DRect(int x, int y, int width, int height, boolean raised)`
`void` | `fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)`
`void` | `fillOval(int x, int y, int width, int height)`
`void` | `fillPolygon(int[] xPoints, int[] yPoints, int nPoints)`
`void` | `fillPolygon(Polygon p)`
`void` | `fillRect(int x, int y, int width, int height)`
`void` | `fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)`
`void` | `finalize()`
`Color` | `getBackground()`
`Shape` | `getClip()`
`Rectangle` | `getClipBounds()`
`Rectangle` | `getClipBounds(Rectangle r)`
`Rectangle` | `getClipRect()`
`Color` | `getColor()`
`Composite` | `getComposite()`
`Graphics2D` | `getDelegate()`
`GraphicsConfiguration` | `getDeviceConfiguration()`
`Font` | `getFont()`
`FontMetrics` | `getFontMetrics()`
`FontMetrics` | `getFontMetrics(Font f)`
`FontRenderContext` | `getFontRenderContext()`
`Paint` | `getPaint()`
`Object` | `getRenderingHint(RenderingHints.Key hintKey)`
`RenderingHints` | `getRenderingHints()`
`Stroke` | `getStroke()`
`AffineTransform` | `getTransform()`
`int` | `hashCode()`
`boolean` | `hit(Rectangle rect, Shape s, boolean onStroke)`
`boolean` | `hitClip(int x, int y, int width, int height)`
`void` | `rotate(double theta)`
`void` | `rotate(double theta, double x, double y)`
`void` | `scale(double sx, double sy)`
`void` | `setBackground(Color color)`
`void` | `setClip(int x, int y, int width, int height)`
`void` | `setClip(Shape clip)`
`void` | `setColor(Color c)`
`void` | `setComposite(Composite comp)`
`void` | `setDelegate(Graphics2D delegate)`
`void` | `setFont(Font font)`
`void` | `setPaint(Paint paint)`
`void` | `setPaintMode()`
`void` | `setRenderingHint(RenderingHints.Key hintKey, Object hintValue)`
`void` | `setRenderingHints(Map hints)`
`void` | `setStroke(Stroke s)`
`void` | `setTransform(AffineTransform Tx)`
`void` | `setXORMode(Color c1)`
`void` | `shear(double shx, double shy)`
`String` | `toString()`
`void` | `transform(AffineTransform Tx)`
`void` | `translate(double tx, double ty)`
`void` | `translate(int x, int y)`

Methods inherited from class java.lang.Object
`clone, getClass, notify, notifyAll, wait, wait, wait`

Field Detail

### delegate

    protected Graphics2D delegate

Constructor Detail

### GraphicsDecorator

    public GraphicsDecorator()

### GraphicsDecorator

    public GraphicsDecorator(Graphics2D delegate)

Method Detail

### setDelegate

    public void setDelegate(Graphics2D delegate)

### getDelegate

    public Graphics2D getDelegate()

### addRenderingHints

    public void addRenderingHints(Map hints)

### clearRect

    public void clearRect(int x,
                          int y,
                          int width,
                          int height)

### clip

    public void clip(Shape s)

### clipRect

    public void clipRect(int x,
                         int y,
                         int width,
                         int height)

### copyArea

    public void copyArea(int x,
                         int y,
                         int width,
                         int height,
                         int dx,
                         int dy)

### create

    public Graphics create()

### create

    public Graphics create(int x,
                           int y,
                           int width,
                           int height)

### dispose

    public void dispose()

### draw

    public void draw(Shape s)

### draw3DRect

    public void draw3DRect(int x,
                           int y,
                           int width,
                           int height,
                           boolean raised)

### drawArc

    public void drawArc(int x,
                        int y,
                        int width,
                        int height,
                        int startAngle,
                        int arcAngle)

### drawBytes

    public void drawBytes(byte[] data,
                          int offset,
                          int length,
                          int x,
                          int y)

### drawChars

    public void drawChars(char[] data,
                          int offset,
                          int length,
                          int x,
                          int y)

### drawGlyphVector

    public void drawGlyphVector(GlyphVector g,
                                float x,
                                float y)

### drawImage

    public void drawImage(BufferedImage img,
                          BufferedImageOp op,
                          int x,
                          int y)

### drawImage

    public boolean drawImage(Image img,
                             AffineTransform xform,
                             ImageObserver obs)

### drawImage

    public boolean drawImage(Image img,
                             int x,
                             int y,
                             Color bgcolor,
                             ImageObserver observer)

### drawImage

    public boolean drawImage(Image img,
                             int x,
                             int y,
                             ImageObserver observer)

### drawImage

    public boolean drawImage(Image img,
                             int x,
                             int y,
                             int width,
                             int height,
                             Color bgcolor,
                             ImageObserver observer)

### drawImage

    public boolean drawImage(Image img,
                             int x,
                             int y,
                             int width,
                             int height,
                             ImageObserver observer)

### drawImage

    public boolean drawImage(Image img,
                             int dx1,
                             int dy1,
                             int dx2,
                             int dy2,
                             int sx1,
                             int sy1,
                             int sx2,
                             int sy2,
                             Color bgcolor,
                             ImageObserver observer)

### drawImage

    public boolean drawImage(Image img,
                             int dx1,
                             int dy1,
                             int dx2,
                             int dy2,
                             int sx1,
                             int sy1,
                             int sx2,
                             int sy2,
                             ImageObserver observer)

### drawLine

    public void drawLine(int x1,
                         int y1,
                         int x2,
                         int y2)

### drawOval

    public void drawOval(int x,
                         int y,
                         int width,
                         int height)

### drawPolygon

    public void drawPolygon(int[] xPoints,
                            int[] yPoints,
                            int nPoints)

### drawPolygon

    public void drawPolygon(Polygon p)

### drawPolyline

    public void drawPolyline(int[] xPoints,
                             int[] yPoints,
                             int nPoints)

### drawRect

    public void drawRect(int x,
                         int y,
                         int width,
                         int height)

### drawRenderableImage

    public void drawRenderableImage(RenderableImage img,
                                    AffineTransform xform)

### drawRenderedImage

    public void drawRenderedImage(RenderedImage img,
                                  AffineTransform xform)

### drawRoundRect

    public void drawRoundRect(int x,
                              int y,
                              int width,
                              int height,
                              int arcWidth,
                              int arcHeight)

### drawString

    public void drawString(AttributedCharacterIterator iterator,
                           float x,
                           float y)

### drawString

    public void drawString(AttributedCharacterIterator iterator,
                           int x,
                           int y)

### drawString

    public void drawString(String s,
                           float x,
                           float y)

### drawString

    public void drawString(String str,
                           int x,
                           int y)

### equals

    public boolean equals(Object obj)

### fill

    public void fill(Shape s)

### fill3DRect

    public void fill3DRect(int x,
                           int y,
                           int width,
                           int height,
                           boolean raised)

### fillArc

    public void fillArc(int x,
                        int y,
                        int width,
                        int height,
                        int startAngle,
                        int arcAngle)

### fillOval

    public void fillOval(int x,
                         int y,
                         int width,
                         int height)

### fillPolygon

    public void fillPolygon(int[] xPoints,
                            int[] yPoints,
                            int nPoints)

### fillPolygon

    public void fillPolygon(Polygon p)

### fillRect

    public void fillRect(int x,
                         int y,
                         int width,
                         int height)

### fillRoundRect

    public void fillRoundRect(int x,
                              int y,
                              int width,
                              int height,
                              int arcWidth,
                              int arcHeight)

### finalize

    public void finalize()

### getBackground

    public Color getBackground()

### getClip

    public Shape getClip()

### getClipBounds

    public Rectangle getClipBounds()

### getClipBounds

    public Rectangle getClipBounds(Rectangle r)

### getClipRect

    public Rectangle getClipRect()

### getColor

    public Color getColor()

### getComposite

    public Composite getComposite()

### getDeviceConfiguration

    public GraphicsConfiguration getDeviceConfiguration()

### getFont

    public Font getFont()

### getFontMetrics

    public FontMetrics getFontMetrics()

### getFontMetrics

    public FontMetrics getFontMetrics(Font f)

### getFontRenderContext

    public FontRenderContext getFontRenderContext()

### getPaint

    public Paint getPaint()

### getRenderingHint

    public Object getRenderingHint(RenderingHints.Key hintKey)

### getRenderingHints

    public RenderingHints getRenderingHints()

### getStroke

    public Stroke getStroke()

### getTransform

    public AffineTransform getTransform()

### hashCode

    public int hashCode()

### hit

    public boolean hit(Rectangle rect,
                       Shape s,
                       boolean onStroke)

### hitClip

    public boolean hitClip(int x,
                           int y,
                           int width,
                           int height)

### rotate

    public void rotate(double theta,
                       double x,
                       double y)

### rotate

    public void rotate(double theta)

### scale

    public void scale(double sx,
                      double sy)

### setBackground

    public void setBackground(Color color)

### setClip

    public void setClip(int x,
                        int y,
                        int width,
                        int height)

### setClip

    public void setClip(Shape clip)

### setColor

    public void setColor(Color c)

### setComposite

    public void setComposite(Composite comp)

### setFont

    public void setFont(Font font)

### setPaint

    public void setPaint(Paint paint)

### setPaintMode

    public void setPaintMode()

### setRenderingHint

    public void setRenderingHint(RenderingHints.Key hintKey,
                                 Object hintValue)

### setRenderingHints

    public void setRenderingHints(Map hints)

### setStroke

    public void setStroke(Stroke s)

### setTransform

    public void setTransform(AffineTransform Tx)

### setXORMode

    public void setXORMode(Color c1)

### shear

    public void shear(double shx,
                      double shy)

### toString

    public String toString()

### transform

    public void transform(AffineTransform Tx)

### translate

    public void translate(double tx,
                          double ty)

### translate

    public void translate(int x,
                          int y)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD