com.stimulsoft.base.drawing.path
Class StiPathCommand

java.lang.Object
  extended by com.stimulsoft.base.drawing.path.StiPathCommand
Direct Known Subclasses:
StiPathArc, StiPathClose, StiPathCubicBezier, StiPathCurve, StiPathCurveTo, StiPathEllipticalAcr, StiPathLine, StiPathLineTo, StiPathMoveTo, StiPathPie, StiPathRectangle

public class StiPathCommand
extends java.lang.Object

Sti path command to draw complex objects Copyright Stimulsoft


Field Summary
static double KAPPA
          "Magic" value to construct circle by Bezier curves
 
Constructor Summary
StiPathCommand(double x, double y)
          Constructor
 
Method Summary
static java.util.List<StiPathCommand> createCircle(StiRectangle rect, java.util.List<StiPathCommand> path)
          Return List of curve commands that represent circle
static StiPathCurveTo curveTo(java.lang.Double x, java.lang.Double y, java.lang.Double ax, java.lang.Double ay)
          Create CurveTo command
 StiPathCommandEnum getCommand()
          Return operation
 double getX()
           
 double getY()
           
static StiPathLineTo lineTo(java.lang.Double x, java.lang.Double y)
          Create LineTo command
static StiPathMoveTo moveTo(java.lang.Double x, java.lang.Double y)
          Create MoveTo command
 void setX(double x)
           
 void setY(double y)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KAPPA

public static final double KAPPA
"Magic" value to construct circle by Bezier curves

See Also:
Constant Field Values
Constructor Detail

StiPathCommand

public StiPathCommand(double x,
                      double y)
Constructor

Parameters:
x -
y -
Method Detail

getCommand

public StiPathCommandEnum getCommand()
Return operation

Returns:
StiPathCommand

moveTo

public static StiPathMoveTo moveTo(java.lang.Double x,
                                   java.lang.Double y)
Create MoveTo command

Parameters:
x -
y -
Returns:
StiPathMoveTo

lineTo

public static StiPathLineTo lineTo(java.lang.Double x,
                                   java.lang.Double y)
Create LineTo command

Parameters:
x -
y -
Returns:
StiPathLineTo

curveTo

public static StiPathCurveTo curveTo(java.lang.Double x,
                                     java.lang.Double y,
                                     java.lang.Double ax,
                                     java.lang.Double ay)
Create CurveTo command

Parameters:
x -
y -
ax -
ay -
Returns:
StiPathCurveTo

createCircle

public static java.util.List<StiPathCommand> createCircle(StiRectangle rect,
                                                          java.util.List<StiPathCommand> path)
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