sk.uniba.euromath.gene.image
Interface ImageRef

All Known Implementing Classes:
BufferedImageRef, ImageRefImpl

public interface ImageRef

Serves as a reference to an image; able to represent image in different ways. Graphics is used when painting to the image, Image may be drawn to another Graphics, and RenderedImage can be exported.

Author:
Martin Vysny

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.
 

Method Detail

asGraphics

Graphics2D asGraphics()
Returns the graphics aspect of the image. It must never be null.

Returns:
Graphics instance.

asImage

Image asImage()
Returns the Image aspect of the image. May be null.

Returns:
Image instance.

asRenderedImage

RenderedImage asRenderedImage()
Returns the RenderedImage aspect of the image. May be null.

Returns:
RenderedImage instance.

getId

String getId()
A temporary solution to transfer ID of source. Returns ID of root node R: all nodes that are rendered in this image are descendants or same nodes as R.

Returns:
ID of root node.

setId

void setId(String id)
A temporary solution to transfer ID of source. Sets ID of root node R: all nodes that are rendered in this image are descendants or same nodes as R.

Parameters:
id - the id of root node.

dispose

void dispose()
Disposes of the image. The image must not be used after deleting.



Copyright 2003-2003-2006 null. All Rights Reserved.