gui
Class DefaultMutableTreeNodeKatagory

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

public class DefaultMutableTreeNodeKatagory
extends javax.swing.tree.DefaultMutableTreeNode

See Also:
Serialized Form

Field Summary
 int ideal_value
           
 int is_value
           
 java.lang.String name
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
EMPTY_ENUMERATION
 
Constructor Summary
DefaultMutableTreeNodeKatagory(java.lang.String name, int percent)
          Constructs a node object for a category in the membrane model tree.
 
Method Summary
 int getIdeal_value()
          Returns the ideal value of the kategory.
 int getIs_value()
          Returns the is_value of the category node.
 java.lang.String getName()
          Returns the node name.
 void setIdeal_value(int ideal_value)
          Sets the ideal value of the kategory node.
 void setIs_value(int is_value)
          Sets the is_value of the category node.
 void setName(java.lang.String name)
          Sets the node name.
 void update_is_value(int add)
          Adds to the current percent value of the category an additional value (for example when adding a new protein to the component).
 
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

is_value

public int is_value

name

public java.lang.String name

ideal_value

public int ideal_value
Constructor Detail

DefaultMutableTreeNodeKatagory

public DefaultMutableTreeNodeKatagory(java.lang.String name,
                                      int percent)
Constructs a node object for a category in the membrane model tree.

Parameters:
name - name of the node.
percent - percent value of the protein, which should be first added to the component.
Method Detail

update_is_value

public void update_is_value(int add)
Adds to the current percent value of the category an additional value (for example when adding a new protein to the component).

Parameters:
add - new percent value to add.

getIs_value

public int getIs_value()
Returns the is_value of the category node.

Returns:
Returns the is_value.

setIs_value

public void setIs_value(int is_value)
Sets the is_value of the category node.

Parameters:
is_value - The is_value to set.

getName

public java.lang.String getName()
Returns the node name.

Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Sets the node name.

Parameters:
name - The name to set.

getIdeal_value

public int getIdeal_value()
Returns the ideal value of the kategory.

Returns:
Returns the ideal_value.

setIdeal_value

public void setIdeal_value(int ideal_value)
Sets the ideal value of the kategory node.

Parameters:
ideal_value - The ideal_value to set.