- java.lang.Object
-
- javafx.scene.layout.CornerRadii
-
public class CornerRadii extends Object
BorderStrokeの4隅それぞれの半径を定義します。 CornerRadiiクラスは不変であるため、複数のBorderStrokesで再利用できます。 このクラスにより、4つの4分の1の楕円の水平および垂直コンポーネントに対応する8つの異なる値が定義され、その値によってBorderStrokeの隅の曲率が定義されます。- 導入されたバージョン:
- JavaFX 8.0
-
-
フィールドのサマリー
フィールド 修飾子と型 フィールド 説明 static CornerRadii
EMPTY
直角の角を示す、完全に空のCornerRadii。
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 CornerRadii(double radius)
すべての隅のすべてのコンポーネントに対して1つの均一の半径値を使用した新しいCornerRadiiを作成します。CornerRadii(double radius, boolean asPercent)
各隅に対して指定された半径を使用した新しいCornerRadiiを作成します。CornerRadii(double topLeft, double topRight, double bottomRight, double bottomLeft, boolean asPercent)
各隅に対して均一であるが独立している半径を使用した新しいCornerRadiiを作成します。CornerRadii(double topLeftHorizontalRadius, double topLeftVerticalRadius, double topRightVerticalRadius, double topRightHorizontalRadius, double bottomRightHorizontalRadius, double bottomRightVerticalRadius, double bottomLeftVerticalRadius, double bottomLeftHorizontalRadius, boolean topLeftHorizontalRadiusAsPercent, boolean topLeftVerticalRadiusAsPercent, boolean topRightVerticalRadiusAsPercent, boolean topRightHorizontalRadiusAsPercent, boolean bottomRightHorizontalRadiusAsPercent, boolean bottomRightVerticalRadiusAsPercent, boolean bottomLeftVerticalRadiusAsPercent, boolean bottomLeftHorizontalRadiusAsPercent)
各隅の半径の各コンポーネントおよび各コンポーネントを値またはパーセンテージとして処理するかどうかを指定できる新しいCornerRadiiを作成します。
-
メソッドのサマリー
すべてのメソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 double
getBottomLeftHorizontalRadius()
左下隅の水平方向の半径の長さ。double
getBottomLeftVerticalRadius()
左下隅の垂直方向の半径の長さ。double
getBottomRightHorizontalRadius()
右下隅の水平方向の半径の長さ。double
getBottomRightVerticalRadius()
右下隅の垂直方向の半径の長さ。double
getTopLeftHorizontalRadius()
左上隅の水平方向の半径の長さ。double
getTopLeftVerticalRadius()
左上隅の垂直方向の半径の長さ。double
getTopRightHorizontalRadius()
右上隅の水平方向の半径の長さ。double
getTopRightVerticalRadius()
右上隅の垂直方向の半径の長さ。boolean
isBottomLeftHorizontalRadiusAsPercentage()
bottomLeftHorizontalRadius
が値またはパーセントのいずれとして解釈されるかを示します。boolean
isBottomLeftVerticalRadiusAsPercentage()
bottomLeftVerticalRadius
が値またはパーセントのいずれとして解釈されるかを示します。boolean
isBottomRightHorizontalRadiusAsPercentage()
bottomRightHorizontalRadius
が値またはパーセントのいずれとして解釈されるかを示します。boolean
isBottomRightVerticalRadiusAsPercentage()
bottomRightVerticalRadius
が値またはパーセントのいずれとして解釈されるかを示します。boolean
isTopLeftHorizontalRadiusAsPercentage()
topLeftHorizontalRadius
が値またはパーセントのいずれとして解釈されるかを示します。boolean
isTopLeftVerticalRadiusAsPercentage()
topLeftVerticalRadius
が値またはパーセントのいずれとして解釈されるかを示します。boolean
isTopRightHorizontalRadiusAsPercentage()
topRightHorizontalRadius
が値またはパーセントのいずれとして解釈されるかを示します。boolean
isTopRightVerticalRadiusAsPercentage()
topRightVerticalRadius
が値またはパーセントのいずれとして解釈されるかを示します。boolean
isUniform()
各隅の半径がまったく同じであるかどうか、および各隅が一貫してパーセントベースであるかどうかを示します。
-
-
-
フィールドの詳細
-
EMPTY
public static final CornerRadii EMPTY
直角の角を示す、完全に空のCornerRadii。 これがBorderStrokeの半径のデフォルト値です。
-
-
コンストラクタの詳細
-
CornerRadii
public CornerRadii(double radius)
すべての隅のすべてのコンポーネントに対して1つの均一の半径値を使用した新しいCornerRadiiを作成します。 このコンストラクタにより、いずれの値もパーセントではないCornerRadiiが作成されます。- パラメータ:
radius
- 各隅の半径。 負数は使用できません。
-
CornerRadii
public CornerRadii(double radius, boolean asPercent)
各隅に対して指定された半径を使用した新しいCornerRadiiを作成します。 この値がパーセントとして解釈されるかどうかは、asPercent
引数に基づいて決まります。- パラメータ:
radius
- 各隅の半径。 負数は使用できません。asPercent
- 半径をパーセントとして解釈するかどうか。
-
CornerRadii
public CornerRadii(double topLeft, double topRight, double bottomRight, double bottomLeft, boolean asPercent)
各隅に対して均一であるが独立している半径を使用した新しいCornerRadiiを作成します。 つまり、各隅を個別に指定できますが、各隅の水平および垂直コンポーネントは均一です。- パラメータ:
topLeft
- 左上隅の半径。 負数は使用できません。topRight
- 右上隅の半径。 負数は使用できません。bottomRight
- 右下隅の半径。 負数は使用できません。bottomLeft
- 左下隅の半径。 負数は使用できません。asPercent
- 4つの半径すべてを値またはパーセントのいずれとみなすか。
-
CornerRadii
public CornerRadii(double topLeftHorizontalRadius, double topLeftVerticalRadius, double topRightVerticalRadius, double topRightHorizontalRadius, double bottomRightHorizontalRadius, double bottomRightVerticalRadius, double bottomLeftVerticalRadius, double bottomLeftHorizontalRadius, boolean topLeftHorizontalRadiusAsPercent, boolean topLeftVerticalRadiusAsPercent, boolean topRightVerticalRadiusAsPercent, boolean topRightHorizontalRadiusAsPercent, boolean bottomRightHorizontalRadiusAsPercent, boolean bottomRightVerticalRadiusAsPercent, boolean bottomLeftVerticalRadiusAsPercent, boolean bottomLeftHorizontalRadiusAsPercent)
各隅の半径の各コンポーネントおよび各コンポーネントを値またはパーセンテージとして処理するかどうかを指定できる新しいCornerRadiiを作成します。- パラメータ:
topLeftHorizontalRadius
- 左上隅の水平半径の長さtopLeftVerticalRadius
- 左上隅の垂直半径の長さtopRightVerticalRadius
- 右上隅の垂直半径の長さtopRightHorizontalRadius
- 右上隅の水平半径の長さbottomRightHorizontalRadius
- 右下隅の水平半径の長さbottomRightVerticalRadius
- 右下隅の垂直半径の長さbottomLeftVerticalRadius
- 左下隅の垂直半径の長さbottomLeftHorizontalRadius
- 左下隅の水平半径の長さtopLeftHorizontalRadiusAsPercent
- 左上隅の水平半径がパーセンテージであるかどうかtopLeftVerticalRadiusAsPercent
- 左上隅の垂直半径がパーセンテージであるかどうかtopRightVerticalRadiusAsPercent
- 右上隅の垂直半径はパーセンテージであるか?topRightHorizontalRadiusAsPercent
- 右上隅の水平半径はパーセンテージであるか?bottomRightHorizontalRadiusAsPercent
- 右下隅の水平半径がパーセンテージであるかどうかbottomRightVerticalRadiusAsPercent
- 右下隅の垂直半径がパーセンテージであるかどうかbottomLeftVerticalRadiusAsPercent
- 左下隅の垂直半径がパーセンテージであるかどうかbottomLeftHorizontalRadiusAsPercent
- 左下隅の水平半径がパーセンテージであるかどうか
-
-
メソッドの詳細
-
getTopLeftHorizontalRadius
public final double getTopLeftHorizontalRadius()
左上隅の水平方向の半径の長さ。- 戻り値:
- 左上隅の水平半径の長さ
-
getTopLeftVerticalRadius
public final double getTopLeftVerticalRadius()
左上隅の垂直方向の半径の長さ。- 戻り値:
- 左上隅の垂直半径の長さ
-
getTopRightVerticalRadius
public final double getTopRightVerticalRadius()
右上隅の垂直方向の半径の長さ。- 戻り値:
- 右上隅の垂直半径の長さ
-
getTopRightHorizontalRadius
public final double getTopRightHorizontalRadius()
右上隅の水平方向の半径の長さ。- 戻り値:
- 右上隅の水平半径の長さ
-
getBottomRightHorizontalRadius
public final double getBottomRightHorizontalRadius()
右下隅の水平方向の半径の長さ。- 戻り値:
- 右下隅の水平半径の長さ
-
getBottomRightVerticalRadius
public final double getBottomRightVerticalRadius()
右下隅の垂直方向の半径の長さ。- 戻り値:
- 右下隅の垂直半径の長さ
-
getBottomLeftVerticalRadius
public final double getBottomLeftVerticalRadius()
左下隅の垂直方向の半径の長さ。- 戻り値:
- 左下隅の垂直半径の長さ
-
getBottomLeftHorizontalRadius
public final double getBottomLeftHorizontalRadius()
左下隅の水平方向の半径の長さ。- 戻り値:
- 左下隅の水平半径の長さ
-
isTopLeftHorizontalRadiusAsPercentage
public final boolean isTopLeftHorizontalRadiusAsPercentage()
topLeftHorizontalRadius
が値またはパーセントのいずれとして解釈されるかを示します。- 戻り値:
- trueの場合はtopLeftHorizontalRadiusはパーセンテージ、そうでない場合は値
-
isTopLeftVerticalRadiusAsPercentage
public final boolean isTopLeftVerticalRadiusAsPercentage()
topLeftVerticalRadius
が値またはパーセントのいずれとして解釈されるかを示します。- 戻り値:
- trueの場合はtopLeftVerticalRadiusはパーセンテージ、それ以外の場合は値
-
isTopRightVerticalRadiusAsPercentage
public final boolean isTopRightVerticalRadiusAsPercentage()
topRightVerticalRadius
が値またはパーセントのいずれとして解釈されるかを示します。- 戻り値:
- trueの場合はtopRightVerticalRadiusはパーセンテージ、それ以外の場合は値
-
isTopRightHorizontalRadiusAsPercentage
public final boolean isTopRightHorizontalRadiusAsPercentage()
topRightHorizontalRadius
が値またはパーセントのいずれとして解釈されるかを示します。- 戻り値:
- trueの場合はtopRightHorizontalRadiusはパーセンテージ、それ以外の場合は値
-
isBottomRightHorizontalRadiusAsPercentage
public final boolean isBottomRightHorizontalRadiusAsPercentage()
bottomRightHorizontalRadius
が値またはパーセントのいずれとして解釈されるかを示します。- 戻り値:
- trueの場合bottomRightHorizontalRadiusはパーセンテージ、それ以外の場合は値
-
isBottomRightVerticalRadiusAsPercentage
public final boolean isBottomRightVerticalRadiusAsPercentage()
bottomRightVerticalRadius
が値またはパーセントのいずれとして解釈されるかを示します。- 戻り値:
- trueの場合bottomRightVerticalRadiusはパーセンテージ、それ以外の場合は値
-
isBottomLeftVerticalRadiusAsPercentage
public final boolean isBottomLeftVerticalRadiusAsPercentage()
bottomLeftVerticalRadius
が値またはパーセントのいずれとして解釈されるかを示します。- 戻り値:
- trueの場合はbottomLeftVerticalRadiusはパーセンテージ、そうでない場合は値
-
isBottomLeftHorizontalRadiusAsPercentage
public final boolean isBottomLeftHorizontalRadiusAsPercentage()
bottomLeftHorizontalRadius
が値またはパーセントのいずれとして解釈されるかを示します。- 戻り値:
- trueの場合bottomLeftHorizontalRadiusはパーセンテージで、それ以外の場合は値
-
isUniform
public final boolean isUniform()
各隅の半径がまったく同じであるかどうか、および各隅が一貫してパーセントベースであるかどうかを示します。- 戻り値:
- trueの場合、各コーナー半径は一様にパーセンテージ・ベースであり、そうでない場合は
-
-