public interface IRectangularShape extends IShape
IShape classes whose geometry is defined by a rectangular
frame. The framing rectangle defines the geometry, but may in some cases differ from
the bounding rectangle of the shape.| Modifier and Type | Method and Description |
|---|---|
Point |
center()
Returns the center of the framing rectangle.
|
float |
centerX()
Returns the x-coordinate of the center of the framing rectangle.
|
float |
centerY()
Returns the y-coordinate of the center of the framing rectangle.
|
Rectangle |
frame()
Returns a copy of this shape's framing rectangle.
|
Rectangle |
frame(Rectangle target)
Initializes the supplied rectangle with this shape's framing rectangle.
|
float |
height()
Returns the height of the framing rectangle.
|
Point |
max()
Returns the maximum x,y-coordinate of the framing rectangle.
|
float |
maxX()
Returns the maximum x-coordinate of the framing rectangle.
|
float |
maxY()
Returns the maximum y-coordinate of the framing rectangle.
|
Point |
min()
Returns the minimum x,y-coordinate of the framing rectangle.
|
float |
minX()
Returns the minimum x-coordinate of the framing rectangle.
|
float |
minY()
Returns the minimum y-coordinate of the framing rectangle.
|
float |
width()
Returns the width of the framing rectangle.
|
float |
x()
Returns the x-coordinate of the upper-left corner of the framing rectangle.
|
float |
y()
Returns the y-coordinate of the upper-left corner of the framing rectangle.
|
bounds, bounds, contains, contains, contains, contains, intersects, intersects, isEmpty, pathIterator, pathIteratorfloat x()
float y()
float width()
float height()
Point min()
float minX()
float minY()
Point max()
float maxX()
float maxY()
Point center()
float centerX()
float centerY()
Rectangle frame()
Copyright © 2017. All rights reserved.