comirva.visu.epsgraphics.objects
Class EpsFont

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

public class EpsFont
extends Object
implements EpsObject

represents an EpsFont. It is used to save every font selection (setFont)


Field Summary
(package private)  Font f
          the font
(package private)  int type
           
static int TYPE_FAMILY
          the font family name should be chosen for postscript output
static int TYPE_NAME
          the font name should be chosen for postscript output
static int TYPE_POSTSCRIPT
          the postscript name should be chosen for postscript output
 
Constructor Summary
EpsFont(Font font)
          create eps font (type postscript)
EpsFont(Font font, int type)
          create eps font with given type (TYPE_POSTSCRIPT or TYPE_NAME or TYPE_FAMILY)
 
Method Summary
 boolean equals(Object obj)
           
 Font getFont()
          return the font object that is represented by this object
 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

TYPE_POSTSCRIPT

public static final int TYPE_POSTSCRIPT
the postscript name should be chosen for postscript output

See Also:
Constant Field Values

TYPE_NAME

public static final int TYPE_NAME
the font name should be chosen for postscript output

See Also:
Constant Field Values

TYPE_FAMILY

public static final int TYPE_FAMILY
the font family name should be chosen for postscript output

See Also:
Constant Field Values

f

Font f
the font


type

int type
Constructor Detail

EpsFont

public EpsFont(Font font)
create eps font (type postscript)

Parameters:
font - the font

EpsFont

public EpsFont(Font font,
               int type)
create eps font with given type (TYPE_POSTSCRIPT or TYPE_NAME or TYPE_FAMILY)

Parameters:
font - the Font
type - the type
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

getFont

public Font getFont()
return the font object that is represented by this object

Returns:
the Font object

equals

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