de.intarsys.cwt.common
Class ShapeWrapper

java.lang.Object
  extended by 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


Constructor Summary
ShapeWrapper(java.awt.Shape shape)
           
 
Method Summary
 boolean contains(double x, double y)
           
 boolean contains(double x, double y, double w, double h)
           
 boolean contains(java.awt.geom.Point2D p)
           
 boolean contains(java.awt.geom.Rectangle2D r)
           
 java.awt.Shape getBaseShape()
           
 java.awt.Rectangle getBounds()
           
 java.awt.geom.Rectangle2D getBounds2D()
           
 java.lang.Object getData()
           
 java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at)
           
 java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at, double flatness)
           
 java.awt.Shape getShape()
           
 boolean intersects(double x, double y, double w, double h)
           
 boolean intersects(java.awt.geom.Rectangle2D r)
           
 void setData(java.lang.Object pData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeWrapper

public ShapeWrapper(java.awt.Shape shape)
Method Detail

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