public interface RectanglePacker
| Modifier and Type | Method and Description | 
|---|---|
| void | clear()Clears all rectangles, to start over | 
| boolean | fits(int w,
    int h)Checks whether a rectangle with given size will
 fit in the pack. | 
| int | getHeight() | 
| int | getWidth() | 
| Rectangle | pack(int w,
    int h)Packs a rectangle with given dimensions, returning
 the destination rectangle. | 
boolean fits(int w,
             int h)
pack(int, int) is
 an O(1) operation.w - widthh - heightRectangle pack(int w, int h)
w - widthh - heightvoid clear()
int getWidth()
int getHeight()