|
||||||||||
| 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.ClosePath
public class ClosePath
A PathCommand that represents the end of the current subpath.
| Constructor Summary | |
|---|---|
ClosePath()
Creates a close PathCommand. |
|
ClosePath(boolean relative)
Creates a close PathCommand with the given boolean as to whether or
not it is relative. |
|
ClosePath(ClosePath command)
Creates a copy of the given close PathCommand. |
|
| Method Summary | |
|---|---|
ClosePath |
copy()
Returns a copy of the path command. |
boolean |
nearEqual(PathCommand command)
Determines equality of two commands using rounded values. |
void |
toAbsolute(PrecisePoint currentPoint,
PrecisePoint movePoint)
Converts the path commands to absolute coordinates using the given frame of reference and the last move. |
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.PathCommand |
|---|
isRelative, setRelative |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClosePath()
PathCommand. Defaults to absolute.
public ClosePath(boolean relative)
PathCommand with the given boolean as to whether or
not it is relative.
relative - true if the command is relativepublic ClosePath(ClosePath command)
PathCommand.
command - the command to be copied| Method Detail |
|---|
public ClosePath copy()
PathCommand
copy in class PathCommandpublic boolean nearEqual(PathCommand command)
PathCommand
nearEqual in class PathCommandcommand - the command to compare
public void toAbsolute(PrecisePoint currentPoint,
PrecisePoint movePoint)
PathCommand
toAbsolute in class PathCommandcurrentPoint - frame of referencemovePoint - last move point
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 | |||||||||