| Modifier and Type | Field and Description |
|---|---|
| private final double | |
| private final boolean | |
| private final double | |
| private final boolean | |
| private final double | |
| private final boolean | |
| private final double | |
| private final boolean | |
| public static final CornerRadii | EMPTY
A CornerRadii which is entirely empty, indicating squared corners. |
| private final int | hash
The cached hash code. |
| pack-priv final boolean | |
| private final double | |
| private final boolean | |
| private final double | |
| private final boolean | |
| private final double | |
| private final boolean | |
| private final double | |
| private final boolean | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | CornerRadii(double
The radii for each corner. Negative values are not allowed. radius)Create a new CornerRadii with a single uniform radii value for all components of all corners. |
| public | CornerRadii(double
The radii for each corner. Negative values are not allowed. radius, boolean Whether the radii should be interpreted as a percentage. asPercent)Create a new CornerRadii with the given radii for each corner. |
| public | CornerRadii(double
The radii of the top-left corner. Negative numbers are not allowed. topLeft, double The radii of the top-right corner. Negative numbers are not allowed. topRight, double The radii of the bottom-right corner. Negative numbers are not allowed. bottomRight, double The radii of the bottom-left corner. Negative numbers are not allowed. bottomLeft, boolean Whether all four radii should be considered as values or percentages asPercent)Create a new CornerRadii with uniform yet independent radii for each corner. |
| public | CornerRadii(double
The length of the horizontal radii of the top-left corner topLeftHorizontalRadius, double The length of the vertical radii of the top-left corner topLeftVerticalRadius, double The length of the vertical radii of the top-right corner topRightVerticalRadius, double The length of the horizontal radii of the top-right corner topRightHorizontalRadius, double The length of the horizontal radii of the bottom-right corner bottomRightHorizontalRadius, double The length of the vertical radii of the bottom-right corner bottomRightVerticalRadius, double The length of the vertical radii of the bottom-left corner bottomLeftVerticalRadius, double The length of the horizontal radii of the bottom-left corner bottomLeftHorizontalRadius, boolean Is the horizontal radii of the top-left corner as percentage topLeftHorizontalRadiusAsPercent, boolean Is the vertical radii of the top-left corner as percentage topLeftVerticalRadiusAsPercent, boolean Is the vertical radii of the top-right corner as percentage topRightVerticalRadiusAsPercent, boolean Is the horizontal radii of the top-right corner as percentage topRightHorizontalRadiusAsPercent, boolean Is the horizontal radii of the bottom-right corner as percentage bottomRightHorizontalRadiusAsPercent, boolean Is the vertical radii of the bottom-right corner as percentage bottomRightVerticalRadiusAsPercent, boolean Is the vertical radii of the bottom-left corner as percentage bottomLeftVerticalRadiusAsPercent, boolean Is the horizontal radii of the bottom-left corner as percentage bottomLeftHorizontalRadiusAsPercent)Creates a new CornerRadii, allowing for specification of each component of each corner radii and whether each component should be treated as a value or percentage. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public final double | Returns: the length of the horizontal radii of the bottom-left cornerThe length of the horizontal radii of the bottom-left corner. |
| public final double | Returns: the length of the vertical radii of the bottom-left cornerThe length of the vertical radii of the bottom-left corner. |
| public final double | Returns: the length of the horizontal radii of the bottom-right cornerThe length of the horizontal radii of the bottom-right corner. |
| public final double | Returns: the length of the vertical radii of the bottom-right cornerThe length of the vertical radii of the bottom-right corner. |
| public final double | Returns: the length of the horizontal radii of the top-left cornerThe length of the horizontal radii of the top-left corner. |
| public final double | Returns: the length of the vertical radii of the top-left cornerThe length of the vertical radii of the top-left corner. |
| public final double | Returns: the length of the horizontal radii of the top-right cornerThe length of the horizontal radii of the top-right corner. |
| public final double | Returns: the length of the vertical radii of the top-right cornerThe length of the vertical radii of the top-right corner. |
| public int | |
| public CornerRadii | interpolate(CornerRadii endValue, double t)
Implements javafx. Returns an intermediate value between the value of this |
| private static double | |
| public final boolean | Returns: if true bottomLeftHorizontalRadius is in percentage, otherwise a valueIndicates whether |
| public final boolean | Returns: if true bottomLeftVerticalRadius is in percentage, otherwise a valueIndicates whether |
| public final boolean | Returns: if true bottomRightHorizontalRadius is in percentage, otherwise a valueIndicates whether |
| public final boolean | Returns: if true bottomRightVerticalRadius is in percentage, otherwise a valueIndicates whether |
| private boolean | isSame(double topLeftHorizontalRadius, double topLeftVerticalRadius, double topRightVerticalRadius, double topRightHorizontalRadius, double bottomRightHorizontalRadius, double bottomRightVerticalRadius, double bottomLeftVerticalRadius, double bottomLeftHorizontalRadius, boolean topLeftHorizontalRadiusAsPercentage, boolean topLeftVerticalRadiusAsPercentage, boolean topRightVerticalRadiusAsPercentage, boolean topRightHorizontalRadiusAsPercentage, boolean bottomRightHorizontalRadiusAsPercentage, boolean bottomRightVerticalRadiusAsPercentage, boolean bottomLeftVerticalRadiusAsPercentage, boolean bottomLeftHorizontalRadiusAsPercentage)
|
| public final boolean | Returns: if true topLeftHorizontalRadius is in percentage, otherwise a valueIndicates whether |
| public final boolean | Returns: if true topLeftVerticalRadius is in percentage, otherwise a valueIndicates whether |
| public final boolean | Returns: if true topRightHorizontalRadius is in percentage, otherwise a valueIndicates whether |
| public final boolean | Returns: if true topRightVerticalRadius is in percentage, otherwise a valueIndicates whether |
| public final boolean | Returns: if true each corner radius is uniformly percentage-based, otherwise notIndicates whether each corner radius is exactly the same, and each are either uniformly percentage-based or not. |
| private int | |
| public String |
| bottomLeftHorizontalRadius | back to summary |
|---|---|
| private final double bottomLeftHorizontalRadius | |
| bottomLeftHorizontalRadiusAsPercentage | back to summary |
|---|---|
| private final boolean bottomLeftHorizontalRadiusAsPercentage | |
| bottomLeftVerticalRadius | back to summary |
|---|---|
| private final double bottomLeftVerticalRadius | |
| bottomLeftVerticalRadiusAsPercentage | back to summary |
|---|---|
| private final boolean bottomLeftVerticalRadiusAsPercentage | |
| bottomRightHorizontalRadius | back to summary |
|---|---|
| private final double bottomRightHorizontalRadius | |
| bottomRightHorizontalRadiusAsPercentage | back to summary |
|---|---|
| private final boolean bottomRightHorizontalRadiusAsPercentage | |
| bottomRightVerticalRadius | back to summary |
|---|---|
| private final double bottomRightVerticalRadius | |
| bottomRightVerticalRadiusAsPercentage | back to summary |
|---|---|
| private final boolean bottomRightVerticalRadiusAsPercentage | |
| EMPTY | back to summary |
|---|---|
| public static final CornerRadii EMPTY A CornerRadii which is entirely empty, indicating squared corners. This is the default value for a BorderStroke's radii. | |
| hash | back to summary |
|---|---|
| private final int hash The cached hash code. | |
| hasPercentBasedRadii | back to summary |
|---|---|
| pack-priv final boolean hasPercentBasedRadii | |
| topLeftHorizontalRadius | back to summary |
|---|---|
| private final double topLeftHorizontalRadius | |
| topLeftHorizontalRadiusAsPercentage | back to summary |
|---|---|
| private final boolean topLeftHorizontalRadiusAsPercentage | |
| topLeftVerticalRadius | back to summary |
|---|---|
| private final double topLeftVerticalRadius | |
| topLeftVerticalRadiusAsPercentage | back to summary |
|---|---|
| private final boolean topLeftVerticalRadiusAsPercentage | |
| topRightHorizontalRadius | back to summary |
|---|---|
| private final double topRightHorizontalRadius | |
| topRightHorizontalRadiusAsPercentage | back to summary |
|---|---|
| private final boolean topRightHorizontalRadiusAsPercentage | |
| topRightVerticalRadius | back to summary |
|---|---|
| private final double topRightVerticalRadius | |
| topRightVerticalRadiusAsPercentage | back to summary |
|---|---|
| private final boolean topRightVerticalRadiusAsPercentage | |
| uniform | back to summary |
|---|---|
| private final boolean uniform | |
| CornerRadii | back to summary |
|---|---|
| public CornerRadii(double radius) Create a new CornerRadii with a single uniform radii value for all components of all corners. This constructor will create the CornerRadii such that none of the values are percentages.
| |
| CornerRadii | back to summary |
|---|---|
| public CornerRadii(double radius, boolean asPercent) Create a new CornerRadii with the given radii for each corner. The value is
interpreted either as being a percentage or not based on the
| |
| CornerRadii | back to summary |
|---|---|
| public CornerRadii(double topLeft, double topRight, double bottomRight, double bottomLeft, boolean asPercent) Create a new CornerRadii with uniform yet independent radii for each corner. That is, each corner can be specified independently, but the horizontal and vertical components of each corner is uniform.
| |
| CornerRadii | back to summary |
|---|---|
| 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) Creates a new CornerRadii, allowing for specification of each component of each corner radii and whether each component should be treated as a value or percentage.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getBottomLeftHorizontalRadius | back to summary |
|---|---|
| public final double getBottomLeftHorizontalRadius() The length of the horizontal radii of the bottom-left corner.
| |
| getBottomLeftVerticalRadius | back to summary |
|---|---|
| public final double getBottomLeftVerticalRadius() The length of the vertical radii of the bottom-left corner.
| |
| getBottomRightHorizontalRadius | back to summary |
|---|---|
| public final double getBottomRightHorizontalRadius() The length of the horizontal radii of the bottom-right corner.
| |
| getBottomRightVerticalRadius | back to summary |
|---|---|
| public final double getBottomRightVerticalRadius() The length of the vertical radii of the bottom-right corner.
| |
| getTopLeftHorizontalRadius | back to summary |
|---|---|
| public final double getTopLeftHorizontalRadius() The length of the horizontal radii of the top-left corner.
| |
| getTopLeftVerticalRadius | back to summary |
|---|---|
| public final double getTopLeftVerticalRadius() The length of the vertical radii of the top-left corner.
| |
| getTopRightHorizontalRadius | back to summary |
|---|---|
| public final double getTopRightHorizontalRadius() The length of the horizontal radii of the top-right corner.
| |
| getTopRightVerticalRadius | back to summary |
|---|---|
| public final double getTopRightVerticalRadius() The length of the vertical radii of the top-right corner.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| interpolate | back to summary |
|---|---|
| public CornerRadii interpolate(CornerRadii endValue, double t) Implements javafx. Doc from javafx. Returns an intermediate value between the value of this The returned value might not be a new instance; the implementation might also return one of the two existing instances if the intermediate value would be equal to one of the existing values. However, this is an optimization and applications should not assume any particular identity of the returned value.
| |
| interpolate | back to summary |
|---|---|
| private static double interpolate(double start, double end, boolean startIsPercentage, boolean endIsPercentage, double t) | |
| isBottomLeftHorizontalRadiusAsPercentage | back to summary |
|---|---|
| public final boolean isBottomLeftHorizontalRadiusAsPercentage() Indicates whether
| |
| isBottomLeftVerticalRadiusAsPercentage | back to summary |
|---|---|
| public final boolean isBottomLeftVerticalRadiusAsPercentage() Indicates whether
| |
| isBottomRightHorizontalRadiusAsPercentage | back to summary |
|---|---|
| public final boolean isBottomRightHorizontalRadiusAsPercentage() Indicates whether
| |
| isBottomRightVerticalRadiusAsPercentage | back to summary |
|---|---|
| public final boolean isBottomRightVerticalRadiusAsPercentage() Indicates whether
| |
| isSame | back to summary |
|---|---|
| private boolean isSame(double topLeftHorizontalRadius, double topLeftVerticalRadius, double topRightVerticalRadius, double topRightHorizontalRadius, double bottomRightHorizontalRadius, double bottomRightVerticalRadius, double bottomLeftVerticalRadius, double bottomLeftHorizontalRadius, boolean topLeftHorizontalRadiusAsPercentage, boolean topLeftVerticalRadiusAsPercentage, boolean topRightVerticalRadiusAsPercentage, boolean topRightHorizontalRadiusAsPercentage, boolean bottomRightHorizontalRadiusAsPercentage, boolean bottomRightVerticalRadiusAsPercentage, boolean bottomLeftVerticalRadiusAsPercentage, boolean bottomLeftHorizontalRadiusAsPercentage) | |
| isTopLeftHorizontalRadiusAsPercentage | back to summary |
|---|---|
| public final boolean isTopLeftHorizontalRadiusAsPercentage() Indicates whether
| |
| isTopLeftVerticalRadiusAsPercentage | back to summary |
|---|---|
| public final boolean isTopLeftVerticalRadiusAsPercentage() Indicates whether
| |
| isTopRightHorizontalRadiusAsPercentage | back to summary |
|---|---|
| public final boolean isTopRightHorizontalRadiusAsPercentage() Indicates whether
| |
| isTopRightVerticalRadiusAsPercentage | back to summary |
|---|---|
| public final boolean isTopRightVerticalRadiusAsPercentage() Indicates whether
| |
| isUniform | back to summary |
|---|---|
| public final boolean isUniform() Indicates whether each corner radius is exactly the same, and each are either uniformly percentage-based or not.
| |
| preComputeHash | back to summary |
|---|---|
| private int preComputeHash() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |