hep.wired.heprep.util
Class Arrow
java.lang.Object
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)
|
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)
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.