public class LineTo extends PathElement
パス要素の詳細は、Path
およびPathElement
クラスを参照してください。
例:
import javafx.scene.shape.*; Path path = new Path(); path.getElements().add(new MoveTo(0.0f, 50.0f)); path.getElements().add(new LineTo(100.0f, 100.0f));
Type | プロパティと説明 |
---|---|
DoubleProperty |
x
X座標を定義します。
|
DoubleProperty |
y
Y座標を定義します。
|
absolute
コンストラクタと説明 |
---|
LineTo()
LineToの空インスタンスを作成します。
|
LineTo(double x, double y)
LineToの新しいインスタンスを作成します。
|
修飾子と型 | メソッドと説明 |
---|---|
double |
getX()
プロパティxの値を取得します。
|
double |
getY()
プロパティyの値を取得します。
|
void |
setX(double value)
プロパティxの値を設定します。
|
void |
setY(double value)
プロパティyの値を設定します。
|
String |
toString()
この
LineTo オブジェクトの文字列表現を返します。 |
DoubleProperty |
xProperty()
X座標を定義します。
|
DoubleProperty |
yProperty()
Y座標を定義します。
|
absoluteProperty、isAbsolute、setAbsolute
public final DoubleProperty xProperty
getX()
、setX(double)
public final DoubleProperty yProperty
getY()
、setY(double)
public LineTo()
public LineTo(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.