comirva.visu.epsgraphics.objects
Class EpsString

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

public class EpsString
extends Object
implements EpsObject

This class represents an eps string. The string is translated to postscript directly, so the resulting document is searchable.


Field Summary
protected  Point pos
          the string position
protected  String txt
          the text
 
Constructor Summary
EpsString()
          constructs empty string
EpsString(double x, double y, String text)
          construct specified tring at the given position
EpsString(Point position, String text)
          construct specified string at specified position
 
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

pos

protected Point pos
the string position


txt

protected String txt
the text

Constructor Detail

EpsString

public EpsString()
constructs empty string


EpsString

public EpsString(Point position,
                 String text)
construct specified string at specified position

Parameters:
position - the position
text - the text

EpsString

public EpsString(double x,
                 double y,
                 String text)
construct specified tring at the given position

Parameters:
x - the x position of the text
y - the y position of the text
text - the text itself
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