public abstract class EndPointCommand extends PathCommand
PathCommand
with an endpoint.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, toCurve
public 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)
PathCommand
toAbsolute
in class PathCommand
currentPoint
- frame of referencemovePoint
- last move pointCopyright © 2015. All rights reserved.