Class PathCommand

java.lang.Object
com.github.weisj.jsvg.geometry.path.PathCommand
Direct Known Subclasses:
Arc, Cubic, CubicSmooth, Horizontal, LineTo, MoveTo, Quadratic, QuadraticSmooth, Terminal, Vertical

public abstract class PathCommand extends Object
  • Field Details

    • isRelative

      private final boolean isRelative
    • nodeCount

      private final int nodeCount
  • Constructor Details

    • PathCommand

      protected PathCommand(int nodeCount)
    • PathCommand

      protected PathCommand(boolean isRelative, int nodeCount)
  • Method Details

    • offset

      protected Point2D.Float offset(@NotNull @NotNull BuildHistory hist)
    • lastKnotReflection

      protected Point2D.Float lastKnotReflection(@NotNull @NotNull BuildHistory hist)
    • isRelative

      public boolean isRelative()
    • appendPath

      public abstract void appendPath(@NotNull @NotNull Path2D path, @NotNull @NotNull BuildHistory hist)
    • nodeCount

      public int nodeCount()