topAsPercentage, rightAsPercentage, bottomAsPercentage,
leftAsPercentage. The only allowable negative value for top, right,
bottom, and left is AUTO.
Because the BorderWidths is immutable, it can safely be used in any cache, and can safely be reused among multiple Regions.
| Modifier and Type | Field and Description |
|---|---|
| public static final double | AUTO
When used by a BorderStroke, the value of AUTO is interpreted as the
value of |
| private final double | |
| private final boolean | |
| public static final BorderWidths | DEFAULT
The default BorderWidths that is used by a BorderImage when null is specified. |
| public static final BorderWidths | EMPTY
An empty set of widths, such that all values are 0 and are literal values. |
| public static final BorderWidths | FULL
A set of widths representing 100% on each side. |
| private final int | hash
A cached hash code for faster secondary usage. |
| private final double | |
| private final boolean | |
| private final double | |
| private final boolean | |
| private final double | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | BorderWidths(double
The border width. This cannot be negative. width)Creates a new BorderWidths using the given width for all four borders, and treating this width as a literal value, and not a percentage. |
| public | BorderWidths(double
The thickness of the border on the top. Must be non-negative. top, double The thickness of the border on the right. Must be non-negative. right, double The thickness of the border on the bottom. Must be non-negative. bottom, double The thickness of the border on the left. Must be non-negative. left)Creates a new BorderWidths with the specified widths for top, right, bottom, and left. |
| public | BorderWidths(double
The thickness of the border on the top. Must be non-negative. top, double The thickness of the border on the right. Must be non-negative. right, double The thickness of the border on the bottom. Must be non-negative. bottom, double The thickness of the border on the left. Must be non-negative. left, boolean Whether the top should be treated as a percentage. topAsPercentage, boolean Whether the right should be treated as a percentage. rightAsPercentage, boolean Whether the bottom should be treated as a percentage. bottomAsPercentage, boolean Whether the left should be treated as a percentage. leftAsPercentage)Creates a new BorderWidths. |
| 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 | |
| public final double | |
| public final double | |
| public final double | |
| public int | |
| public BorderWidths | interpolate(BorderWidths endValue, double t)
Implements javafx. Returns an intermediate value between the value of this |
| private static double | |
| public final boolean | Returns: true if bottom should be interpreted as a percentage of the region height, otherwise falseSpecifies whether the |
| public final boolean | Returns: true if left should be interpreted as a percentage of the region width, otherwise falseSpecifies whether the |
| public final boolean | Returns: true if right should be interpreted as a percentage of the region width, otherwise falseSpecifies whether the |
| private boolean | isSame(double top, double right, double bottom, double left, boolean topAsPercentage, boolean rightAsPercentage, boolean bottomAsPercentage, boolean leftAsPercentage)
|
| public final boolean | Returns: true if top should be interpreted as a percentage of the region height, otherwise falseSpecifies whether the |
| AUTO | back to summary |
|---|---|
| public static final double AUTO When used by a BorderStroke, the value of AUTO is interpreted as the
value of | |
| bottom | back to summary |
|---|---|
| private final double bottom | |
| bottomAsPercentage | back to summary |
|---|---|
| private final boolean bottomAsPercentage | |
| DEFAULT | back to summary |
|---|---|
| public static final BorderWidths DEFAULT The default BorderWidths that is used by a BorderImage when null is specified. This width is a single 1 pixel top, right, bottom, and left, all interpreted as literal values. | |
| EMPTY | back to summary |
|---|---|
| public static final BorderWidths EMPTY An empty set of widths, such that all values are 0 and are literal values. | |
| FULL | back to summary |
|---|---|
| public static final BorderWidths FULL A set of widths representing 100% on each side. | |
| hash | back to summary |
|---|---|
| private final int hash A cached hash code for faster secondary usage. It is expected that BorderWidths will be pulled from a cache in many cases. | |
| left | back to summary |
|---|---|
| private final double left | |
| leftAsPercentage | back to summary |
|---|---|
| private final boolean leftAsPercentage | |
| right | back to summary |
|---|---|
| private final double right | |
| rightAsPercentage | back to summary |
|---|---|
| private final boolean rightAsPercentage | |
| top | back to summary |
|---|---|
| private final double top | |
| topAsPercentage | back to summary |
|---|---|
| private final boolean topAsPercentage | |
| BorderWidths | back to summary |
|---|---|
| public BorderWidths(double width) Creates a new BorderWidths using the given width for all four borders, and treating this width as a literal value, and not a percentage.
| |
| BorderWidths | back to summary |
|---|---|
| public BorderWidths(double top, double right, double bottom, double left) Creates a new BorderWidths with the specified widths for top, right, bottom, and left. None of these values may be negative. Each of these values is interpreted as a literal value, not as a percentage.
| |
| BorderWidths | back to summary |
|---|---|
| public BorderWidths(double top, double right, double bottom, double left, boolean topAsPercentage, boolean rightAsPercentage, boolean bottomAsPercentage, boolean leftAsPercentage) Creates a new BorderWidths. None of the values for
| |
| 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.
| |
| getBottom | back to summary |
|---|---|
| public final double getBottom() The non-negative value (with the exception of
| |
| getLeft | back to summary |
|---|---|
| public final double getLeft() The non-negative value (with the exception of
| |
| getRight | back to summary |
|---|---|
| public final double getRight() The non-negative value (with the exception of
| |
| getTop | back to summary |
|---|---|
| public final double getTop() A non-negative value (with the exception of
| |
| 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 BorderWidths interpolate(BorderWidths 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, double t) | |
| isBottomAsPercentage | back to summary |
|---|---|
| public final boolean isBottomAsPercentage() Specifies whether the
| |
| isLeftAsPercentage | back to summary |
|---|---|
| public final boolean isLeftAsPercentage() Specifies whether the
| |
| isRightAsPercentage | back to summary |
|---|---|
| public final boolean isRightAsPercentage() Specifies whether the
| |
| isSame | back to summary |
|---|---|
| private boolean isSame(double top, double right, double bottom, double left, boolean topAsPercentage, boolean rightAsPercentage, boolean bottomAsPercentage, boolean leftAsPercentage) | |
| isTopAsPercentage | back to summary |
|---|---|
| public final boolean isTopAsPercentage() Specifies whether the
| |