tpp
Class MarkerFactory
java.lang.Object
tpp.MarkerFactory
public class MarkerFactory
- extends java.lang.Object
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 |
MarkerFactory
public MarkerFactory()
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=diamondx
- the center of the shapey
- 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: