All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class figPac.fParticleLine

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

public class fParticleLine
extends Object
implements fElement, S2V, fInteractive, MouseListener, MouseMotionListener
Each instance of the class fParticleLine represents a Feynman diagram particle line. This is an arc of a parabolic curve with a specified starting point, ending point and height (maximum distance from the straight line segment joining the ends). As well there is an arrowhead indictaing the orientation of the line.


Variable Index

 o arrowfrac
The fraction of the way along the line that the arrowhead appears.
 o arrowhead
The arrowhead on the particle line.
 o from
The starting point of the line in user coordinates.
 o height
The height of the line (maximum distance from the straight line segment joining the ends) in usr coordinates.
 o parabola
The curve part of the the particle line.
 o to
The end point of the line in user coordinates.

Constructor Index

 o fParticleLine()
 o fParticleLine(double, double, double, double)
Creates a particle line with initial point (x1,y1) and final point (x2,y2), both in user coordinates.
 o fParticleLine(double, double, double, double, double, double)
Creates a particle line with initial point (x1,y1) and final point (x2,y2), both in user coordinates.
 o fParticleLine(double[], double[])
Creates a particle line with initial point from[] and final point to[], both in user coordinates.
 o fParticleLine(double[], double[], double, double)
Creates a particle line 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 map(double)
Returns (1-t)*from +t*to +4*height*t*(1-t)*[from[1]-to[1], to[0]-from[0]]/len.
 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.

 o height
 public double height
The height of the line (maximum distance from the straight line segment joining the ends) in usr coordinates.

 o arrowfrac
 public double arrowfrac
The fraction of the way along the line that the arrowhead appears.

 o arrowhead
 public fArrowhead arrowhead
The arrowhead on the particle line.

 o parabola
 public fCurve parabola
The curve part of the the particle line.

Constructors

 o fParticleLine
 public fParticleLine()
 o fParticleLine
 public fParticleLine(double from[],
                      double to[])
Creates a particle line with initial point from[] and final point to[], both in user coordinates. The height is zero and the arrowhead appears in the middle of the line.

 o fParticleLine
 public fParticleLine(double x1,
                      double y1,
                      double x2,
                      double y2)
Creates a particle line with initial point (x1,y1) and final point (x2,y2), both in user coordinates. The height is zero and the arrowhead appears in the middle of the line.

 o fParticleLine
 public fParticleLine(double from[],
                      double to[],
                      double height,
                      double arrowfrac)
Creates a particle line with initial point from[] and final point to[], both in user coordinates. The height and positioning of the arrowhead are given by the last two arguments.

 o fParticleLine
 public fParticleLine(double x1,
                      double y1,
                      double x2,
                      double y2,
                      double height,
                      double arrowfrac)
Creates a particle line with initial point (x1,y1) and final point (x2,y2), both in user coordinates. The height and positioning of the arrowhead are given by the last two arguments.

Methods

 o map
 public double[] map(double t)
Returns (1-t)*from +t*to +4*height*t*(1-t)*[from[1]-to[1], to[0]-from[0]]/len.

 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