Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
public void drawWeight(int weight) {
Graphics g = this.getGraphics();
g.setColor(Color.black);
- g.fillOval(44, 76, 30, (weight * 20) / 600);
+ g.fillOval(44, 80, 30, (weight * 30) / 250);
}
}
g2d.fillOval(62, 50, 6, 3);
// Weigth
g2d.setColor(Color.black);
- g2d.fillOval(44, 76, 30, (personObj.getWeight().getWeight() * 20) / 600);
+ g2d.fillOval(44, 80, 30, (personObj.getWeight().getWeight() * 30) / 250);
}
}
public class Weight {
private int min = 2;
- private int max = 600;
+ private int max = 250;
private int defaultWeight = 72;
private int weight;