de.caff.vic

## Class PaintableTransform

- java.lang.Object
- - de.caff.vic.PaintableTransform

- All Implemented Interfaces:
    Paintable

      public class PaintableTransform
      extends java.lang.Object
      implements Paintable

  Paintable transformation.
  Since:
    December 23, 2017
  Author:
    Rammi

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PaintableTransform(java.awt.geom.AffineTransform transform, boolean reset)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `accept(PaintableVisitor visitor)` Accept a visitor.
    `java.awt.geom.AffineTransform` | `getTransform()` Get the transformation.
    `boolean` | `isReset()` Is this a resetting transformation?
    `void` | `paintTo(java.awt.Graphics2D g2, Context context)` Paint this object to the given graphics context.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PaintableTransform

          public PaintableTransform(@Nullable
                                    java.awt.geom.AffineTransform transform,
                                    boolean reset)

  - ### Method Detail

    - #### paintTo

          public void paintTo(@NotNull
                              java.awt.Graphics2D g2,
                              @NotNull
                              Context context)

      Description copied from interface: `Paintable`
      Paint this object to the given graphics context.
      Specified by:
        `paintTo` in interface `Paintable`
      Parameters:
        `g2` - graphics
        `context` - drawing context

    - #### accept

          public void accept(@NotNull
                             PaintableVisitor visitor)

      Description copied from interface: `Paintable`
      Accept a visitor. This is one half of the visitor pattern.
      Specified by:
        `accept` in interface `Paintable`
      Parameters:
        `visitor` - visitor for this paintable

    - #### getTransform

          @Nullable
          public java.awt.geom.AffineTransform getTransform()

      Get the transformation.
      Returns:
        transformation

    - #### isReset

          public boolean isReset()

      Is this a resetting transformation?
      Returns:
        `true`: if this uses `Graphics2D.setTransform(AffineTransform)`
        `false`: if this uses `Graphics2D.transform(AffineTransform)`