public class ShapeWrapper extends Object implements IShape, de.intarsys.tools.geometry.IShapeWrapper
| Constructor and Description |
|---|
ShapeWrapper(Shape shape) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(double x,
double y) |
boolean |
contains(double x,
double y,
double w,
double h) |
boolean |
contains(Point2D p) |
boolean |
contains(Rectangle2D r) |
Shape |
getBaseShape() |
Rectangle |
getBounds() |
Rectangle2D |
getBounds2D() |
Object |
getData() |
PathIterator |
getPathIterator(AffineTransform at) |
PathIterator |
getPathIterator(AffineTransform at,
double flatness) |
Shape |
getShape() |
boolean |
intersects(double x,
double y,
double w,
double h) |
boolean |
intersects(Rectangle2D r) |
void |
setData(Object pData) |
public ShapeWrapper(Shape shape)
public boolean contains(double x,
double y,
double w,
double h)
public boolean contains(Rectangle2D r)
public Shape getBaseShape()
getBaseShape in interface de.intarsys.tools.geometry.IShapeWrapperpublic Rectangle2D getBounds2D()
getBounds2D in interface Shapepublic Object getData()
getData in interface IGraphicsObjectpublic PathIterator getPathIterator(AffineTransform at)
getPathIterator in interface Shapepublic PathIterator getPathIterator(AffineTransform at, double flatness)
getPathIterator in interface Shapepublic Shape getShape()
public boolean intersects(double x,
double y,
double w,
double h)
intersects in interface Shapepublic boolean intersects(Rectangle2D r)
intersects in interface Shapepublic void setData(Object pData)
setData in interface IGraphicsObjectCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.