Class AffineTransformPathBuilder<T>

java.lang.Object
org.jhotdraw8.geom.AbstractPathBuilder<T>
org.jhotdraw8.geom.AffineTransformPathBuilder<T>
Type Parameters:
T - the product type
All Implemented Interfaces:
PathBuilder<T>

public class AffineTransformPathBuilder<T> extends AbstractPathBuilder<T>
TransformPathBuilder.
Author:
Werner Randelshofer
  • Constructor Details

    • AffineTransformPathBuilder

      public AffineTransformPathBuilder(PathBuilder<T> target)
    • AffineTransformPathBuilder

      public AffineTransformPathBuilder(PathBuilder<T> target, AffineTransform transform)
  • Method Details

    • doClosePath

      protected void doClosePath(double lastX, double lastY, double lastMoveToX, double lastMoveToY)
      Specified by:
      doClosePath in class AbstractPathBuilder<T>
    • doCurveTo

      protected void doCurveTo(double lastX, double lastY, double x1, double y1, double x2, double y2, double x3, double y3)
      Specified by:
      doCurveTo in class AbstractPathBuilder<T>
    • doLineTo

      protected void doLineTo(double lastX, double lastY, double x, double y)
      Specified by:
      doLineTo in class AbstractPathBuilder<T>
    • doMoveTo

      protected void doMoveTo(double x, double y)
      Specified by:
      doMoveTo in class AbstractPathBuilder<T>
    • doQuadTo

      protected void doQuadTo(double lastX, double lastY, double x1, double y1, double x2, double y2)
      Specified by:
      doQuadTo in class AbstractPathBuilder<T>
    • getTransform

      public AffineTransform getTransform()
    • setTransform

      public void setTransform(AffineTransform transform)
    • build

      public @Nullable T build()
      Description copied from interface: PathBuilder
      Builds something.

      Some implementations may guarantee a non-null return value.