org.keridwen.modelling.mesh.inspector.core
Class AnalyserTreeNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by org.keridwen.modelling.mesh.inspector.core.AnalyserTreeNode
All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode, DefaultTreeNode

public class AnalyserTreeNode
extends DefaultMutableTreeNode
implements DefaultTreeNode

Node in the model of the JFreeMeshInspector control tree (GUI) corresponding to an analyser object. An analyser object may be linked to this object.

Author:
J.Forest
See Also:
Serialized Form

Field Summary
protected  String name
           
protected  AnalyserUIPanel uiPanel
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
AnalyserTreeNode(String name, MeshAnalyserInterface analyser)
          Default constructor.
 
Method Summary
 com.artenum.penelope.mesh.util.MeshAnalyser getAnalyser()
          return the linked analyser.
 String getName()
          return the name of the tree node.
 JComponent getUiPanel()
           
 void printName()
          print the name of the tree node.
 void setAnalyser(com.artenum.penelope.mesh.util.MeshAnalyser mesh)
          set the linked analyser object.
 void setName(String name)
          set the name of the node.
 void setUIPanel(JComponent uiPanel)
           
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.swing.tree.MutableTreeNode
insert, remove, remove, removeFromParent, setParent, setUserObject
 
Methods inherited from interface javax.swing.tree.TreeNode
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
 

Field Detail

uiPanel

protected AnalyserUIPanel uiPanel

name

protected String name
Constructor Detail

AnalyserTreeNode

public AnalyserTreeNode(String name,
                        MeshAnalyserInterface analyser)
Default constructor.

Parameters:
name - of the node.
linked - analyser.
Method Detail

printName

public void printName()
print the name of the tree node.


getName

public String getName()
return the name of the tree node.

Specified by:
getName in interface DefaultTreeNode

setName

public void setName(String name)
set the name of the node.

Parameters:
name -

getAnalyser

public com.artenum.penelope.mesh.util.MeshAnalyser getAnalyser()
return the linked analyser.

Returns:

setAnalyser

public void setAnalyser(com.artenum.penelope.mesh.util.MeshAnalyser mesh)
set the linked analyser object.

Parameters:
mesh -

getUiPanel

public JComponent getUiPanel()
Specified by:
getUiPanel in interface DefaultTreeNode

setUIPanel

public void setUIPanel(JComponent uiPanel)
Specified by:
setUIPanel in interface DefaultTreeNode


Copyright © 2013 Artenum. All Rights Reserved.