|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsk.upjs.fontmapper.BinaryPacker.Node
private class BinaryPacker.Node
Node of the binary tree that can specify space taken by a texture or contain more nodes.
| Field Summary | |
|---|---|
java.awt.Rectangle |
bounds
Area belonging to the node. |
private BinaryPacker.Node |
child_a_
Child nodes, if any. |
private BinaryPacker.Node |
child_b_
|
private boolean |
full_
Is this node taken by a texture? |
| Constructor Summary | |
|---|---|
BinaryPacker.Node(java.awt.Rectangle b)
Constructs a node containing specified space. |
|
| Method Summary | |
|---|---|
BinaryPacker.Node |
insert(java.awt.Dimension size)
Try to insert a texture space with given size to the node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.awt.Rectangle bounds
private BinaryPacker.Node child_a_
private BinaryPacker.Node child_b_
private boolean full_
| Constructor Detail |
|---|
public BinaryPacker.Node(java.awt.Rectangle b)
| Method Detail |
|---|
public BinaryPacker.Node insert(java.awt.Dimension size)
size - Size of the space needed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||