|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jtreemap.ktreemap.SplitStrategy net.sf.jtreemap.ktreemap.SplitByNumber
public class SplitByNumber
Strategy who split the elements in 2 groups of same cardinal.
Constructor Summary | |
---|---|
SplitByNumber()
|
Method Summary | |
---|---|
void |
splitElements(java.util.List<TreeMapNode> v,
java.util.List<TreeMapNode> v1,
java.util.List<TreeMapNode> v2)
split the elements of a JTreeMap. |
double |
sumWeight(java.util.List<TreeMapNode> v)
Sum the weight of elements. |
Methods inherited from class net.sf.jtreemap.ktreemap.SplitStrategy |
---|
calculatePositions, calculatePositionsRec, sortList |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SplitByNumber()
Method Detail |
---|
public void splitElements(java.util.List<TreeMapNode> v, java.util.List<TreeMapNode> v1, java.util.List<TreeMapNode> v2)
SplitStrategy
splitElements
in class SplitStrategy
v
- Vector with the elements to split (arg IN)v1
- first Vector of the split (arg OUT)v2
- second Vector of the split (arg OUT)public double sumWeight(java.util.List<TreeMapNode> v)
SplitStrategy
sumWeight
in class SplitStrategy
v
- List with the elements to sum
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |