comirva.visu.epsgraphics.objects
Class EpsImage

java.lang.Object
  extended by comirva.visu.epsgraphics.objects.EpsImage
All Implemented Interfaces:
EpsObject

public class EpsImage
extends Object
implements EpsObject

this class represents an eps image. The image data must be provided as RenderedImage (typically it is a BufferedImage).


Field Summary
protected  RenderedImage img
          save rendered image data
protected  Point pos
          save image position
 
Constructor Summary
EpsImage(RenderedImage img, Point pos)
          create eps image
 
Method Summary
 boolean equals(Object obj)
           
 String toEps()
          returns a String that represents the object in postscript code
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

img

protected RenderedImage img
save rendered image data


pos

protected Point pos
save image position

Constructor Detail

EpsImage

public EpsImage(RenderedImage img,
                Point pos)
create eps image

Parameters:
img - the image data
pos - the image position
Method Detail

toEps

public String toEps()
Description copied from interface: EpsObject
returns a String that represents the object in postscript code

Specified by:
toEps in interface EpsObject

equals

public boolean equals(Object obj)
Overrides:
equals in class Object