public class BoxShadow
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
BoxShadow.BoxStyle |
| Constructor and Description |
|---|
BoxShadow(Extent hShadow,
Extent vShadow,
Extent blur,
Extent spread,
Color color,
BoxShadow.BoxStyle style)
Creates a new
BoxShadow (CSS3). |
BoxShadow(int hShadowPx,
int vShadowPx) |
BoxShadow(int hShadowPx,
int vShadowPx,
Color color) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Extent |
getBlurDistance()
the blur distance
|
Color |
getColor()
the color of the shadow
|
Extent |
getHorizontalShadowPosition()
the position of the horizontal shadow
|
Extent |
getSpreadSize()
the size of shadow
|
BoxShadow.BoxStyle |
getStyle()
outset (default) or inset style (to create an inner shadow, rather than the default outer shadow).
|
Extent |
getVerticalShadowPosition()
the position of the vertical shadow
|
java.lang.String |
toString()
Returns a string describing the state of the BoxShadow.
|
public BoxShadow(Extent hShadow, Extent vShadow, Extent blur, Extent spread, Color color, BoxShadow.BoxStyle style)
BoxShadow (CSS3).hShadow - the position of the horizontal shadow. Negative values are allowed. (this property only supports Extents with fixed (i.e., not percent) units)vShadow - the position of the vertical shadow. Negative values are allowed. (this property only supports Extents with fixed (i.e., not percent) units)blur - the blur distance. (this property only supports Extents with fixed (i.e., not percent) units)spread - the size of shadow. (this property only supports Extents with fixed (i.e., not percent) units)color - the color of the shadow. Look at CSS Color Values for a complete list of possible color values.style - changes the shadow from an outer shadow (outset) to an inner shadow.public BoxShadow(int hShadowPx,
int vShadowPx)
public BoxShadow(int hShadowPx,
int vShadowPx,
Color color)
public Extent getHorizontalShadowPosition()
public Extent getVerticalShadowPosition()
public Extent getBlurDistance()
public Extent getSpreadSize()
public Color getColor()
public BoxShadow.BoxStyle getStyle()
public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()