|
FreeHEP API Version v1.2.2 |
|||||||||
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 type,
double x,
double y,
double size)
Type must be one of the symbols defined in VectorGraphicsConstants except TYPE_CIRCLE. |
void |
createBox(double x,
double y,
double size)
|
void |
createCross(double x,
double y,
double size)
|
void |
createDiamond(double x,
double y,
double size)
|
void |
createDownTriangle(double x,
double y,
double size)
|
void |
createHLine(double x,
double y,
double size)
|
void |
createPlus(double x,
double y,
double size)
|
void |
createStar(double x,
double y,
double size)
|
void |
createUpTriangle(double x,
double y,
double size)
|
void |
createVLine(double x,
double y,
double size)
|
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 type, double x, double y, double size)
VectorGraphicsConstants
public void createHLine(double x, double y, double size)
public void createVLine(double x, double y, double size)
public void createPlus(double x, double y, double size)
public void createCross(double x, double y, double size)
public void createStar(double x, double y, double size)
public void createUpTriangle(double x, double y, double size)
public void createDownTriangle(double x, double y, double size)
public void createDiamond(double x, double y, double size)
public void createBox(double x, double y, double size)
|
FreeHEP API Version v1.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |