gui
Class DefaultMutableTreeNodeProtein

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by gui.DefaultMutableTreeNodeProtein
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class DefaultMutableTreeNodeProtein
extends javax.swing.tree.DefaultMutableTreeNode

See Also:
Serialized Form

Field Summary
 java.lang.String file
           
 int min_percent
           
 java.lang.String nodeName
           
 java.lang.String pdbName
           
 int percent
           
 Protein protein
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
EMPTY_ENUMERATION
 
Constructor Summary
DefaultMutableTreeNodeProtein(java.lang.String nodeName, java.lang.String pdbName, int percent)
          Creates a node for a protein in the membrane model tree.
 
Method Summary
 java.lang.String getFile()
          Returns filepath of the corresponding pdb file of the protein.
 int getMin_percent()
          Returns the minimal percent value for the protein at the node in lipid membrane.
 java.lang.String getNodeName()
          Returns the name of the node in the tree.
 java.lang.String getPDBName()
          Returns the pdb code of the corresponding protein.
 int getPercent()
          Returns the percent value of the protein in the membrane.
 Protein getProtein()
          Returns the protein at this node.
 void setFile(java.lang.String file)
          Sets the filepath of the corresponding pdb file of the protein.
 void setMin_percent(int min_percent)
          Sets the minimal percent value for the protein at the node in lipid membrane.
 void setNodeName(java.lang.String nodeName)
          Sets the node name of the node in the tree.
 void setPDBName(java.lang.String name)
          Sets the pdbname of the corresponding protein object.
 void setPercent(int a)
          Sets the percent value of the protein in the membrane.
 void setProtein(Protein protein)
          Sets the protein object to the node.
 
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, 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, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

percent

public int percent

file

public java.lang.String file

pdbName

public java.lang.String pdbName

nodeName

public java.lang.String nodeName

protein

public Protein protein

min_percent

public int min_percent
Constructor Detail

DefaultMutableTreeNodeProtein

public DefaultMutableTreeNodeProtein(java.lang.String nodeName,
                                     java.lang.String pdbName,
                                     int percent)
Creates a node for a protein in the membrane model tree.

Parameters:
nodeName - node name of the protein node.
pdbName - pdb code of the protein node.
percent - percent value of the protein in the membrane.
Method Detail

getPercent

public int getPercent()
Returns the percent value of the protein in the membrane.

Returns:
Returns the percent.

setPercent

public void setPercent(int a)
Sets the percent value of the protein in the membrane.

Parameters:
a - The percent to set.

setFile

public void setFile(java.lang.String file)
Sets the filepath of the corresponding pdb file of the protein.

Parameters:
file - The file to set.

getFile

public java.lang.String getFile()
Returns filepath of the corresponding pdb file of the protein.

Returns:
Returns the file.

setPDBName

public void setPDBName(java.lang.String name)
Sets the pdbname of the corresponding protein object.

Parameters:
name - The name to set.

getPDBName

public java.lang.String getPDBName()
Returns the pdb code of the corresponding protein.

Returns:
Returns pdbName.

setProtein

public void setProtein(Protein protein)
Sets the protein object to the node.

Parameters:
protein - The protein to set.

getProtein

public Protein getProtein()
Returns the protein at this node.

Returns:
Returns the protein.

getNodeName

public java.lang.String getNodeName()
Returns the name of the node in the tree.

Returns:
Returns the nodeName.

setNodeName

public void setNodeName(java.lang.String nodeName)
Sets the node name of the node in the tree.

Parameters:
nodeName - The nodeName to set.

getMin_percent

public int getMin_percent()
Returns the minimal percent value for the protein at the node in lipid membrane.

Returns:
Returns the min_percent.

setMin_percent

public void setMin_percent(int min_percent)
Sets the minimal percent value for the protein at the node in lipid membrane.

Parameters:
min_percent - The min_percent to set.