|
@@ -128,7 +128,7 @@ public class HolonCanvas extends JPanel implements MouseWheelListener {
|
|
|
|
|
|
bodies = newBodies;
|
|
|
for (int i = bodies.size(); i < subCount; i++) {
|
|
|
- HolonBody temp = new HolonBody((center.width + 1) + (-1 * i), (center.height + 1) + (-1 * i),
|
|
|
+ HolonBody temp = new HolonBody(center.width+(-1*i), center.height+(-1*i),
|
|
|
(subnets.get(i).getObjects().size() * 5 + 10) * controller.getHolonBodyScale() / 100,
|
|
|
subnets.get(i).getObjects().size() * 5 + 10, model.getSubNetColors().get(i));
|
|
|
temp.setId(i);
|
|
@@ -140,7 +140,7 @@ public class HolonCanvas extends JPanel implements MouseWheelListener {
|
|
|
// creates the first round of bodies
|
|
|
private void createBodies(int subCount) {
|
|
|
for (int i = 0; i < subCount; i++) {
|
|
|
- HolonBody temp = new HolonBody((center.width + 1) + (-1 * i), (center.height + 1) + (-1 * i),
|
|
|
+ HolonBody temp = new HolonBody(center.width+(-1*i), center.height+(-1*i),
|
|
|
subnets.get(i).getObjects().size() * 5 + 10, subnets.get(i).getObjects().size() * 5 + 10,
|
|
|
model.getSubNetColors().get(i));
|
|
|
temp.setId(i);
|