public class IlvTranslatedShape extends Object implements Shape
To instantiate this class, use the method
IlvShapeUtil.getTranslatedShape(Shape, double, double)
.
Modifier and Type | Method and Description |
---|---|
boolean |
contains(double x,
double y)
Determines whether a point is contained in this
Shape . |
boolean |
contains(double x,
double y,
double w,
double h)
Determines whether a rectangle is contained in this
Shape . |
boolean |
contains(Point2D p)
Determines whether a point is contained in this
Shape . |
boolean |
contains(Rectangle2D r)
Determines whether a rectangle is contained in this
Shape . |
Rectangle |
getBounds()
Returns an integer-valued bounding rectangle of this
Shape . |
Rectangle2D |
getBounds2D()
Returns a high-precision bounding rectangle of this
Shape . |
double |
getOffsetX()
Returns the translation in x direction.
|
double |
getOffsetY()
Returns the translation in y direction.
|
Shape |
getOriginalShape()
Returns the original shape.
|
PathIterator |
getPathIterator(AffineTransform at)
Returns an iterator that runs along the boundary of this
Shape . |
PathIterator |
getPathIterator(AffineTransform at,
double flatness)
Returns an iterator that runs along a flattened boundary of this
Shape . |
boolean |
intersects(double x,
double y,
double w,
double h)
Determines whether a rectangle has points in common with this
Shape . |
boolean |
intersects(Rectangle2D r)
Determines whether a rectangle has points in common with this
Shape . |
public Shape getOriginalShape()
public double getOffsetX()
public double getOffsetY()
public Rectangle2D getBounds2D()
Shape
.getBounds2D
in interface Shape
public Rectangle getBounds()
Shape
.public boolean contains(double x, double y)
Shape
.public boolean contains(Point2D p)
Shape
.public boolean intersects(double x, double y, double w, double h)
Shape
.intersects
in interface Shape
public boolean intersects(Rectangle2D r)
Shape
.intersects
in interface Shape
public boolean contains(double x, double y, double w, double h)
Shape
.public boolean contains(Rectangle2D r)
Shape
.public PathIterator getPathIterator(AffineTransform at)
Shape
.getPathIterator
in interface Shape
public PathIterator getPathIterator(AffineTransform at, double flatness)
Shape
.getPathIterator
in interface Shape
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.