comirva.visu.epsgraphics.objects
Class EpsComment
java.lang.Object
comirva.visu.epsgraphics.objects.EpsComment
- All Implemented Interfaces:
- EpsObject
public class EpsComment
- extends Object
- implements EpsObject
This class provides the possibility to add comments to the resulting
eps file. It is also used for the output of error messages (e.g. if
the Shape object given to drawShape() cannot be converted to an EpsObject).
Constructor Summary |
EpsComment(String comment)
create a comment with the specified text
The coment indicator '%' is automatically
inserted. |
Method Summary |
boolean |
equals(Object obj)
|
String |
toEps()
returns a String that represents the object
in postscript code |
EpsComment
public EpsComment(String comment)
- create a comment with the specified text
The coment indicator '%' is automatically
inserted.
- Parameters:
comment
- the comment text
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