All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class figPac.fLine

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

public class fLine
extends Object
implements fElement, fInteractive, MouseListener, MouseMotionListener
Each instance of the class fLine represents a line segment.


Variable Index

 o from
The starting point of the line in user coordinates.
 o to
The end point of the line in user coordinates.

Constructor Index

 o fLine()
Creates a line segment with initial and final points undefined.
 o fLine(double, double, double, double)
Creates a line segment with initial point (x1,y1) and final point (x2,y2), both in user coordinates.
 o fLine(double[], double[])
Creates a line segment with initial point from[] and final point to[], both in user coordinates.

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()

Variables

 o from
 public double from[]
The starting point of the line in user coordinates.

 o to
 public double to[]
The end point of the line in user coordinates.

Constructors

 o fLine
 public fLine()
Creates a line segment with initial and final points undefined.

 o fLine
 public fLine(double from[],
              double to[])
Creates a line segment with initial point from[] and final point to[], both in user coordinates.

 o fLine
 public fLine(double x1,
              double y1,
              double x2,
              double y2)
Creates a line segment with initial point (x1,y1) and final point (x2,y2), both in user coordinates.

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