|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.chart.client.draw.path.PathCommand
com.sencha.gxt.chart.client.draw.path.EndPointCommand
com.sencha.gxt.chart.client.draw.path.EllipticalArc
public class EllipticalArc
A PathCommand that represents a segment of an ellipse.
| Constructor Summary | |
|---|---|
EllipticalArc()
Creates an elliptical arc PathCommand. |
|
EllipticalArc(double radiusX,
double radiusY,
double xAxisRotation,
int largeArcFlag,
int sweepFlag,
double x,
double y)
Creates an elliptical arc PathCommand using the given values. |
|
EllipticalArc(double radiusX,
double radiusY,
double xAxisRotation,
int largeArcFlag,
int sweepFlag,
double x,
double y,
boolean relative)
Creates an elliptical arc PathCommand using the given values. |
|
EllipticalArc(EllipticalArc command)
Creates a copy of the given elliptical arc. |
|
| Method Summary | |
|---|---|
EllipticalArc |
copy()
Returns a copy of the path command. |
int |
getLargeArcFlag()
Returns the large arc flag of the arc. |
double |
getRadiusX()
Returns the radius of the ellipse on its x-axis. |
double |
getRadiusY()
Returns the radius of the ellipse on its y-axis. |
int |
getSweepFlag()
Returns the sweep flag of the arc. |
double |
getxAxisRotation()
Returns the rotation of the ellipse in relation to the current coordinate system. |
boolean |
nearEqual(PathCommand command)
Determines equality of two commands using rounded values. |
void |
setLargeArcFlag(int largeArcFlag)
Sets the large arc flag of the arc. |
void |
setRadiusX(double radiusX)
Sets the radius of the ellipse on its x-axis. |
void |
setRadiusY(double radiusY)
Sets the radius of the ellipse on its y-axis. |
void |
setSweepFlag(int sweepFlag)
Sets the sweep flag of the arc. |
void |
setxAxisRotation(double xAxisRotation)
Sets the rotation of the ellipse in relation to the current coordinate system |
CurveTo |
toCurve(PrecisePoint currentPoint,
PrecisePoint movePoint,
PrecisePoint curvePoint,
PrecisePoint quadraticPoint)
Converts the PathCommand to a CurveTo command. |
String |
toString()
|
| Methods inherited from class com.sencha.gxt.chart.client.draw.path.EndPointCommand |
|---|
getX, getY, setX, setY, toAbsolute |
| Methods inherited from class com.sencha.gxt.chart.client.draw.path.PathCommand |
|---|
isRelative, setRelative |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EllipticalArc()
PathCommand. Defaults to absolute.
public EllipticalArc(double radiusX,
double radiusY,
double xAxisRotation,
int largeArcFlag,
int sweepFlag,
double x,
double y)
PathCommand using the given values.
Defaults to absolute.
radiusX - the radius of the ellipse on its x-axisradiusY - the radius of the ellipse on its y-axisxAxisRotation - the rotation of the ellipse in relation to the current
coordinate systemlargeArcFlag - if 0 then the smaller arc will be used, if 1 then the
largersweepFlag - if 0 then the arc will be in a negative angle, if 1 then
in a positive anglex - the x-coordinate of the end of the segmenty - the y-coordinate of the end of the segment
public EllipticalArc(double radiusX,
double radiusY,
double xAxisRotation,
int largeArcFlag,
int sweepFlag,
double x,
double y,
boolean relative)
PathCommand using the given values.
radiusX - the radius of the ellipse on its x-axisradiusY - the radius of the ellipse on its y-axisxAxisRotation - the rotation of the ellipse in relation to the current
coordinate systemlargeArcFlag - if 0 then the smaller arc will be used, if 1 then the
largersweepFlag - if 0 then the arc will be in a negative angle, if 1 then
in a positive anglex - the x-coordinate of the end of the segmenty - the y-coordinate of the end of the segmentrelative - true if the command is relativepublic EllipticalArc(EllipticalArc command)
command - the arc to be copied| Method Detail |
|---|
public EllipticalArc copy()
PathCommand
copy in class PathCommandpublic int getLargeArcFlag()
public double getRadiusX()
public double getRadiusY()
public int getSweepFlag()
public double getxAxisRotation()
public boolean nearEqual(PathCommand command)
PathCommand
nearEqual in class PathCommandcommand - the command to compare
public void setLargeArcFlag(int largeArcFlag)
largeArcFlag - if 0 then the smaller arc will be used, if 1 then the
largerpublic void setRadiusX(double radiusX)
radiusX - the radius of the ellipse on its x-axispublic void setRadiusY(double radiusY)
radiusY - the radius of the ellipse on its y-axispublic void setSweepFlag(int sweepFlag)
sweepFlag - if 0 then the arc will be in a negative angle, if 1 then
in a positive anglepublic void setxAxisRotation(double xAxisRotation)
xAxisRotation - the rotation of the ellipse in relation to the current
coordinate system
public CurveTo toCurve(PrecisePoint currentPoint,
PrecisePoint movePoint,
PrecisePoint curvePoint,
PrecisePoint quadraticPoint)
PathCommandPathCommand to a CurveTo command. If a
MoveTo no conversion takes place, but the current move point is
updated.
toCurve in class PathCommandcurrentPoint - the current point of the pathmovePoint - the frame of reference for the pathcurvePoint - the frame of reference for the BézierquadraticPoint - the beginning of the last quadratic curve
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||