1 26 package org.objectweb.util.explorer.swing.graph; 27 28 import org.jgraph.graph.DefaultPort; 29 30 34 public class MyPort extends DefaultPort { 35 36 37 private Object itf; 38 39 40 private String name; 41 42 43 private String type; 44 45 46 private int number; 47 48 49 private boolean isGenerated; 50 51 public MyPort(Object itf, String name, String type, int number, boolean isGenerated) { 52 super(); 53 this.name = name; 54 this.type = type; 55 this.number = number; 56 this.isGenerated = isGenerated; 57 this.itf = itf; 58 } 59 60 public String getName() { 61 return name; 62 } 63 64 public boolean isGenerated(){ 65 return isGenerated; 66 } 67 68 public String toString() { 69 return name; 70 } 71 72 public String getType() { 73 return type; 74 } 75 76 public int getNumber() { 77 return number; 78 } 79 80 } | Popular Tags |