|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.treemap.AbstractAlgorithm
public abstract class AbstractAlgorithm
This class provides a skeletal implementation of the Algorithm interface to minimize the effort required to implement this interface.
| Constructor Summary | |
|---|---|
AbstractAlgorithm()
|
|
| Method Summary | ||
|---|---|---|
|
finishLayout(Rectangle2D bounds,
TreeMapModel<N> model,
N root)
Do nothing by default. |
|
|
iterator(TreeMapModel<N> model,
N root)
Breadth first traversal by default. |
|
|
startLayout(Rectangle2D bounds,
TreeMapModel<N> model,
N root,
TreeMapWorker worker)
Do nothing by default. |
|
protected static double |
sum(TreeMapNode[] children,
int start,
int end)
Sums up the sizes of the given nodes according to the start and end indices. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.jidesoft.treemap.Algorithm |
|---|
doLayout |
| Constructor Detail |
|---|
public AbstractAlgorithm()
| Method Detail |
|---|
public <N> Iterable<N> iterator(TreeMapModel<N> model,
N root)
iterator in interface Algorithmmodel - the modelroot - the root node
public <N> void startLayout(Rectangle2D bounds,
TreeMapModel<N> model,
N root,
TreeMapWorker worker)
startLayout in interface Algorithmbounds - the bounds of the viewmodel - the modelroot - the root nodeworker -
public <N> void finishLayout(Rectangle2D bounds,
TreeMapModel<N> model,
N root)
finishLayout in interface Algorithmbounds - the bounds of the viewmodel - the modelroot - the root node
protected static final double sum(TreeMapNode[] children,
int start,
int end)
children - the nodesstart - start indexend - end index
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||