public final class BackgroundFill extends Object
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.Constructor and Description |
---|
BackgroundFill(Paint fill,
CornerRadii radii,
Insets insets)
Creates a new BackgroundFill with the specified fill, radii, and
insets.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Paint |
getFill()
The Paint to use for filling the background of the
Region . |
Insets |
getInsets()
The Insets to use for this fill.
|
CornerRadii |
getRadii()
The Radii to use for representing the four radii of the
BackgroundFill.
|
int |
hashCode() |
public BackgroundFill(Paint fill, CornerRadii radii, Insets insets)
fill
- Any Paint. If null, the value Color.TRANSPARENT is used.radii
- The corner Radii. If null, the value Radii.EMPTY is used.insets
- The insets. If null, the value Insets.EMPTY is used.public final Paint getFill()
Region
.
This value will never be null.public final CornerRadii getRadii()
public final Insets getInsets()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.