Package com.stimulsoft.base.drawing.path
Class StiPathCommand
java.lang.Object
com.stimulsoft.base.drawing.path.StiPathCommand
- Direct Known Subclasses:
StiPathArc,StiPathClose,StiPathCubicBezier,StiPathCurve,StiPathCurveTo,StiPathEllipticalAcr,StiPathLine,StiPathLineTo,StiPathMoveTo,StiPathPie,StiPathRectangle
Sti path command to draw complex objects
Copyright Stimulsoft
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final double"Magic" value to construct circle by Bezier curves -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<StiPathCommand> createCircle(StiRectangle rect, List<StiPathCommand> path) Return List of curve commands that represent circlestatic StiPathCurveToCreate CurveTo commandReturn operationdoublegetX()doublegetY()static StiPathLineToCreate LineTo commandstatic StiPathMoveToCreate MoveTo commandvoidsetX(double x) voidsetY(double y)
-
Field Details
-
KAPPA
public static final double KAPPA"Magic" value to construct circle by Bezier curves- See Also:
-
-
Constructor Details
-
StiPathCommand
public StiPathCommand(double x, double y) Constructor- Parameters:
x-y-
-
-
Method Details
-
getCommand
Return operation- Returns:
StiPathCommand
-
moveTo
Create MoveTo command- Parameters:
x-y-- Returns:
StiPathMoveTo
-
lineTo
Create LineTo command- Parameters:
x-y-- Returns:
StiPathLineTo
-
curveTo
Create CurveTo command- Parameters:
x-y-ax-ay-- Returns:
StiPathCurveTo
-
createCircle
Return List of curve commands that represent circle- Parameters:
rect-path-- Returns:
-
getX
public double getX()- Returns:
- the x
-
setX
public void setX(double x) - Parameters:
x- the x to set
-
getY
public double getY()- Returns:
- the y
-
setY
public void setY(double y) - Parameters:
y- the y to set
-