JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.util.packrect.Level Class Reference
Collaboration diagram for com.jogamp.opengl.util.packrect.Level:

Classes

class  RectXComparator
 

Public Member Functions

 Level (final int width, final int height, final int yPos, final LevelSet holder)
 
int w ()
 
int h ()
 
int yPos ()
 
boolean add (final 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. More...
 
boolean remove (final Rect rect)
 Removes the given Rect from this Level. More...
 
boolean isEmpty ()
 Indicates whether this Level contains no rectangles. More...
 
boolean couldAllocateIfCompacted (final Rect rect)
 Indicates whether this Level could satisfy an allocation request if it were compacted. More...
 
void compact (final Object backingStore, final BackingStoreManager manager)
 
Iterator< Rectiterator ()
 
void visit (final RectVisitor visitor)
 Visits all Rects contained in this Level. More...
 
void updateRectangleReferences ()
 Updates the references to the Rect objects in this Level with the "next locations" of those Rects. More...
 
void dumpFreeSpace ()
 

Detailed Description

Definition at line 44 of file Level.java.

Constructor & Destructor Documentation

◆ Level()

com.jogamp.opengl.util.packrect.Level.Level ( final int  width,
final int  height,
final int  yPos,
final LevelSet  holder 
)

Definition at line 67 of file Level.java.

Member Function Documentation

◆ add()

boolean com.jogamp.opengl.util.packrect.Level.add ( final 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.

More disruptive changes like compaction of the level must be requested explicitly.

Definition at line 83 of file Level.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ compact()

void com.jogamp.opengl.util.packrect.Level.compact ( final Object  backingStore,
final BackingStoreManager  manager 
)

Definition at line 183 of file Level.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ couldAllocateIfCompacted()

boolean com.jogamp.opengl.util.packrect.Level.couldAllocateIfCompacted ( final Rect  rect)

Indicates whether this Level could satisfy an allocation request if it were compacted.

Definition at line 168 of file Level.java.

Here is the caller graph for this function:

◆ dumpFreeSpace()

void com.jogamp.opengl.util.packrect.Level.dumpFreeSpace ( )

Definition at line 263 of file Level.java.

◆ h()

int com.jogamp.opengl.util.packrect.Level.h ( )

Definition at line 75 of file Level.java.

Here is the caller graph for this function:

◆ isEmpty()

boolean com.jogamp.opengl.util.packrect.Level.isEmpty ( )

Indicates whether this Level contains no rectangles.

Definition at line 162 of file Level.java.

Here is the caller graph for this function:

◆ iterator()

Iterator< Rect > com.jogamp.opengl.util.packrect.Level.iterator ( )

Definition at line 201 of file Level.java.

◆ remove()

boolean com.jogamp.opengl.util.packrect.Level.remove ( final Rect  rect)

Removes the given Rect from this Level.

Definition at line 142 of file Level.java.

Here is the caller graph for this function:

◆ updateRectangleReferences()

void com.jogamp.opengl.util.packrect.Level.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.

Definition at line 217 of file Level.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ visit()

void com.jogamp.opengl.util.packrect.Level.visit ( final RectVisitor  visitor)

Visits all Rects contained in this Level.

Definition at line 206 of file Level.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ w()

int com.jogamp.opengl.util.packrect.Level.w ( )

Definition at line 74 of file Level.java.

◆ yPos()

int com.jogamp.opengl.util.packrect.Level.yPos ( )

Definition at line 76 of file Level.java.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: