Constructor and Description |
---|
ImagePainter(Image image) |
ImagePainter(URL url) |
Modifier and Type | Method and Description |
---|---|
Image |
getImage() |
void |
paint(Graphics2D graphics,
Component objectToPaint,
int width,
int height)
Renders to the given
Graphics2D . |
public ImagePainter(Image image)
public ImagePainter(URL url)
public void paint(Graphics2D graphics, Component objectToPaint, int width, int height)
Painter
Graphics2D
. The supplied graphics context may be modified - it's
state need not be restored upon completion of painting.public Image getImage()