1
2
3
4
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
20 /*** Creates a new instance of AssetDiagram */
21 public AssetDiagram() {
22 super(ToolModel.getInstance(false),"AssetDiagram");
23
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 }