public class MoveTo extends PathElement
For more information on path elements see the Path
and
PathElement
classes.
Example:
import javafx.scene.shape.*; Path path = new Path(); path.getElements().add(new MoveTo(0.0f, 0.0f)); path.getElements().add(new LineTo(100.0f, 100.0f));
Type | Property and Description |
---|---|
DoubleProperty |
x
Defines the specified X coordinate.
|
DoubleProperty |
y
Defines the specified Y coordinate.
|
absoluteProperty
Modifier and Type | Field and Description |
---|---|
private DoubleProperty |
x
Defines the specified X coordinate.
|
private DoubleProperty |
y
Defines the specified Y coordinate.
|
nodes
Constructor and Description |
---|
MoveTo()
Creates an empty instance of MoveTo.
|
MoveTo(double x,
double y)
Creates a new instance of MoveTo.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addTo(NGPath pgPath) |
private void |
doAddTo(Path2D path) |
double |
getX()
Gets the value of the property x.
|
double |
getY()
Gets the value of the property y.
|
void |
setX(double value)
Sets the value of the property x.
|
void |
setY(double value)
Sets the value of the property y.
|
java.lang.String |
toString()
Returns a string representation of this
MoveTo object. |
DoubleProperty |
xProperty()
Defines the specified X coordinate.
|
DoubleProperty |
yProperty()
Defines the specified Y coordinate.
|
absoluteProperty, addNode, isAbsolute, removeNode, setAbsolute, u
public final DoubleProperty xProperty
getX()
,
setX(double)
public final DoubleProperty yProperty
getY()
,
setY(double)
private DoubleProperty x
private DoubleProperty y
public MoveTo()
public MoveTo(double x, double y)
x
- the horizontal coordinate to move toy
- the vertical coordinate to move topublic final void setX(double value)
public final double getX()
public final DoubleProperty xProperty()
getX()
,
setX(double)
public final void setY(double value)
public final double getY()
public final DoubleProperty yProperty()
getY()
,
setY(double)
void addTo(NGPath pgPath)
addTo
in class PathElement
private void doAddTo(Path2D path)
public java.lang.String toString()
MoveTo
object.toString
in class java.lang.Object
MoveTo
object.