public class SplitBySlice extends SplitStrategy
| Constructor and Description |
|---|
SplitBySlice() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
calculatePositionsRec(int x0,
int y0,
int w0,
int h0,
double weight0,
List<TreeMapNode> v) |
void |
splitElements(List<TreeMapNode> v,
List<TreeMapNode> v1,
List<TreeMapNode> v2)
split the elements of a JTreeMap.
|
static void |
splitInSlice(int x0,
int y0,
int w0,
int h0,
List<TreeMapNode> v,
double sumWeight)
Calculate the dimension of the elements of the List.
|
calculatePositions, sortList, sumWeight, workOutWeightpublic static void splitInSlice(int x0,
int y0,
int w0,
int h0,
List<TreeMapNode> v,
double sumWeight)
x0 - x-coordinatey0 - y-coordinatew0 - widthh0 - heightv - elements to split in the dimensions beforesumWeight - sum of the weightspublic void splitElements(List<TreeMapNode> v, List<TreeMapNode> v1, List<TreeMapNode> v2)
SplitStrategysplitElements in class SplitStrategyv - List with the elements to split (arg IN)v1 - first List of the split (arg OUT)v2 - second List of the split (arg OUT)protected void calculatePositionsRec(int x0,
int y0,
int w0,
int h0,
double weight0,
List<TreeMapNode> v)
calculatePositionsRec in class SplitStrategyCopyright © 2005–2019 Appendium - Portfolio Financing Platform. All rights reserved.