public static class BasicThumbnail.Image extends Objectimplements BasicThumbnail .Layer
| Modifier and Type | Field and Description |
|---|---|
Color |
color
An optional color to paint below this image.
|
int |
curvature
The curvature to apply to the borders of the scaled image.
|
| Constructor and Description |
|---|
Image()
Create an Image with a white background and zero curvature.
|
Image(Color
Create an Image.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object
|
String |
getConstructionString()
|
Insets |
getInsets()
Return the size of this layer.
|
int |
hashCode()
|
void |
paint(Graphics2D
If a background color was provided: this paints that background.
|
String |
toString()
|
public final Colorcolor
public final int curvature
public Image()
public Image(Colorcolor, int curvature)
color - the optional background color (may be null)
curvature - the curvature.
public boolean equals(Objectobj)
public int hashCode()
public StringtoString()
public InsetsgetInsets()
BasicThumbnail.Layer
public void paint(Graphics2Dg, int x, int y, int width, int height)
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.