org.keridwen.modelling.mesh.inspector.models
Class InspectorTreeModel

java.lang.Object
  extended by javax.swing.tree.DefaultTreeModel
      extended by org.keridwen.modelling.mesh.inspector.models.InspectorTreeModel
All Implemented Interfaces:
Serializable, EventListener, ListDataListener, TreeModel

public class InspectorTreeModel
extends DefaultTreeModel
implements ListDataListener

Tree model of the Penelops's Mesh Inspector.

Author:
J.Forest, Artenum SARL.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root
 
Constructor Summary
InspectorTreeModel(com.artenum.penelope.mesh.interfaces.Mesh mesh)
          Main constructor.
 
Method Summary
 void addAnalyserNode(MeshTreeNode selectedMeshNodeTree, MeshAnalyser analyser, AnalyserUIPanel uiPanel)
          add an analyser node to the tree and update this last one.
 void addNodeMesh(com.artenum.penelope.mesh.interfaces.Mesh mesh)
          add a mesh node type in the tree
 void addNodeMesh(com.artenum.penelope.mesh.interfaces.Mesh mesh, MeshUIPanel uiPanel)
          add a mesh node in the tree.
 void addReportFileNode(File file)
          add a report file to the tree
 void addVtkFileNode(AnalyserTreeNode selectedAnalyserNodeTree, File file)
          add a vtk file node to the selected analyser node.
 void addVtkFileNode(MeshTreeNode selectedTreeNode, File file)
           
 void contentsChanged(ListDataEvent e)
           
 void intervalAdded(ListDataEvent e)
           
 void intervalRemoved(ListDataEvent e)
           
 void reload()
           
 void setView(InspectorTree tree)
           
 
Methods inherited from class javax.swing.tree.DefaultTreeModel
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InspectorTreeModel

public InspectorTreeModel(com.artenum.penelope.mesh.interfaces.Mesh mesh)
Main constructor.

Parameters:
mesh - - mesh to wich one the present inspector is applied to.
Method Detail

reload

public void reload()
Overrides:
reload in class DefaultTreeModel

addNodeMesh

public void addNodeMesh(com.artenum.penelope.mesh.interfaces.Mesh mesh)
add a mesh node type in the tree

Parameters:
mesh -

addNodeMesh

public void addNodeMesh(com.artenum.penelope.mesh.interfaces.Mesh mesh,
                        MeshUIPanel uiPanel)
add a mesh node in the tree. Mesh nodes are added to the root.

Parameters:
mesh -
uiPanel - set the related control panel.

addAnalyserNode

public void addAnalyserNode(MeshTreeNode selectedMeshNodeTree,
                            MeshAnalyser analyser,
                            AnalyserUIPanel uiPanel)
add an analyser node to the tree and update this last one.


addVtkFileNode

public void addVtkFileNode(AnalyserTreeNode selectedAnalyserNodeTree,
                           File file)
add a vtk file node to the selected analyser node. Here the name correspond to the name of the file.


addVtkFileNode

public void addVtkFileNode(MeshTreeNode selectedTreeNode,
                           File file)

addReportFileNode

public void addReportFileNode(File file)
add a report file to the tree


setView

public void setView(InspectorTree tree)

contentsChanged

public void contentsChanged(ListDataEvent e)
Specified by:
contentsChanged in interface ListDataListener

intervalAdded

public void intervalAdded(ListDataEvent e)
Specified by:
intervalAdded in interface ListDataListener

intervalRemoved

public void intervalRemoved(ListDataEvent e)
Specified by:
intervalRemoved in interface ListDataListener


Copyright © 2013 Artenum. All Rights Reserved.