- java.lang.Object
-
- javafx.scene.shape.PathElement
-
- javafx.scene.shape.MoveTo
-
public class MoveTo extends PathElement
通过移动到指定的坐标来创建对路径的补充。有关路径元素的更多信息,请参阅
Path和PathElement类。例:
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));- 从以下版本开始:
- JavaFX 2.0
-
-
Property Summary
Properties Type Property 描述 DoublePropertyx定义指定的X坐标。DoublePropertyy定义指定的Y坐标。-
Properties inherited from class javafx.scene.shape.PathElement
absolute
-
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 doublegetX()获取属性x的值。doublegetY()获取属性y的值。voidsetX(double value)设置属性x的值。voidsetY(double value)设置属性y的值。StringtoString()返回此MoveTo对象的字符串表示形式。DoublePropertyxProperty()定义指定的X坐标。DoublePropertyyProperty()定义指定的Y坐标。-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class javafx.scene.shape.PathElement
absoluteProperty, isAbsolute, setAbsolute
-
-
-
-
Property Detail
-
x
public final DoubleProperty xProperty
定义指定的X坐标。- Default value:
- 0.0
- 另请参见:
-
getX(),setX(double)
-
y
public final DoubleProperty yProperty
定义指定的Y坐标。- Default value:
- 0.0
- 另请参见:
-
getY(),setY(double)
-
-
方法详细信息
-
setX
public final void setX(double value)
设置属性x的值。- Property description:
- 定义指定的X坐标。
- Default value:
- 0.0
-
getX
public final double getX()
获取属性x的值。- Property description:
- 定义指定的X坐标。
- Default value:
- 0.0
-
xProperty
public final DoubleProperty xProperty()
定义指定的X坐标。- Default value:
- 0.0
- 另请参见:
-
getX(),setX(double)
-
setY
public final void setY(double value)
设置属性y的值。- Property description:
- 定义指定的Y坐标。
- Default value:
- 0.0
-
getY
public final double getY()
获取属性y的值。- Property description:
- 定义指定的Y坐标。
- Default value:
- 0.0
-
yProperty
public final DoubleProperty yProperty()
定义指定的Y坐标。- Default value:
- 0.0
- 另请参见:
-
getY(),setY(double)
-
-