|
||||||||||
| 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
public abstract class PathCommand
A command that represents a segment of a path.
| Constructor Summary | |
|---|---|
PathCommand()
Creates a path command. |
|
PathCommand(boolean relative)
Creates a path command. |
|
PathCommand(PathCommand command)
Creates a copy of the given command. |
|
| Method Summary | |
|---|---|
abstract PathCommand |
copy()
Returns a copy of the path command. |
boolean |
isRelative()
Returns true if the command is relative. |
abstract boolean |
nearEqual(PathCommand command)
Determines equality of two commands using rounded values. |
void |
setRelative(boolean relative)
Sets the command to relative or absolute |
void |
toAbsolute(PrecisePoint currentPoint,
PrecisePoint movePoint)
Converts the path commands to absolute coordinates using the given frame of reference and the last move. |
abstract PathCommand |
toCurve(PrecisePoint currentPoint,
PrecisePoint movePoint,
PrecisePoint curvePoint,
PrecisePoint quadraticPoint)
Converts the PathCommand to a CurveTo command. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PathCommand()
public PathCommand(boolean relative)
relative - true if the command is relativepublic PathCommand(PathCommand command)
command - the command to be copied| Method Detail |
|---|
public abstract PathCommand copy()
public boolean isRelative()
public abstract boolean nearEqual(PathCommand command)
command - the command to compare
public void setRelative(boolean relative)
relative - true if relative
public void toAbsolute(PrecisePoint currentPoint,
PrecisePoint movePoint)
currentPoint - frame of referencemovePoint - last move point
public abstract PathCommand toCurve(PrecisePoint currentPoint,
PrecisePoint movePoint,
PrecisePoint curvePoint,
PrecisePoint quadraticPoint)
PathCommand to a CurveTo command. If a
MoveTo no conversion takes place, but the current move point is
updated.
currentPoint - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||