Spec-Zone .ru
спецификации, руководства, описания, API
|
public class BorderImage extends java.lang.Object
repeatX
and repeatY
properties define how the
image is to be repeated in each direction. The slices
property
defines how to slice up the image such that it can be stretched across
the Region, while the widths
defines the area on the Region to
fill with the border image. Finally, the outsets
define the distance
outward from the edge of the border over which the border extends. The
outsets of the BorderImage contribute to the outsets of the Border, which
in turn contribute to the bounds of the Region.
Because the BorderImage is immutable, it can safely be used in any
cache, and can safely be reused among multiple Regions.
When applied to a Region with a defined shape, a BorderImage is not drawn.
TODO Should the insets still be applied?Constructor and Description |
---|
BorderImage(Image image,
BorderWidths widths,
Insets insets,
BorderWidths slices,
boolean filled,
BorderRepeat repeatX,
BorderRepeat repeatY)
Creates a new BorderImage.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
Image |
getImage() |
Insets |
getInsets() |
BorderRepeat |
getRepeatX() |
BorderRepeat |
getRepeatY() |
BorderWidths |
getSlices() |
BorderWidths |
getWidths() |
int |
hashCode() |
boolean |
isFilled() |
public BorderImage(Image image, BorderWidths widths, Insets insets, BorderWidths slices, boolean filled, BorderRepeat repeatX, BorderRepeat repeatY)
image
- The image to use. This must not be null.widths
- The widths of the border in each dimension. A null value results in Insets.EMPTY.insets
- The insets at which to place the border relative to the region.
A null value results in Insets.EMPTY.slices
- The slices for the image. If null, defaults to BorderImageSlices.DEFAULTrepeatX
- The repeat value for the border image in the x direction. If null, defaults to STRETCH.repeatY
- The repeat value for the border image in the y direction. If null, defaults to the same
value as repeatX.public final BorderRepeat getRepeatX()
public final BorderRepeat getRepeatY()
public final BorderWidths getWidths()
public final BorderWidths getSlices()
public final boolean isFilled()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to