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

Quick Search    Search Deep

phoebe.util
Class PCircleIcon  view PCircleIcon download PCircleIcon.java

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

public class PCircleIcon
extends PEdgeEndIcon

Draws a circle icon at the target node.


Field Summary
protected  double cosTheta
           
protected  double diameter
           
protected  double midX
           
protected  double midY
           
protected  double sinTheta
           
 
Fields inherited from class phoebe.util.PEdgeEndIcon
lineLen, newX, newY, source, target
 
Constructor Summary
PCircleIcon(java.awt.geom.Point2D s, java.awt.geom.Point2D t, double d)
          Constructor.
 
Method Summary
protected  void calcPositions()
          Calculates the points needed to draw the circle.
 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

diameter

protected double diameter

sinTheta

protected double sinTheta

cosTheta

protected double cosTheta

midX

protected double midX

midY

protected double midY
Constructor Detail

PCircleIcon

public PCircleIcon(java.awt.geom.Point2D s,
                   java.awt.geom.Point2D t,
                   double d)
Constructor.

Method Detail

calcPositions

protected void calcPositions()
Calculates the points needed to draw the circle. The difficulty is that the point that defines where a circle is to be drawn is the top left corner of the imaginary box surrounding the circle.


drawIcon

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

Overrides:
drawIcon in class PEdgeEndIcon