comirva.visu.epsgraphics.objects
Class EpsGlyph

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

public class EpsGlyph
extends EpsShape

This class represents an EpsGlyph. It encapsulates a GlyphVector. Use this class to make sure that the font in the resulting postscript file is the same as choosen. Attention! The text is translated into Bezier Curves, so the resulting postscript file do not contain any text directly (not searchable!) and is usually a bit larger. Use EpsString objects, if you want to make the document searchable, but be careful, not all fonts are found on different systems!


Field Summary
protected  Point pos
          glpyh position
 
Fields inherited from class comirva.visu.epsgraphics.objects.EpsShape
code, filled, params, shape
 
Constructor Summary
EpsGlyph(GlyphVector glyphVector)
          create eps glyph using given glyph vector.
EpsGlyph(GlyphVector glyphVector, boolean filled)
          create eps glyph using the given information
EpsGlyph(GlyphVector glyphVector, Point position)
          create eps glyph using given glyph vector at given position.
EpsGlyph(GlyphVector glyphVector, Point position, boolean filled)
          create eps glyph using the given information
 
Method Summary
 boolean equals(Object obj)
           
 String toEps()
          returns a String that represents the object in postscript code
 
Methods inherited from class comirva.visu.epsgraphics.objects.EpsShape
getShape, isFilled, setFilled, setShape
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pos

protected Point pos
glpyh position

Constructor Detail

EpsGlyph

public EpsGlyph(GlyphVector glyphVector)
create eps glyph using given glyph vector. Default position is (0,0).

Parameters:
glyphVector - the glyph vector

EpsGlyph

public EpsGlyph(GlyphVector glyphVector,
                Point position)
create eps glyph using given glyph vector at given position.

Parameters:
glyphVector - the glyph vector
position - the position

EpsGlyph

public EpsGlyph(GlyphVector glyphVector,
                Point position,
                boolean filled)
create eps glyph using the given information

Parameters:
glyphVector - the glyph vector
position - the position
filled - specifies whether the glyphs should be filled or not

EpsGlyph

public EpsGlyph(GlyphVector glyphVector,
                boolean filled)
create eps glyph using the given information

Parameters:
glyphVector - the glyph vector
filled - specifies whether the glyphs should be filled or not
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
Overrides:
toEps in class EpsShape

equals

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