Newer
Older
MagnetRON / src / org / ntlab / deltaViewer / Edge.java
  1. package org.ntlab.deltaViewer;
  2.  
  3. /**
  4. * JGraphX Edge.
  5. *
  6. * @author Nitta Lab.
  7. */
  8. public class Edge {
  9. String label;
  10. TypeName typeName;
  11. Object cell;
  12. protected enum TypeName {
  13. Reference, // object reference
  14. Create, // create object reference
  15. Call // method call
  16. }
  17. /**
  18. * @param label No display label
  19. * @param typeName
  20. * @param cell
  21. */
  22. public Edge(String label, TypeName typeName, Object cell) {
  23. this.label = label;
  24. this.typeName = typeName;
  25. this.cell = cell;
  26. }
  27.  
  28. public String getLabel() {
  29. return label;
  30. }
  31.  
  32. public void setLabel(String label) {
  33. this.label = label;
  34. }
  35.  
  36. public TypeName getTypeName() {
  37. return typeName;
  38. }
  39.  
  40. public void setTypeName(TypeName typeName) {
  41. this.typeName = typeName;
  42. }
  43.  
  44. public Object getCell() {
  45. return cell;
  46. }
  47.  
  48. public void setCell(Object cell) {
  49. this.cell = cell;
  50. }
  51.  
  52. }