public abstract class ShapeAdaptor extends Object implements Shape
Details:
ShapeAdaptor
forwards all calls to methods defined in Shape
to the Shape
instance provided at construction time, and relays the return value.
Modifier and Type | Field and Description |
---|---|
protected Shape |
mShape
Represented Shape.
|
Modifier | Constructor and Description |
---|---|
protected |
ShapeAdaptor(Shape iShape)
Declares represented shape.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(double iX,
double iY)
Forwards call.
|
boolean |
contains(double iX,
double iY,
double iWidth,
double iHeight)
Forwards call.
|
boolean |
contains(Point2D iPoint)
Forwards call.
|
boolean |
contains(Rectangle2D iRect)
Forwards call.
|
Rectangle |
getBounds()
Forwards call.
|
Rectangle2D |
getBounds2D()
Forwards call.
|
PathIterator |
getPathIterator(AffineTransform iTransform)
Forwards call.
|
PathIterator |
getPathIterator(AffineTransform iTransform,
double iFlatness)
Forwards call.
|
boolean |
intersects(double iX,
double iY,
double iWidth,
double iHeight)
Forwards call.
|
boolean |
intersects(Rectangle2D iRect)
Forwards call.
|
protected final Shape mShape
Details:
mpShape
is the underlying Shape
instance supporting this ShapeAdaptor
instance.
protected ShapeAdaptor(Shape iShape)
Details:
This constructor initializes a new instance to represent the given Shape
instance.
iShape
- the represented shapepublic Rectangle getBounds()
Details:
This method delegates its call to the Shape
instance given in the constructor, forwarding the parameters, if any, and relaying the return value, if available.
public Rectangle2D getBounds2D()
Details:
This method delegates its call to the Shape
instance given in the constructor, forwarding the parameters, if any, and relaying the return value, if available.
getBounds2D
in interface Shape
public boolean contains(double iX, double iY)
Details:
This method delegates its call to the Shape
instance given in the constructor, forwarding the parameters, if any, and relaying the return value, if available.
public boolean contains(Point2D iPoint)
Details:
This method delegates its call to the Shape
instance given in the constructor, forwarding the parameters, if any, and relaying the return value, if available.
public boolean intersects(double iX, double iY, double iWidth, double iHeight)
Details:
This method delegates its call to the Shape
instance given in the constructor, forwarding the parameters, if any, and relaying the return value, if available.
intersects
in interface Shape
public boolean intersects(Rectangle2D iRect)
Details:
This method delegates its call to the Shape
instance given in the constructor, forwarding the parameters, if any, and relaying the return value, if available.
intersects
in interface Shape
public boolean contains(double iX, double iY, double iWidth, double iHeight)
Details:
This method delegates its call to the Shape
instance given in the constructor, forwarding the parameters, if any, and relaying the return value, if available.
public boolean contains(Rectangle2D iRect)
Details:
This method delegates its call to the Shape
instance given in the constructor, forwarding the parameters, if any, and relaying the return value, if available.
public PathIterator getPathIterator(AffineTransform iTransform)
Details:
This method delegates its call to the Shape
instance given in the constructor, forwarding the parameters, if any, and relaying the return value, if available.
getPathIterator
in interface Shape
public PathIterator getPathIterator(AffineTransform iTransform, double iFlatness)
Details:
This method delegates its call to the Shape
instance given in the constructor, forwarding the parameters, if any, and relaying the return value, if available.
getPathIterator
in interface Shape
Copyright © 2013. All Rights Reserved.