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.
    • hints

      private RenderingHints hints
      Rendering hints.
    • background

      private Color background
      Current background color.
    • color

      private Color color
      Current foreground color.
    • clip

      private Shape clip
      Shape used for clipping paint operations.
    • composite

      private Composite composite
      Method used for compositing.
    • font

      private Font font
      Current font.
    • paint

      private Paint paint
      Paint used to fill shapes.
    • stroke

      private Stroke stroke
      Stroke used for drawing shapes.
    • transform

      private AffineTransform transform
      Current transformation matrix.
    • xorMode

      private Color xorMode
      XOR mode used for rendering.
  • Constructor Details

    • GraphicsState

      public GraphicsState()
  • Method Details