gnu.kawa.models

Class DrawImage

Implemented Interfaces:
Paintable, java.io.Serializable, Viewable

public class DrawImage
extends Model
implements Paintable, java.io.Serializable

See Also:
Serialized Form

Constructor Summary

DrawImage()
DrawImage(BufferedImage image)

Method Summary

Rectangle2D
getBounds2D()
Image
getImage()
Path
getSrc()
void
makeView(Display display, Object where)
void
paint(Graphics2D graphics)
void
setSrc(Path src)
Paintable
transform(AffineTransform tr)

Methods inherited from class gnu.kawa.models.Model

addListener, addListener, notifyListeners

Constructor Details

DrawImage

public DrawImage()

DrawImage

public DrawImage(BufferedImage image)

Method Details

getBounds2D

public Rectangle2D getBounds2D()
Specified by:
getBounds2D in interface Paintable

getImage

public Image getImage()

getSrc

public Path getSrc()

makeView

public void makeView(Display display,
                     Object where)
Specified by:
makeView in interface Viewable

paint

public void paint(Graphics2D graphics)
Specified by:
paint in interface Paintable

setSrc

public void setSrc(Path src)

transform

public Paintable transform(AffineTransform tr)
Specified by:
transform in interface Paintable