|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.babaroga.test.packing.BoundsGenerator
public abstract class BoundsGenerator
A BoundsGenerator generates potential bounding rectangles.
| Constructor Summary | |
|---|---|
BoundsGenerator()
|
|
| Method Summary | |
|---|---|
java.awt.Dimension |
getBounds()
Returns the packed bounding rectangle. |
int |
getNumBoundsTested()
Returns the number of bounding rectangles that the RectanglePacker
attempted to pack whether or not the packing was successful. |
java.util.Collection<java.awt.Rectangle> |
getPackedRectangles()
Returns the rectangles that were packed. |
java.util.Collection<java.awt.Rectangle> |
pack(java.util.Collection<java.awt.Rectangle> rectangles,
RectanglePacker packer)
Packs the supplied rectangles using a bounds generator. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BoundsGenerator()
| Method Detail |
|---|
public java.util.Collection<java.awt.Rectangle> pack(java.util.Collection<java.awt.Rectangle> rectangles,
RectanglePacker packer)
throws java.lang.IllegalArgumentException
rectangles - The rectangles that should be packed.packer - The packer to pack the generated bounds with.
java.lang.IllegalArgumentException - If any rectangles are empty (zero length
dimensions).
java.lang.IllegalArgumentException - If any bounds generated by
generator have width or height <= 0.public java.awt.Dimension getBounds()
public int getNumBoundsTested()
RectanglePacker
attempted to pack whether or not the packing was successful.
public java.util.Collection<java.awt.Rectangle> getPackedRectangles()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||