|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.ui.graphics.PolygonShapePool
public final class PolygonShapePool
Provides a pool for polygon shape objects.
Constructor Summary | |
---|---|
PolygonShapePool()
Construct this object. |
|
PolygonShapePool(int maxSize)
Construct this object with the given parameter. |
Method Summary | |
---|---|
PolygonShape |
acquire()
Return an instance from the reusable object pool, creating it if necessary. |
PolygonShape |
acquire(Color color,
List points,
boolean isWireframe)
Return an instance from the reusable object pool, creating it if necessary. |
void |
release(PolygonShape polygon)
Return an instance to the reusable object pool. |
int |
size()
Return the current size of the pool. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PolygonShapePool()
public PolygonShapePool(int maxSize)
maxSize
- Guess at the maximum size of the pool. The pool will
expand as necessary.Method Detail |
---|
public PolygonShape acquire()
public PolygonShape acquire(Color color, List points, boolean isWireframe)
color
- Color.points
- Points.isWireframe
- Flag indicating whether the polygon should be drawn
solid or wireframe.public void release(PolygonShape polygon)
polygon
- The instance to release.public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |