public static class BasicThumbnail.Shadow extends Objectimplements BasicThumbnail .Layer
| Modifier and Type | Field and Description |
|---|---|
int |
innerCurvature
The curvature if the innermost ring.
|
int |
outerCurvature
The curvature if the outermost ring.
|
int[] |
ringOpacities
The opacities of each ring, starting with the innermost ring.
|
| Constructor and Description |
|---|
Shadow(int[] ringOpacities, int innerCurvature, int outerCurvature)
Create a new Shadow object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object
|
String |
getConstructionString()
|
Insets |
getInsets()
The number of ring opacities is the thickness on all sides of this layer.
|
int |
hashCode()
|
void |
paint(Graphics2D
Paint this layer.
|
String |
toString()
|
public final int[] ringOpacities
Each ring is solid black with a varying level of opacity.
public final int innerCurvature
public final int outerCurvature
public Shadow(int[] ringOpacities,
int innerCurvature,
int outerCurvature)
ringOpacities - the opacities of each ring, starting with the innermost ring, from [0, 255]
innerCurvature - the curvature of the innermost ring.
outerCurvature - the curvature of the outermost ring.
public boolean equals(Objectobj)
public int hashCode()
public StringtoString()
public InsetsgetInsets()
public void paint(Graphics2Dg, int x, int y, int width, int height)
BasicThumbnail.Layer
paint in interface
BasicThumbnail.Layer
g - the graphics to paint to.
x - the left edge of the area to paint.
y - the top edge of the area to paint.
width - the width of the area to paint.
height - the height of the area to paint.
public StringgetConstructionString()
getConstructionString in interface
BasicThumbnail.Layer
String capable of constructing this object.