All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class figPac.fLabel

java.lang.Object
   |
   +----figPac.fLabel

public class fLabel
extends Object
implements fElement, fInteractive, MouseListener, MouseMotionListener
Prints a label. The font specified in the env entry font used in printing to the screen and the font specified in the env entry psFont used in the postscript image.


Constructor Index

 o fLabel()
 o fLabel(double, double, String)
Creates a label whose bottom left corner is given by the first two arguments and whose content is given by the last argument.
 o fLabel(double, double, String, String)
Creates a label whose position is specified by the coordinates given in the first two arguments and the justification string given in the third argument and whose content is given by the last argument.

Method Index

 o configure(String, double)
 o configure(String, double[])
 o configure(String, String)
 o drawgfx(Figure, Hashtable, V2V)
 o drawps(Figure, Hashtable, V2V)
 o endEdit()
 o endEditAndDelete()
 o mouseClicked(MouseEvent)
 o mouseDragged(MouseEvent)
 o mouseEntered(MouseEvent)
 o mouseExited(MouseEvent)
 o mouseMoved(MouseEvent)
 o mousePressed(MouseEvent)
 o mouseReleased(MouseEvent)
 o startEdit(figEdit)
 o toString()

Constructors

 o fLabel
 public fLabel()
 o fLabel
 public fLabel(double x,
               double y,
               String str)
Creates a label whose bottom left corner is given by the first two arguments and whose content is given by the last argument.

 o fLabel
 public fLabel(double x,
               double y,
               String just,
               String str)
Creates a label whose position is specified by the coordinates given in the first two arguments and the justification string given in the third argument and whose content is given by the last argument.

Parameters:
x - The x coordinate, in the user coordinate system, of the point on the label specified by the variable just.
y - The y coordinate, in the user coordinate system, of the point on the label specified by the variable just.
just - Specifies the point on the label whose user coordinates are given by (x,y). This variable is a two character string. One character must be one of "b" (for bottom), "c" (for center), "t" (for top) and the other character must be one of "l" (for left), "c" (for center), "r" (for right).

Methods

 o drawgfx
 public void drawgfx(Figure fig,
                     Hashtable env,
                     V2V usr2pxl)
 o drawps
 public String drawps(Figure fig,
                      Hashtable env,
                      V2V usr2ps)
 o startEdit
 public void startEdit(figEdit applet)
 o endEdit
 public void endEdit()
 o endEditAndDelete
 public void endEditAndDelete()
 o mouseClicked
 public void mouseClicked(MouseEvent evt)
 o mousePressed
 public void mousePressed(MouseEvent evt)
 o mouseDragged
 public void mouseDragged(MouseEvent evt)
 o mouseReleased
 public void mouseReleased(MouseEvent evt)
 o mouseEntered
 public void mouseEntered(MouseEvent evt)
 o mouseExited
 public void mouseExited(MouseEvent evt)
 o mouseMoved
 public void mouseMoved(MouseEvent evt)
 o configure
 public void configure(String name,
                       String Value)
 o configure
 public void configure(String name,
                       double Value)
 o configure
 public void configure(String name,
                       double Value[])
 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index