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.
|
double |
centerX()
Returns the x-coordinate of the center of the framing rectangle.
|
double |
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.
|
double |
height()
Returns the height of the framing rectangle.
|
Point |
max()
Returns the maximum x,y-coordinate of the framing rectangle.
|
double |
maxX()
Returns the maximum x-coordinate of the framing rectangle.
|
double |
maxY()
Returns the maximum y-coordinate of the framing rectangle.
|
Point |
min()
Returns the minimum x,y-coordinate of the framing rectangle.
|
double |
minX()
Returns the minimum x-coordinate of the framing rectangle.
|
double |
minY()
Returns the minimum y-coordinate of the framing rectangle.
|
double |
width()
Returns the width of the framing rectangle.
|
double |
x()
Returns the x-coordinate of the upper-left corner of the framing rectangle.
|
double |
y()
Returns the y-coordinate of the upper-left corner of the framing rectangle.
|
bounds, bounds, contains, contains, contains, contains, intersects, intersects, isEmpty, pathIterator, pathIterator
double x()
double y()
double width()
double height()
Point min()
double minX()
double minY()
Point max()
double maxX()
double maxY()
Point center()
double centerX()
double centerY()
Rectangle frame()
Copyright © 2017. All rights reserved.