de.intarsys.cwt.common
Class ShapeWrapper
java.lang.Object
de.intarsys.cwt.common.ShapeWrapper
- All Implemented Interfaces:
- IGraphicsObject, IShape, de.intarsys.tools.geometry.IShapeWrapper, java.awt.Shape
public class ShapeWrapper
- extends java.lang.Object
- implements IShape, de.intarsys.tools.geometry.IShapeWrapper
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShapeWrapper
public ShapeWrapper(java.awt.Shape shape)
contains
public boolean contains(double x,
double y)
- Specified by:
contains
in interface java.awt.Shape
contains
public boolean contains(double x,
double y,
double w,
double h)
- Specified by:
contains
in interface java.awt.Shape
contains
public boolean contains(java.awt.geom.Point2D p)
- Specified by:
contains
in interface java.awt.Shape
contains
public boolean contains(java.awt.geom.Rectangle2D r)
- Specified by:
contains
in interface java.awt.Shape
getBaseShape
public java.awt.Shape getBaseShape()
- Specified by:
getBaseShape
in interface de.intarsys.tools.geometry.IShapeWrapper
getBounds
public java.awt.Rectangle getBounds()
- Specified by:
getBounds
in interface java.awt.Shape
getBounds2D
public java.awt.geom.Rectangle2D getBounds2D()
- Specified by:
getBounds2D
in interface java.awt.Shape
getData
public java.lang.Object getData()
- Specified by:
getData
in interface IGraphicsObject
getPathIterator
public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at)
- Specified by:
getPathIterator
in interface java.awt.Shape
getPathIterator
public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at,
double flatness)
- Specified by:
getPathIterator
in interface java.awt.Shape
getShape
public java.awt.Shape getShape()
intersects
public boolean intersects(double x,
double y,
double w,
double h)
- Specified by:
intersects
in interface java.awt.Shape
intersects
public boolean intersects(java.awt.geom.Rectangle2D r)
- Specified by:
intersects
in interface java.awt.Shape
setData
public void setData(java.lang.Object pData)
- Specified by:
setData
in interface IGraphicsObject