infovis.utils
Class StrokedPath

java.lang.Object
  extended by infovis.utils.StrokedPath
All Implemented Interfaces:
PathIterator

public abstract class StrokedPath
extends Object
implements PathIterator

Class StrokedPath

Version:
$Revision: 1.7 $
Author:
Jean-Daniel Fekete

Field Summary
 
Fields inherited from interface java.awt.geom.PathIterator
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO
 
Constructor Summary
StrokedPath()
           
 
Method Summary
static Line2D.Double clip(Line2D.Double l, Rectangle2D bounds)
           
static Line2D.Double clip(Line2D.Double l, Shape shape)
           
static Point2D computeGeneralPointAt(Shape shape, double pos, Point2D pt)
           
static double computePathLength(Shape shape)
           
static Point2D computePosAtLength(Shape shape, double l, Point2D pt)
           
static double dist(double dx, double dy)
           
static Point2D intersects(PathIterator pi, double[] coords, Rectangle2D hitbox, Point2D rtPoint)
           
static boolean intersects(Shape s, Rectangle2D hitbox)
           
static Point2D intersects(Shape s, Rectangle2D hitbox, double width, Point2D rtPoint)
           
static Point2D intersects(Shape s, Rectangle2D hitbox, Point2D rtPoint)
           
static Point2D intersects(Shape s, Rectangle2D hitbox, Stroke stroke, Point2D retPt)
           
static Point2D intersectsSegment(double[] coords, int type, Rectangle2D hitbox, Point2D rtPoint)
           
static PathIterator iterator(double lastX, double lastY, double[] coords, int type)
           
static Point2D pointAt(Shape shape, double pos, Point2D retPt)
           
 boolean pointOnPathIn(double[] coords, int type, Rectangle2D hitbox, Point2D retPt)
           
static Point2D pointOnPathIn(Shape s, Rectangle2D hitbox, Point2D retPt)
           
static Point2D ptInRect(double firstX, double firstY, double lastX, double lastY, Rectangle2D hitbox, Point2D rtPoint)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.geom.PathIterator
currentSegment, currentSegment, getWindingRule, isDone, next
 

Constructor Detail

StrokedPath

public StrokedPath()
Method Detail

pointOnPathIn

public static Point2D pointOnPathIn(Shape s,
                                    Rectangle2D hitbox,
                                    Point2D retPt)

pointOnPathIn

public boolean pointOnPathIn(double[] coords,
                             int type,
                             Rectangle2D hitbox,
                             Point2D retPt)

intersects

public static Point2D intersects(Shape s,
                                 Rectangle2D hitbox,
                                 Stroke stroke,
                                 Point2D retPt)

intersects

public static Point2D intersects(Shape s,
                                 Rectangle2D hitbox,
                                 double width,
                                 Point2D rtPoint)

intersects

public static boolean intersects(Shape s,
                                 Rectangle2D hitbox)

intersects

public static Point2D intersects(Shape s,
                                 Rectangle2D hitbox,
                                 Point2D rtPoint)

intersectsSegment

public static Point2D intersectsSegment(double[] coords,
                                        int type,
                                        Rectangle2D hitbox,
                                        Point2D rtPoint)

iterator

public static PathIterator iterator(double lastX,
                                    double lastY,
                                    double[] coords,
                                    int type)

ptInRect

public static Point2D ptInRect(double firstX,
                               double firstY,
                               double lastX,
                               double lastY,
                               Rectangle2D hitbox,
                               Point2D rtPoint)

intersects

public static Point2D intersects(PathIterator pi,
                                 double[] coords,
                                 Rectangle2D hitbox,
                                 Point2D rtPoint)

clip

public static Line2D.Double clip(Line2D.Double l,
                                 Rectangle2D bounds)

clip

public static Line2D.Double clip(Line2D.Double l,
                                 Shape shape)

dist

public static double dist(double dx,
                          double dy)

computePathLength

public static double computePathLength(Shape shape)

computePosAtLength

public static Point2D computePosAtLength(Shape shape,
                                         double l,
                                         Point2D pt)

computeGeneralPointAt

public static Point2D computeGeneralPointAt(Shape shape,
                                            double pos,
                                            Point2D pt)

pointAt

public static Point2D pointAt(Shape shape,
                              double pos,
                              Point2D retPt)


Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.