Package icyllis.arc3d.core
Class RectanglePacker.BinaryTree
java.lang.Object
icyllis.arc3d.core.RectanglePacker
icyllis.arc3d.core.RectanglePacker.BinaryTree
- Enclosing class:
RectanglePacker
-
Nested Class Summary
Nested classes/interfaces inherited from class icyllis.arc3d.core.RectanglePacker
RectanglePacker.BinaryTree, RectanglePacker.Horizon, RectanglePacker.HorizonOld, RectanglePacker.Power2Line, RectanglePacker.Skyline
-
Field Summary
Fields inherited from class icyllis.arc3d.core.RectanglePacker
ALGORITHM_BINARY_TREE, ALGORITHM_HORIZON, ALGORITHM_HORIZON_OLD, ALGORITHM_POWER2_LINE, ALGORITHM_SKYLINE, ALGORITHM_SKYLINE_NEW, mArea, mHeight, mWidth
-
Constructor Summary
ConstructorDescriptionBinaryTree
(int width, int height) Constructor assumes both width and height > 0 invalid input: '&'invalid input: '&' invalid input: '<'= 32767. -
Method Summary
Methods inherited from class icyllis.arc3d.core.RectanglePacker
free, getCoverage, getHeight, getWidth, make, make
-
Constructor Details
-
BinaryTree
public BinaryTree(int width, int height) Constructor assumes both width and height > 0 invalid input: '&'invalid input: '&' invalid input: '<'= 32767.- Parameters:
width
- the max widthheight
- the max height
-
-
Method Details
-
clear
public void clear()Description copied from class:RectanglePacker
Clears all the tracked data.- Specified by:
clear
in classRectanglePacker
-
addRect
Description copied from class:RectanglePacker
Decides upon an (x, y) position for the given rectangle (leaving its width and height unchanged).- Specified by:
addRect
in classRectanglePacker
- Returns:
- true on success; false on failure
-