PlotComparisonItem.java 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package de.tudarmstadt.informatik.hostage.ui2.model;
  2. import java.util.ArrayList;
  3. /**
  4. * Created by Julien on 16.02.14.
  5. */
  6. public class PlotComparisonItem{
  7. private Double value1;
  8. private Double value2;
  9. private String title;
  10. private Integer color = 0;
  11. private ArrayList<PlotComparisonItem> childItems;
  12. /*CONSTRUCTOR*/
  13. public PlotComparisonItem(String title, Integer color , Double value1, Double value2){
  14. super();
  15. this.color = color;
  16. this.title = title;
  17. this.value1 = value1;
  18. this.value2 = value2;
  19. }
  20. public ArrayList<PlotComparisonItem> getChildItems(){
  21. return this.childItems;
  22. }
  23. public void setChildItems(ArrayList<PlotComparisonItem> other){
  24. this.childItems = other;
  25. }
  26. public String getTitle(){
  27. return this.title;
  28. }
  29. public Double getValue1(){
  30. return this.value1;
  31. }
  32. public Double getValue2(){
  33. return this.value2;
  34. }
  35. public void setColor(Integer color){
  36. this.color = color;
  37. }
  38. public Integer getColor(){
  39. return this.color;
  40. }
  41. }