Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.graph.dot.impl
Class DotBoxList  view DotBoxList download DotBoxList.java

java.lang.Object
  extended bycom.port80.graph.dot.impl.DotBoxList
Direct Known Subclasses:
DotPath, DotPathEnd

public class DotBoxList
extends java.lang.Object

An allocated list of DotBox. To avoid allocating lots of small DotBox objects, the list have pre-allocated list of DotBox and would never replace them with other boxes.


Field Summary
protected  DotBox[] fBoxes
           
protected  int fCapacity
           
protected  int fSize
           
 
Constructor Summary
DotBoxList(int n)
           
 
Method Summary
 DotBox add(DotBox box)
           
 DotBox add(int llx, int lly, int urx, int ury)
           
 DotBox get(int i)
           
 DotBox getLast()
           
 void grow(int n)
          Grow box list by given size.
 DotBox removeLast()
           
 void reset()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fBoxes

protected DotBox[] fBoxes

fSize

protected int fSize

fCapacity

protected int fCapacity
Constructor Detail

DotBoxList

public DotBoxList(int n)
Method Detail

size

public int size()

get

public DotBox get(int i)

getLast

public DotBox getLast()

add

public DotBox add(int llx,
                  int lly,
                  int urx,
                  int ury)

add

public DotBox add(DotBox box)

removeLast

public DotBox removeLast()

grow

public void grow(int n)
Grow box list by given size.


reset

public void reset()