- 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 java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private booleanisRelativeprivate intnodeCount
-
Constructor Summary
Constructors Modifier Constructor Description protectedPathCommand(boolean isRelative, int nodeCount)protectedPathCommand(int nodeCount)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidappendPath(@NotNull java.awt.geom.Path2D path, @NotNull BuildHistory hist)booleanisRelative()private java.awt.geom.Point2D.FloatlastKnotReflection(java.awt.geom.Point2D.Float point, java.awt.geom.Point2D.Float knot)protected java.awt.geom.Point2D.FloatlastKnotReflectionCubic(@NotNull BuildHistory hist)protected java.awt.geom.Point2D.FloatlastKnotReflectionQuadratic(@NotNull BuildHistory hist)intnodeCount()protected java.awt.geom.Point2D.Floatoffset(@NotNull BuildHistory hist)
-
-
-
Method Detail
-
offset
protected java.awt.geom.Point2D.Float offset(@NotNull @NotNull BuildHistory hist)
-
lastKnotReflectionCubic
@NotNull protected java.awt.geom.Point2D.Float lastKnotReflectionCubic(@NotNull @NotNull BuildHistory hist)
-
lastKnotReflectionQuadratic
@NotNull protected java.awt.geom.Point2D.Float lastKnotReflectionQuadratic(@NotNull @NotNull BuildHistory hist)
-
lastKnotReflection
@NotNull private java.awt.geom.Point2D.Float lastKnotReflection(@NotNull java.awt.geom.Point2D.Float point, @NotNull java.awt.geom.Point2D.Float knot)
-
isRelative
public boolean isRelative()
-
appendPath
public abstract void appendPath(@NotNull @NotNull java.awt.geom.Path2D path, @NotNull @NotNull BuildHistory hist)
-
nodeCount
public int nodeCount()
-
-