|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.opengl.util.packrect.Level
public class Level
Constructor Summary | |
---|---|
Level(int width,
int height,
int yPos,
LevelSet holder)
|
Method Summary | |
---|---|
boolean |
add(Rect rect)
Tries to add the given rectangle to this level only allowing non-disruptive changes like trivial expansion of the last level in the RectanglePacker and allocation from the free list. |
void |
compact(Object backingStore,
BackingStoreManager manager)
|
boolean |
couldAllocateIfCompacted(Rect rect)
Indicates whether this Level could satisfy an allocation request if it were compacted. |
void |
dumpFreeSpace()
|
int |
h()
|
boolean |
isEmpty()
Indicates whether this Level contains no rectangles. |
Iterator |
iterator()
|
boolean |
remove(Rect rect)
Removes the given Rect from this Level. |
void |
updateRectangleReferences()
Updates the references to the Rect objects in this Level with the "next locations" of those Rects. |
void |
visit(RectVisitor visitor)
Visits all Rects contained in this Level. |
int |
w()
|
int |
yPos()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Level(int width, int height, int yPos, LevelSet holder)
Method Detail |
---|
public int w()
public int h()
public int yPos()
public boolean add(Rect rect)
public boolean remove(Rect rect)
public boolean isEmpty()
public boolean couldAllocateIfCompacted(Rect rect)
public void compact(Object backingStore, BackingStoreManager manager)
public Iterator iterator()
public void visit(RectVisitor visitor)
public void updateRectangleReferences()
public void dumpFreeSpace()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |