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
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPathCommand(boolean isRelative, int nodeCount) protectedPathCommand(int nodeCount) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidappendPath(@NotNull Path2D path, @NotNull BuildHistory hist) booleanprivate Point2D.FloatlastKnotReflection(Point2D.Float point, Point2D.Float knot) protected Point2D.FloatlastKnotReflectionCubic(@NotNull BuildHistory hist) protected Point2D.FloatlastKnotReflectionQuadratic(@NotNull BuildHistory hist) intprotected Point2D.Floatoffset(@NotNull BuildHistory hist)
-
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
-
lastKnotReflectionCubic
-
lastKnotReflectionQuadratic
-
lastKnotReflection
@NotNull private Point2D.Float lastKnotReflection(@NotNull Point2D.Float point, @NotNull Point2D.Float knot) -
isRelative
public boolean isRelative() -
appendPath
-
nodeCount
public int nodeCount()
-