Tracé des points et de la regression
This commit is contained in:
@@ -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(" />");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user