
public abstract class EndPointCommand extends PathCommand
PathCommand with an endpoint.| Modifier and Type | Field and Description |
|---|---|
protected double |
x |
protected double |
y |
relative| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
appendTo, copy, isRelative, nearEqual, setRelative, toCurvepublic EndPointCommand()
public EndPointCommand(double x,
double y)
x - ending x-coordinatey - ending y-coordinatepublic 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 copiedpublic 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 commandpublic void toAbsolute(PrecisePoint currentPoint, PrecisePoint movePoint)
PathCommandtoAbsolute in class PathCommandcurrentPoint - frame of referencemovePoint - last move pointCopyright © 2018. All rights reserved.