Class GraphicsState

java.lang.Object
de.erichseifert.vectorgraphics2d.GraphicsState
All Implemented Interfaces:
Cloneable

public class GraphicsState extends Object implements Cloneable
Representation of the Graphics2D status at a certain point in time.
  • Field Details

    • DEFAULT_BACKGROUND

      public static final Color DEFAULT_BACKGROUND
      Default background color.
    • DEFAULT_COLOR

      public static final Color DEFAULT_COLOR
      Default color.
    • DEFAULT_CLIP

      public static final Shape DEFAULT_CLIP
      Default clipping shape.
    • DEFAULT_COMPOSITE

      public static final Composite DEFAULT_COMPOSITE
      Default composite mode.
    • DEFAULT_FONT

      public static final Font DEFAULT_FONT
      Default font.
    • DEFAULT_PAINT

      public static final Color DEFAULT_PAINT
      Default paint.
    • DEFAULT_STROKE

      public static final Stroke DEFAULT_STROKE
      Default stroke.
    • DEFAULT_TRANSFORM

      public static final AffineTransform DEFAULT_TRANSFORM
      Default transformation.
    • DEFAULT_XOR_MODE

      public static final Color DEFAULT_XOR_MODE
      Default XOR mode.
  • Constructor Details

    • GraphicsState

      public GraphicsState()
  • Method Details

    • clone

      public Object clone() throws CloneNotSupportedException
      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException
    • transformShape

      public Shape transformShape(Shape shape)
    • untransformShape

      public Shape untransformShape(Shape shape)
    • getHints

      public RenderingHints getHints()
    • getBackground

      public Color getBackground()
    • setBackground

      public void setBackground(Color background)
    • getColor

      public Color getColor()
    • setColor

      public void setColor(Color color)
    • getClip

      public Shape getClip()
    • setClip

      public void setClip(Shape clip)
    • getComposite

      public Composite getComposite()
    • setComposite

      public void setComposite(Composite composite)
    • getFont

      public Font getFont()
    • setFont

      public void setFont(Font font)
    • getPaint

      public Paint getPaint()
    • setPaint

      public void setPaint(Paint paint)
    • getStroke

      public Stroke getStroke()
    • setStroke

      public void setStroke(Stroke stroke)
    • getTransform

      public AffineTransform getTransform()
    • setTransform

      public void setTransform(AffineTransform tx)
    • getXorMode

      public Color getXorMode()
    • setXorMode

      public void setXorMode(Color xorMode)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • isDefault

      public boolean isDefault()