Commit f164014f authored by legoc's avatar legoc
Browse files

Added ReferenceAxis class

parent cedc63dd
......@@ -3,9 +3,9 @@ package fr.ill.ics.n3d.utils;
import java.util.ArrayList;
import java.util.List;
import fr.ill.ics.n3d.model.Axis;
import fr.ill.ics.n3d.model.Component;
import fr.ill.ics.n3d.model.Model;
import fr.ill.ics.n3d.model.ReferenceAxis;
/**
* Class storing the list of reference axis.
......@@ -13,7 +13,7 @@ import fr.ill.ics.n3d.model.Model;
public class ReferenceAxisList {
private static ReferenceAxisList instance = new ReferenceAxisList();
private ArrayList<Axis> list = new ArrayList<Axis>();
private ArrayList<ReferenceAxis> list = new ArrayList<ReferenceAxis>();
/**
* Gets the instance of the ReferenceAxisList class.
......@@ -40,7 +40,7 @@ public class ReferenceAxisList {
* Gets the list of reference axes.
* @return The list of reference axes.
*/
public ArrayList<Axis> get() {
public ArrayList<ReferenceAxis> get() {
return list;
}
......@@ -53,7 +53,7 @@ public class ReferenceAxisList {
ArrayList<String> result = new ArrayList<String>();
// Get the names.
for (Axis axis : list) {
for (ReferenceAxis axis : list) {
result.add(axis.getName());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment