View Javadoc

1   /*
2    * AssetDiagram.java
3    *
4    * Created on 24. mai 2005, 12:34
5    */
6   
7   package com.vikash.firsttool.Diagram;
8   import com.vikash.firsttool.UI.*;
9   import com.vikash.firsttool.ProfileImpl.*;
10  import org.jgraph.graph.GraphLayoutCache;
11  import javax.swing.tree.*;
12  
13  
14  /***
15   *
16   * @author  studajb
17   */
18  public class AssetDiagram extends ToolGraph{
19     //static ToolModel model=new ToolModel();
20      /*** Creates a new instance of AssetDiagram */
21      public AssetDiagram() {
22          super(ToolModel.getInstance(false),"AssetDiagram");
23          //setGraphLayoutCache(new ToolGraphLayoutCache(ToolModel.getInstance(),null,true));
24      }
25      public boolean isValidElement(DefaultMutableTreeNode cell){
26          if(cell instanceof StakeholderGraphCell || cell instanceof AssetGraphCell ||cell instanceof EntityGraphCell)
27              return true;
28          else 
29              return false;
30      }
31      public String toString(){
32          String name="Asset Diagram";
33          return name;
34      }
35  }