|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.canvas.AbstractFigure
diva.canvas.toolbox.ImageFigure
public class ImageFigure
A figure which draws a user-specified image.
Constructor Summary | |
---|---|
ImageFigure()
Create an empty image figure. |
|
ImageFigure(Image i)
Create an image figure displaying the given image. |
Method Summary | |
---|---|
Image |
getImage()
Return the figure's image. |
Shape |
getShape()
Return the rectangular shape of the image, or a small rectangle if the image is null. |
void |
paint(Graphics2D g)
Paint the figure's image. |
void |
setImage(Image i)
Set the figure's image. |
void |
transform(AffineTransform t)
Perform an affine transform on this image. |
Methods inherited from class diva.canvas.AbstractFigure |
---|
contains, getBounds, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, hit, intersects, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisible, translate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageFigure()
public ImageFigure(Image i)
Method Detail |
---|
public Image getImage()
public Shape getShape()
getShape
in interface Figure
getShape
in class AbstractFigure
public void paint(Graphics2D g)
paint
in interface VisibleComponent
paint
in class AbstractFigure
public void setImage(Image i)
public void transform(AffineTransform t)
transform
in interface Figure
transform
in class AbstractFigure
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |