public class ArcTo extends PathElement
パス要素の詳細は、Path
およびPathElement
クラスを参照してください。
例:
import javafx.scene.shape.*; Path path = new Path(); MoveTo moveTo = new MoveTo(); moveTo.setX(0.0); moveTo.setY(0.0); ArcTo arcTo = new ArcTo(); arcTo.setX(50.0); arcTo.setY(50.0); arcTo.setRadiusX(50.0); arcTo.setRadiusY(50.0); path.getElements().add(moveTo); path.getElements().add(arcTo);
次の図は、radiusX
、radiusY
およびxAxisRotation
パラメータを示しています。radiusX
は、この円弧が一部を構成する楕円全体の水平方向の半径、radiusY
は垂直方向の半径で、xAxisRotation
は楕円の回転を度単位で定義します。
多くの場合、円弧を開始点から指定された終了座標まで描画する方法には、4つのオプションがあります。これらは、largeArcFlag
およびsweepFlag
パラメータによって区別できます。largeArcFlag == true
は、180度より大きい円弧が描画されることを意味します。sweepFlag == true
は、円弧が正方向の角度、つまり、楕円形内の角度が[fromX, fromY]
から[x,y]
で増加する方向で描画されることを意味します。次の図は、この動作を示したものです。
Type | プロパティと説明 |
---|---|
BooleanProperty |
largeArcFlag
大きい円弧フラグ。
|
DoubleProperty |
radiusX
弧に使用する水平方向の直径。
|
DoubleProperty |
radiusY
弧に使用する垂直方向の半径。
|
BooleanProperty |
sweepFlag
スイープ・フラグ
|
DoubleProperty |
XAxisRotation
x軸の回転(度数)。
|
DoubleProperty |
x
弧に対するx座標。
|
DoubleProperty |
y
円弧に対するy座標。
|
absolute
コンストラクタと説明 |
---|
ArcTo()
ArcToの空インスタンスを作成します。
|
ArcTo(double radiusX, double radiusY, double xAxisRotation, double x, double y, boolean largeArcFlag, boolean sweepFlag)
ArcToの新しいインスタンスを生成します。
|
修飾子と型 | メソッドと説明 |
---|---|
double |
getRadiusX()
プロパティradiusXの値を取得します。
|
double |
getRadiusY()
プロパティradiusYの値を取得します。
|
double |
getX()
プロパティxの値を取得します。
|
double |
getXAxisRotation()
x軸の回転(度数)を取得します。
|
double |
getY()
プロパティyの値を取得します。
|
boolean |
isLargeArcFlag()
プロパティlargeArcFlagの値を取得します。
|
boolean |
isSweepFlag()
プロパティsweepFlagの値を取得します。
|
BooleanProperty |
largeArcFlagProperty()
大きい円弧フラグ。
|
DoubleProperty |
radiusXProperty()
弧に使用する水平方向の直径。
|
DoubleProperty |
radiusYProperty()
弧に使用する垂直方向の半径。
|
void |
setLargeArcFlag(boolean value)
プロパティlargeArcFlagの値を設定します。
|
void |
setRadiusX(double value)
プロパティradiusXの値を設定します。
|
void |
setRadiusY(double value)
プロパティradiusYの値を設定します。
|
void |
setSweepFlag(boolean value)
プロパティsweepFlagの値を設定します。
|
void |
setX(double value)
プロパティxの値を設定します。
|
void |
setXAxisRotation(double value)
x軸の回転(度数)を設定します。
|
void |
setY(double value)
プロパティyの値を設定します。
|
BooleanProperty |
sweepFlagProperty()
スイープ・フラグ
|
String |
toString()
この
ArcTo オブジェクトの文字列表現を返します。 |
DoubleProperty |
XAxisRotationProperty()
x軸の回転(度数)。
|
DoubleProperty |
xProperty()
弧に対するx座標。
|
DoubleProperty |
yProperty()
円弧に対するy座標。
|
absoluteProperty、isAbsolute、setAbsolute
public final DoubleProperty radiusXProperty
getRadiusX()
、setRadiusX(double)
public final DoubleProperty radiusYProperty
getRadiusY()
、setRadiusY(double)
public final DoubleProperty XAxisRotationProperty
public final BooleanProperty largeArcFlagProperty
isLargeArcFlag()
、setLargeArcFlag(boolean)
public final BooleanProperty sweepFlagProperty
isSweepFlag()
、setSweepFlag(boolean)
public final DoubleProperty xProperty
getX()
、setX(double)
public final DoubleProperty yProperty
getY()
、setY(double)
public ArcTo()
public ArcTo(double radiusX, double radiusY, double xAxisRotation, double x, double y, boolean largeArcFlag, boolean sweepFlag)
radiusX
- 円弧の水平方向の半径radiusY
- 円弧の垂直方向の半径xAxisRotation
- x軸の回転(度数)x
- 円弧の終点の水平位置y
- 円弧の終点の垂直位置largeArcFlag
- 大角度フラグ: どちらの角度(大/小)を使用するかを決定します。sweepFlag
- スイープ・フラグ: どちらの円弧(方向)を使用するかを決定します。public final void setRadiusX(double value)
public final double getRadiusX()
public final DoubleProperty radiusXProperty()
getRadiusX()
、setRadiusX(double)
public final void setRadiusY(double value)
public final double getRadiusY()
public final DoubleProperty radiusYProperty()
getRadiusY()
、setRadiusY(double)
public final void setXAxisRotation(double value)
value
- x軸の回転(度数)。public final double getXAxisRotation()
public final DoubleProperty XAxisRotationProperty()
public final void setLargeArcFlag(boolean value)
public final boolean isLargeArcFlag()
public final BooleanProperty largeArcFlagProperty()
isLargeArcFlag()
、setLargeArcFlag(boolean)
public final void setSweepFlag(boolean value)
public final boolean isSweepFlag()
public final BooleanProperty sweepFlagProperty()
isSweepFlag()
、setSweepFlag(boolean)
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.