/**
  * Creates a new instance of ExplorerTreeNode.
  *
  * @param userObj the object in the tree
  * @param m the tree model
  */
 public ExplorerTreeNode(Object userObj, ExplorerTreeModel m) {
   super(userObj);
   this.model = m;
   if (userObj instanceof Diagram) ((Diagram) userObj).addPropertyChangeListener(this);
 }
示例#2
0
 /**
  * @param d the given diagram
  * @return true if the name of the given diagram equals
  */
 public boolean matchDiagram(Diagram d) {
   return matchDiagram(d.getName());
 }