Tracé des axes
This commit is contained in:
@@ -2,6 +2,8 @@ package ecoparasite.svg.elements;
|
||||
|
||||
import ecoparasite.svg.Coordonnees;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
public class Text extends Element {
|
||||
|
||||
private String text;
|
||||
@@ -51,7 +53,7 @@ public class Text extends Element {
|
||||
StringBuilder svg = new StringBuilder();
|
||||
svg.append("<text ");
|
||||
|
||||
String params = String.format( "x=\"%d\" y=\"%d\" fill=\"%s\" font-size=\"%s\"", coordonnees.getX(), coordonnees.getY(), color, size);
|
||||
String params = String.format(Locale.US,"x=\"%f\" y=\"%f\" fill=\"%s\" font-size=\"%s\"", coordonnees.getX(), coordonnees.getY(), color, size);
|
||||
svg.append(params);
|
||||
svg.append(" >");
|
||||
svg.append( this.text );
|
||||
|
||||
Reference in New Issue
Block a user