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));
Type | プロパティと説明 |
---|---|
DoubleProperty |
x
指定されたX座標を定義します。
|
DoubleProperty |
y
指定されたY座標を定義します。
|
absolute
コンストラクタと説明 |
---|
MoveTo()
MoveToの空インスタンスを作成します。
|
MoveTo(double x, double y)
MoveToの新しいインスタンスを生成します。
|
修飾子と型 | メソッドと説明 |
---|---|
double |
getX()
プロパティxの値を取得します。
|
double |
getY()
プロパティyの値を取得します。
|
void |
setX(double value)
プロパティxの値を設定します。
|
void |
setY(double value)
プロパティyの値を設定します。
|
String |
toString()
この
MoveTo オブジェクトの文字列表現を返します。 |
DoubleProperty |
xProperty()
指定されたX座標を定義します。
|
DoubleProperty |
yProperty()
指定されたY座標を定義します。
|
absoluteProperty、isAbsolute、setAbsolute
public final DoubleProperty xProperty
getX()
、setX(double)
public final DoubleProperty yProperty
getY()
、setY(double)
public MoveTo()
public MoveTo(double x, double y)
x
- 移動先の水平座標y
- 移動先の垂直座標public 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)
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.