public interface IShape
Modifier and Type | Method and Description |
---|---|
Rectangle |
bounds()
Returns a copy of the bounding rectangle for this shape.
|
Rectangle |
bounds(Rectangle target)
Initializes the supplied rectangle with this shape's bounding rectangle.
|
boolean |
contains(float x,
float y)
Returns true if this shape contains the specified point.
|
boolean |
contains(float x,
float y,
float width,
float height)
Returns true if this shape completely contains the specified rectangle.
|
boolean |
contains(IRectangle r)
Returns true if this shape completely contains the supplied rectangle.
|
boolean |
contains(XY point)
Returns true if this shape contains the supplied point.
|
boolean |
intersects(float x,
float y,
float width,
float height)
Returns true if this shape intersects the specified rectangle.
|
boolean |
intersects(IRectangle r)
Returns true if this shape intersects the supplied rectangle.
|
boolean |
isEmpty()
Returns true if this shape encloses no area.
|
PathIterator |
pathIterator(Transform at)
Returns an iterator over the path described by this shape.
|
PathIterator |
pathIterator(Transform at,
float flatness)
Returns an iterator over the path described by this shape.
|
boolean isEmpty()
boolean contains(float x, float y)
boolean contains(XY point)
boolean contains(float x, float y, float width, float height)
boolean contains(IRectangle r)
boolean intersects(float x, float y, float width, float height)
boolean intersects(IRectangle r)
Rectangle bounds()
Rectangle bounds(Rectangle target)
PathIterator pathIterator(Transform at)
at
- if supplied, the points in the path are transformed using this.PathIterator pathIterator(Transform at, float flatness)
at
- if supplied, the points in the path are transformed using this.flatness
- when approximating curved segments with lines, this controls the maximum
distance the lines are allowed to deviate from the approximated curve, thus a higher
flatness value generally allows for a path with fewer segments.Copyright © 2017. All rights reserved.