public class SmartPolygon extends Polygon
Polygon.getBounds() method
that doesn't annoyingly make a copy of the bounds rectangle every time
it is returned.| Constructor and Description |
|---|
SmartPolygon() |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
getBoundingBox()
Returns the internally cached bounds rectangle for this polygon.
|
addPoint, contains, contains, contains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, inside, intersects, intersects, invalidate, reset, translatepublic Rectangle getBoundingBox()
getBoundingBox in class PolygonCopyright © 2015. All rights reserved.