Class Graphics2DWrapper

java.lang.Object
edu.uci.ics.jung.visualization.transform.shape.Graphics2DWrapper
Direct Known Subclasses:
GraphicsDecorator

public class Graphics2DWrapper extends Object
a complete wrapping of Graphics2D, useful as a base class. Contains no additional methods, other than direct calls to the delegate.
See Also:
  • Field Details

  • Constructor Details

    • Graphics2DWrapper

      public Graphics2DWrapper()
    • Graphics2DWrapper

      public Graphics2DWrapper(Graphics2D delegate)
  • Method Details

    • 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)
      Overrides:
      equals in class Object
    • 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()
      Overrides:
      finalize in class Object
    • 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()
      Overrides:
      hashCode in class Object
    • 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()
      Overrides:
      toString in class Object
    • transform

      public void transform(AffineTransform Tx)
    • translate

      public void translate(double tx, double ty)
    • translate

      public void translate(int x, int y)