Tracé des points et de la regression

This commit is contained in:
2026-04-27 15:18:30 +02:00
parent 82901f623b
commit 1b9efaa239
5 changed files with 182 additions and 142 deletions

View File

@@ -2,6 +2,8 @@ package ecoparasite.svg.elements;
import ecoparasite.svg.Coordonnees;
import java.util.Locale;
public class Circle extends Element {
private int rayon;
@@ -40,7 +42,7 @@ public class Circle extends Element {
StringBuilder svg = new StringBuilder();
svg.append("<circle ");
String str = String.format( "r=\"%d\" cx=\"%d\" cy=\"%d\" fill=\"%s\"", this.rayon, this.coordonnees.getX(), this.coordonnees.getY(), this.color);
String str = String.format(Locale.US, "r=\"%d\" cx=\"%f\" cy=\"%f\" fill=\"%s\"", this.rayon, this.coordonnees.getX(), this.coordonnees.getY(), this.color);
svg.append( str );
svg.append(" />");