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 java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
isRelative
private int
nodeCount
-
Constructor Summary
Constructors Modifier Constructor Description protected
PathCommand(boolean isRelative, int nodeCount)
protected
PathCommand(int nodeCount)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
appendPath(@NotNull java.awt.geom.Path2D path, @NotNull BuildHistory hist)
boolean
isRelative()
protected java.awt.geom.Point2D.Float
lastKnotReflection(@NotNull BuildHistory hist)
int
nodeCount()
protected java.awt.geom.Point2D.Float
offset(@NotNull BuildHistory hist)
-
-
-
Method Detail
-
offset
protected java.awt.geom.Point2D.Float offset(@NotNull @NotNull BuildHistory hist)
-
lastKnotReflection
protected java.awt.geom.Point2D.Float lastKnotReflection(@NotNull @NotNull BuildHistory hist)
-
isRelative
public boolean isRelative()
-
appendPath
public abstract void appendPath(@NotNull @NotNull java.awt.geom.Path2D path, @NotNull @NotNull BuildHistory hist)
-
nodeCount
public int nodeCount()
-
-