モジュール javafx.graphics
パッケージ 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を作成します。
    • フィールドの詳細

      • 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の場合、各コーナー半径は一様にパーセンテージ・ベースであり、そうでない場合は