View Javadoc

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