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 Line extends Element {
|
||||
|
||||
private Coordonnees coordonneesB;
|
||||
@@ -59,7 +61,7 @@ public class Line extends Element {
|
||||
StringBuilder svg = new StringBuilder();
|
||||
svg.append("<line ");
|
||||
|
||||
String params = String.format( "x1=\"%d\" y1=\"%d\" x2=\"%d\" y2=\"%d\" style=\"stroke:%s;stroke-width:%d\"",
|
||||
String params = String.format( Locale.US,"x1=\"%f\" y1=\"%f\" x2=\"%f\" y2=\"%f\" style=\"stroke:%s;stroke-width:%d\"",
|
||||
this.coordonnees.getX(),
|
||||
this.coordonnees.getY(),
|
||||
this.coordonneesB.getX(),
|
||||
|
||||
Reference in New Issue
Block a user