ter.SDK.view
Class TreeHeritageView

java.lang.Object
  |
  +--ter.SDK.view.AbstractView
        |
        +--ter.SDK.view.HeritageView
              |
              +--ter.SDK.view.TreeHeritageView
All Implemented Interfaces:
Plugin, View

public class TreeHeritageView
extends HeritageView

Title: Class TreeHeritageView

Description: This class implements an heritage view for a classifierAnalyser with a JTree. This class is an heritage vew so it extends the class HeritageView.

Company: UNSA

Version:
1.0
Author:
Charbit Lucas - Gahide Jérome - Galbois Xavier - Zerbib Gabriel

Constructor Summary
TreeHeritageView()
          The default constructor
TreeHeritageView(ClassifierAnalyser classifierAnalyser)
          The constructor
 
Method Summary
 void constructClassTree(javax.swing.tree.DefaultMutableTreeNode racine)
          Construct the node for the tree when the classifier is a class
 javax.swing.tree.DefaultMutableTreeNode constructInterfaceTree()
          Construct the node for the tree when the classifier is an interface
 void constructTree()
          Construct the tree for the view
 javax.swing.tree.DefaultMutableTreeNode getClassInterfaceNode(ClassifierAnalyser currentCA)
          Get all the inertface node if the classifier is not an interface
 java.util.Hashtable getHastable()
           
 javax.swing.JTree getHeritageTree()
           
 java.lang.String getName()
          Needed by the Plugin interface
 java.awt.Container getViewContainer()
          Needed by the View interface
 void updateView()
          Construct the view
 
Methods inherited from class ter.SDK.view.HeritageView
getType
 
Methods inherited from class ter.SDK.view.AbstractView
create, getClassifierAnalyser, setClassifierAnalyser
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeHeritageView

public TreeHeritageView()
The default constructor


TreeHeritageView

public TreeHeritageView(ClassifierAnalyser classifierAnalyser)
The constructor

Parameters:
classifierAnalyser - : the classifierAnalyser represented by the view
Method Detail

getName

public java.lang.String getName()
Needed by the Plugin interface

Returns:
: the name of this class

getViewContainer

public java.awt.Container getViewContainer()
Needed by the View interface

Returns:
: a container

getHeritageTree

public javax.swing.JTree getHeritageTree()

getHastable

public java.util.Hashtable getHastable()

updateView

public void updateView()
Construct the view


constructTree

public void constructTree()
Construct the tree for the view


getClassInterfaceNode

public javax.swing.tree.DefaultMutableTreeNode getClassInterfaceNode(ClassifierAnalyser currentCA)
Get all the inertface node if the classifier is not an interface

Parameters:
currentCA - : the classifierAnalyser
Returns:
: a node for the tree

constructClassTree

public void constructClassTree(javax.swing.tree.DefaultMutableTreeNode racine)
Construct the node for the tree when the classifier is a class

Parameters:
racine -

constructInterfaceTree

public javax.swing.tree.DefaultMutableTreeNode constructInterfaceTree()
Construct the node for the tree when the classifier is an interface

Returns:
the constructes node