tpp
Class MarkerFactory

java.lang.Object
  extended by tpp.MarkerFactory

public class MarkerFactory
extends java.lang.Object


Constructor Summary
MarkerFactory()
           
 
Method Summary
static java.awt.Shape buildArrowHead(java.awt.geom.Line2D line, double arrowLength, boolean indent)
          Build an arrow head for the given line
static java.awt.Shape buildMarker(int type, double x, double y, double size)
          Build a marker Shape object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkerFactory

public MarkerFactory()
Method Detail

buildMarker

public static java.awt.Shape buildMarker(int type,
                                         double x,
                                         double y,
                                         double size)
Build a marker Shape object

Parameters:
type - 0=circle, 1=square, 2=down-triangle, 3=up-triangle, 4=diamond
x - the center of the shape
y -
size - teh size of the shape
Returns:

buildArrowHead

public static java.awt.Shape buildArrowHead(java.awt.geom.Line2D line,
                                            double arrowLength,
                                            boolean indent)
Build an arrow head for the given line

Parameters:
arrowLength - the length of the arrow head.
indent - if true then don't put the arrow head right at the end of the line but indent it by the length of a single arrow (to allow for markers)
Returns: