|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.graphics2d.SymbolShape
This class can be used to create and render simple shapes quickly
and without memory allocation. A common point array is used for all
created shapes. The factory methods don't return a new shape, but
set the object to the selected shape. Hence, the class is not thread-safe
and only one PathIterator can be used at the same time.
Constructor Summary | |
SymbolShape()
|
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)
|
void |
create(int symbol,
double x,
double y,
double size)
Type must be one of the symbols defined in VectorGraphicsConstants except TYPE_CIRCLE. |
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 |
public SymbolShape()
Method Detail |
public boolean contains(double x, double y)
contains
in interface Shape
public boolean contains(double x, double y, double w, double h)
contains
in interface Shape
public boolean contains(Point2D p)
contains
in interface Shape
public boolean contains(Rectangle2D r)
contains
in interface Shape
public boolean intersects(double x, double y, double w, double h)
intersects
in interface Shape
public boolean intersects(Rectangle2D r)
intersects
in interface Shape
public PathIterator getPathIterator(AffineTransform at, double flatness)
getPathIterator
in interface Shape
public Rectangle2D getBounds2D()
getBounds2D
in interface Shape
public Rectangle getBounds()
getBounds
in interface Shape
public PathIterator getPathIterator(AffineTransform t)
getPathIterator
in interface Shape
public void create(int symbol, double x, double y, double size)
VectorGraphicsConstants
public String toString()
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |