Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

phoebe.util
Class PTIcon  view PTIcon download PTIcon.java

java.lang.Object
  extended byPPath
      extended byphoebe.util.PEdgeEndIcon
          extended byphoebe.util.PTIcon

public class PTIcon
extends PEdgeEndIcon

Draws a T icon at the target end of the edge.


Field Summary
protected  double botX
           
protected  double botY
           
protected  double cosTheta
           
protected  double length
           
protected  double midX
           
protected  double midY
           
protected  double sinTheta
           
protected  double topX
           
protected  double topY
           
 
Fields inherited from class phoebe.util.PEdgeEndIcon
lineLen, newX, newY, source, target
 
Constructor Summary
PTIcon(java.awt.geom.Point2D s, java.awt.geom.Point2D t, double l)
          Constructor.
 
Method Summary
protected  void calcPositions()
          Calculates the points needed to draw the T.
 void drawIcon(java.awt.geom.Point2D s, java.awt.geom.Point2D t)
          Draws the icon.
 
Methods inherited from class phoebe.util.PEdgeEndIcon
calcLineLen, getNewX, getNewY, paint, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

length

protected double length

sinTheta

protected double sinTheta

cosTheta

protected double cosTheta

midX

protected double midX

midY

protected double midY

botX

protected double botX

botY

protected double botY

topX

protected double topX

topY

protected double topY
Constructor Detail

PTIcon

public PTIcon(java.awt.geom.Point2D s,
              java.awt.geom.Point2D t,
              double l)
Constructor.

Method Detail

calcPositions

protected void calcPositions()
Calculates the points needed to draw the T.


drawIcon

public void drawIcon(java.awt.geom.Point2D s,
                     java.awt.geom.Point2D t)
Draws the icon.

Overrides:
drawIcon in class PEdgeEndIcon