|
||||||||||
| 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
public abstract class EndPointCommand
Abstract class representing a PathCommand with an endpoint.
| Constructor Summary | |
|---|---|
EndPointCommand()
Creates an end point command with default values. |
|
EndPointCommand(double x,
double y)
Creates an end point command with the given end point coordinates. |
|
EndPointCommand(double x,
double y,
boolean relative)
Creates an end point command with the given end point coordinates and whether or not the command is relative. |
|
EndPointCommand(EndPointCommand command)
Creates a copy of the given end point command. |
|
| Method Summary | |
|---|---|
double |
getX()
Returns the x-coordinate of the end point of the command. |
double |
getY()
Returns the y-coordinate of the end point of the command. |
void |
setX(double x)
Sets the x-coordinate of the end point of the command. |
void |
setY(double y)
Sets the y-coordinate of the end point of the command. |
void |
toAbsolute(PrecisePoint currentPoint,
PrecisePoint movePoint)
Converts the path commands to absolute coordinates using the given frame of reference and the last move. |
| Methods inherited from class com.sencha.gxt.chart.client.draw.path.PathCommand |
|---|
copy, isRelative, nearEqual, setRelative, toCurve |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EndPointCommand()
public EndPointCommand(double x,
double y)
x - ending x-coordinatey - ending y-coordinate
public EndPointCommand(double x,
double y,
boolean relative)
x - ending x-coordinatey - ending y-coordinaterelative - whether or not the command is relativepublic EndPointCommand(EndPointCommand command)
command - the command to be copied| Method Detail |
|---|
public double getX()
public double getY()
public void setX(double x)
x - the x-coordinate of the end point of the commandpublic void setY(double y)
y - the y-coordinate of the end point of the command
public void toAbsolute(PrecisePoint currentPoint,
PrecisePoint movePoint)
PathCommand
toAbsolute in class PathCommandcurrentPoint - frame of referencemovePoint - last move point
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||