hep.wired.heprep.util
Class Arrow

java.lang.Object
  extended by hep.wired.heprep.util.Arrow
All Implemented Interfaces:
Shape

public class Arrow
extends Object
implements Shape

Defines an Arrow shape, see figure:

Version:
$Id: Arrow.java 8598 2006-08-14 20:38:02Z duns $
Author:
Mark Donszelmann

Constructor Summary
Arrow(double xStart, double yStart, double xEnd, double yEnd, double length, double tip, double base, boolean open)
           
Arrow(Point2D start, Point2D end, double length, double tip, double base, boolean open)
           
 
Method Summary
 boolean contains(double x, double y)
           
 boolean contains(double x, double y, double w, double h)
           
 boolean contains(Point2D p)
           
 boolean contains(Rectangle2D r)
           
 Rectangle getBounds()
           
 Rectangle2D getBounds2D()
           
 PathIterator getPathIterator(AffineTransform t)
           
 PathIterator getPathIterator(AffineTransform at, double flatness)
           
 boolean intersects(double x, double y, double w, double h)
          Returns true, if at least one of the points is contained by the shape.
 boolean intersects(Rectangle2D r)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Arrow

public Arrow(Point2D start,
             Point2D end,
             double length,
             double tip,
             double base,
             boolean open)

Arrow

public Arrow(double xStart,
             double yStart,
             double xEnd,
             double yEnd,
             double length,
             double tip,
             double base,
             boolean open)
Method Detail

contains

public boolean contains(double x,
                        double y)
Specified by:
contains in interface Shape

contains

public boolean contains(double x,
                        double y,
                        double w,
                        double h)
Specified by:
contains in interface Shape

contains

public boolean contains(Point2D p)
Specified by:
contains in interface Shape

contains

public boolean contains(Rectangle2D r)
Specified by:
contains in interface Shape

intersects

public boolean intersects(double x,
                          double y,
                          double w,
                          double h)
Returns true, if at least one of the points is contained by the shape.

Specified by:
intersects in interface Shape

intersects

public boolean intersects(Rectangle2D r)
Specified by:
intersects in interface Shape

getPathIterator

public PathIterator getPathIterator(AffineTransform at,
                                    double flatness)
Specified by:
getPathIterator in interface Shape

getBounds2D

public Rectangle2D getBounds2D()
Specified by:
getBounds2D in interface Shape

getBounds

public Rectangle getBounds()
Specified by:
getBounds in interface Shape

getPathIterator

public PathIterator getPathIterator(AffineTransform t)
Specified by:
getPathIterator in interface Shape

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1996-2013 FreeHEP. All Rights Reserved.