APIdia Launch Partner
Top Description Fields Constructors Methods
javafx.scene.shape

public Class MoveTo

extends PathElement
Class Inheritance
Imports
com.sun.javafx.geom.Path2D, com.sun.javafx.scene.shape.MoveToHelper, com.sun.javafx.sg.prism.NGPath, javafx.beans.property.DoubleProperty, .DoublePropertyBase

Creates an addition to the path by moving to the specified coordinates.

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));
Since
JavaFX 2.0

Field Summary

Modifier and TypeField and Description
private DoubleProperty
x

Defines the specified X coordinate.

private DoubleProperty
y

Defines the specified Y coordinate.

Inherited from javafx.scene.shape.PathElement:
nodes

Constructor Summary

AccessConstructor and Description
public
MoveTo()

Creates an empty instance of MoveTo.

public
MoveTo(double
the horizontal coordinate to move to
x
,
double
the vertical coordinate to move to
y
)

Creates a new instance of MoveTo.

Method Summary

Modifier and TypeMethod and Description
pack-priv void
private void
public final double
getX()

public final double
getY()

public final void
setX(double value)

public final void
setY(double value)

public String

Returns:

a string representation of this MoveTo object.
toString
()

Overrides java.lang.Object.toString.

Returns a string representation of this MoveTo object.

public final DoubleProperty
public final DoubleProperty
Inherited from javafx.scene.shape.PathElement:
absolutePropertyaddNodeisAbsoluteremoveNodesetAbsoluteu

Field Detail

xback to summary
private DoubleProperty x

Defines the specified X coordinate.

Default Value
0.0
yback to summary
private DoubleProperty y

Defines the specified Y coordinate.

Default Value
0.0

Constructor Detail

MoveToback to summary
public MoveTo()

Creates an empty instance of MoveTo.

MoveToback to summary
public MoveTo(double x, double y)

Creates a new instance of MoveTo.

Parameters
x:double

the horizontal coordinate to move to

y:double

the vertical coordinate to move to

Method Detail

addToback to summary
pack-priv void addTo(NGPath pgPath)

Implements abstract javafx.scene.shape.PathElement.addTo.

Annotations
@Override
doAddToback to summary
private void doAddTo(Path2D path)
getXback to summary
public final double getX()
getYback to summary
public final double getY()
setXback to summary
public final void setX(double value)
setYback to summary
public final void setY(double value)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a string representation of this MoveTo object.

Returns:String

a string representation of this MoveTo object.

Annotations
@Override
xPropertyback to summary
public final DoubleProperty xProperty()
yPropertyback to summary
public final DoubleProperty yProperty()