PropertyDataSet.java 680 B

123456789101112131415161718192021222324252627282930313233343536
  1. package DataSets;
  2. import java.awt.Color;
  3. public class PropertyDataSet {
  4. //contains the Name of the Graph in which the information is shown//
  5. private String assignedGraph;
  6. //the color in which the Graph is drawn//
  7. private Color color;
  8. public PropertyDataSet(){
  9. assignedGraph = "";
  10. color = new Color(255,255,255);
  11. }
  12. public PropertyDataSet(String graph, Color color){
  13. assignedGraph = graph;
  14. this.color = color;
  15. }
  16. public void setColor(Color color){
  17. this.color = color;
  18. }
  19. public void setGraph(String graph){
  20. assignedGraph = graph;
  21. }
  22. public Color getColor(){
  23. return this.color;
  24. }
  25. public String getAssignedGraph(){
  26. return assignedGraph;
  27. }
  28. }