Tracé des axes
This commit is contained in:
@@ -9,12 +9,20 @@ import ecoparasite.nettoyage.Nettoyage;
|
||||
import ecoparasite.poisson.MackerelSerra;
|
||||
import ecoparasite.poisson.Poisson;
|
||||
import ecoparasite.representation.ValeursXY;
|
||||
import ecoparasite.svg.IncorrectAxesPointsException;
|
||||
import ecoparasite.svg.SVGAxes;
|
||||
import ecoparasite.svg.SVGFactory;
|
||||
import ecoparasite.svg.SVGResizing;
|
||||
import ecoparasite.svg.elements.Element;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.function.BiConsumer;
|
||||
import java.util.function.Function;
|
||||
|
||||
public class Application {
|
||||
|
||||
public static void main(String[] args) throws InputFileException, RawDataOverflow {
|
||||
|
||||
RawData rawMackerel = InputFactory.readData("test2.csv", ",");
|
||||
@@ -31,6 +39,19 @@ public class Application {
|
||||
mackerelSet = Completion.completeColumnsLinear( mackerelSet, getLength, getInfes, setInfes );
|
||||
|
||||
HashSet<ValeursXY> mackerelXY = ValeursXY.convertToXY( mackerelSet, getLength, getInfes );
|
||||
HashMap<String, ArrayList<Double>> axes = SVGFactory.PointAXES( mackerelXY );
|
||||
System.out.println( axes );
|
||||
|
||||
SVGAxes axesInstance;
|
||||
try {
|
||||
axesInstance = new SVGAxes(axes);
|
||||
} catch (IncorrectAxesPointsException e) {
|
||||
System.out.println( "Mauvais format communiqué" );
|
||||
return;
|
||||
}
|
||||
|
||||
ArrayList<Element> SVGElements = axesInstance.buildAll( "Length", "Infestation" );
|
||||
SVGFactory.createSVG( SVGElements );
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user