|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.gene.image.ImageRefImpl
public final class ImageRefImpl
Implements the ImageRef
interface.
Field Summary | |
---|---|
String |
id
A temporary solution to transfer ID of source. |
Constructor Summary | |
---|---|
ImageRefImpl(Graphics2D graphics)
Constructs instance having both image and rendered image null . |
|
ImageRefImpl(Graphics2D graphics,
Image image,
RenderedImage renderedImage)
Constructs an instance. |
Method Summary | |
---|---|
Graphics2D |
asGraphics()
Returns the graphics aspect of the image. |
Image |
asImage()
Returns the Image aspect of the image. |
RenderedImage |
asRenderedImage()
Returns the RenderedImage aspect of the image. |
void |
dispose()
Disposes of the image. |
String |
getId()
A temporary solution to transfer ID of source. |
void |
setId(String id)
A temporary solution to transfer ID of source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String id
Constructor Detail |
---|
public ImageRefImpl(Graphics2D graphics)
null
.
graphics
- the graphics aspect.public ImageRefImpl(Graphics2D graphics, Image image, RenderedImage renderedImage)
graphics
- the graphics aspect.image
- the image aspect.renderedImage
- the rendered image aspect.Method Detail |
---|
public Graphics2D asGraphics()
ImageRef
null
.
asGraphics
in interface ImageRef
public Image asImage()
ImageRef
null
.
asImage
in interface ImageRef
public RenderedImage asRenderedImage()
ImageRef
null
.
asRenderedImage
in interface ImageRef
public void dispose()
ImageRef
dispose
in interface ImageRef
public String getId()
ImageRef
getId
in interface ImageRef
public void setId(String id)
ImageRef
setId
in interface ImageRef
id
- the id of root node.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |