1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
SystemeAxe systemePere = this.pere.getGestionPlan().getSystemeAxe();
SystemeAxe systemeAxe = systemePere.clone();
double xa = Math.min(systemePere.getPointToUnit(rect.x, rect.y).getX(),
systemePere.getPointToUnit(rect.x + rect.width, rect.y).getX());
double xb = Math.max(systemePere.getPointToUnit(rect.x, rect.y).getX(),
systemePere.getPointToUnit(rect.x + rect.width, rect.y).getX());
double ya = Math.min(systemePere.getPointToUnit(rect.x, rect.y).getY(),
systemePere.getPointToUnit(rect.x, rect.y + rect.height).getY());
double yb = Math.max(systemePere.getPointToUnit(rect.x, rect.y).getY(),
systemePere.getPointToUnit(rect.x, rect.y + rect.height).getY());
systemeAxe.setEchelle(xa, ya, xb, yb);
systemeAxe.setTailleMiniGrad(80);
systemeAxe.setAvecAxe(false);
systemeAxe.setAvecLabel(false);
systemeAxe.setAvecUnite(false); |
Partager