Package com.jogamp.opengl.util.packrect
Class Level
java.lang.Object
com.jogamp.opengl.util.packrect.Level
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTries 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.voidcompact(Object backingStore, BackingStoreManager manager) booleancouldAllocateIfCompacted(Rect rect) Indicates whether this Level could satisfy an allocation request if it were compacted.voidinth()booleanisEmpty()Indicates whether this Level contains no rectangles.iterator()booleanRemoves the given Rect from this Level.voidUpdates the references to the Rect objects in this Level with the "next locations" of those Rects.voidvisit(RectVisitor visitor) Visits all Rects contained in this Level.intw()intyPos()
-
Constructor Details
-
Level
-
-
Method Details
-
w
public int w() -
h
public int h() -
yPos
public int yPos() -
add
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. More disruptive changes like compaction of the level must be requested explicitly. -
remove
Removes the given Rect from this Level. -
isEmpty
public boolean isEmpty()Indicates whether this Level contains no rectangles. -
couldAllocateIfCompacted
Indicates whether this Level could satisfy an allocation request if it were compacted. -
compact
-
iterator
-
visit
Visits all Rects contained in this Level. -
updateRectangleReferences
public void updateRectangleReferences()Updates the references to the Rect objects in this Level with the "next locations" of those Rects. This is actually used to update the new Rects in a newly laid-out LevelSet with the original Rects. -
dumpFreeSpace
public void dumpFreeSpace()
-