Region. Because BackgroundFill is an immutable object, it can safely be
used in any cache, and can safely be reused among multiple Regions or multiple
times in the same Region.
All BackgroundFills are drawn in order.
When applied to a Region with a defined shape, the corner radii are ignored.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Paint | |
| private final int | hash
A cached hash for improved performance on subsequent hash or equality look ups. |
| pack-priv final Insets | |
| pack-priv final CornerRadii |
| Access | Constructor and Description |
|---|---|
| public | BackgroundFill(Paint
Any Paint. If null, the value Color.TRANSPARENT is used. fill, CornerRadii The corner Radii. If null, the value Radii.EMPTY is used. radii, Insets The insets. If null, the value Insets.EMPTY is used. insets)Creates a new BackgroundFill with the specified fill, radii, and insets. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public final Paint | |
| public final Insets | |
| public final CornerRadii | Returns: the Radii to use for representing the four radii of the BackgroundFillThe Radii to use for representing the four radii of the BackgroundFill. |
| public int |
| fill | back to summary |
|---|---|
| pack-priv final Paint fill | |
| hash | back to summary |
|---|---|
| private final int hash A cached hash for improved performance on subsequent hash or equality look ups. It is expected that BackgroundFill will in many instances be loaded from a CSS cache, such that storing this value is beneficial. | |
| insets | back to summary |
|---|---|
| pack-priv final Insets insets | |
| radii | back to summary |
|---|---|
| pack-priv final CornerRadii radii | |
| BackgroundFill | back to summary |
|---|---|
| public BackgroundFill(Paint fill, CornerRadii radii, Insets insets) Creates a new BackgroundFill with the specified fill, radii, and insets. Null values are acceptable, but default values will be used in place of any null value.
| |
| 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. | |
| getFill | back to summary |
|---|---|
| public final Paint getFill() The Paint to use for filling the background of the | |
| getInsets | back to summary |
|---|---|
| public final Insets getInsets() The Insets to use for this fill. Each inset indicates at what distance from the Region's bounds the drawing should begin. The insets will never be null, but the values may be negative in order to position the border beyond the natural bounds (that is, (0, 0, width, height)) of the Region.
| |
| getRadii | back to summary |
|---|---|
| public final CornerRadii getRadii() The Radii to use for representing the four radii of the BackgroundFill. Each corner can therefore be independently specified. This will never be null. The radii values will never be negative.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |