Fix Nettoyage longueur

This commit is contained in:
2026-04-29 09:23:17 +02:00
parent 1b9efaa239
commit d0a5315ca2
3 changed files with 21 additions and 9 deletions

View File

@@ -98,17 +98,17 @@ public class SVGBuilder {
Coordonnees right = getResizer().resize( maxPointsX, beginAxeY );
// Axes
elements.add( new Line( bottom, top, ElementsFactory.COLOR_BLACK, 2 ) );
elements.add( new Line( left, right, ElementsFactory.COLOR_BLACK, 2 ) );
elements.add( new Line( bottom, top, ElementsFactory.COLOR_WHITE, 2 ) );
elements.add( new Line( left, right, ElementsFactory.COLOR_WHITE, 2 ) );
// Labels.
elements.add( new Text(
new Coordonnees( right.getX() + OFFSET_TEXT_AXISX_X, right.getY() + OFFSET_TEXT_AXISX_Y ),
XLabel, ElementsFactory.COLOR_BLACK, ElementsFactory.AXES_TEXT_SIZE
XLabel, ElementsFactory.COLOR_WHITE, ElementsFactory.AXES_TEXT_SIZE
) );
elements.add( new Text(
new Coordonnees( top.getX() + OFFSET_TEXT_AXISY_X, top.getY() + OFFSET_TEXT_AXISY_Y ),
YLabel, ElementsFactory.COLOR_BLACK, ElementsFactory.AXES_TEXT_SIZE
YLabel, ElementsFactory.COLOR_WHITE, ElementsFactory.AXES_TEXT_SIZE
));
return elements;
@@ -130,12 +130,12 @@ public class SVGBuilder {
elements.add(new Line(
coords,
new Coordonnees( coords.getX(), coords.getY() + OFFSET_TICK ),
ElementsFactory.COLOR_BLACK, 1
ElementsFactory.COLOR_WHITE, 1
));
elements.add(new Text(
new Coordonnees( coords.getX() + OFFSET_TEXT_X, coords.getY() + OFFSET_TEXT_Y ),
X.toString(),
ElementsFactory.COLOR_BLACK,
ElementsFactory.COLOR_WHITE,
SIZE_TICK_TEXT
));
}
@@ -158,12 +158,12 @@ public class SVGBuilder {
elements.add(new Line(
new Coordonnees(coords.getX() + OFFSET_TICK, coords.getY() ),
coords,
ElementsFactory.COLOR_BLACK, 1
ElementsFactory.COLOR_WHITE, 1
));
elements.add(new Text(
new Coordonnees( coords.getX() + OFFSET_TEXT_X, coords.getY() + OFFSET_TEXT_Y ),
Y.toString(),
ElementsFactory.COLOR_BLACK,
ElementsFactory.COLOR_WHITE,
SIZE_TICK_TEXT
));
}