main
Class NodeTemplate

java.lang.Object
  extended bymain.NodeTemplate

public class NodeTemplate
extends java.lang.Object


Field Summary
static int COMPLEX
           
static int INPUT
           
static int POSITION_NOT_SET
           
static int PROTEIN
           
static int RATIO
           
static int RNA
           
static int STEADYSTATE
           
static int SUM
           
static int WEIGHTEDSUM
           
 
Constructor Summary
NodeTemplate(java.lang.String name, int num)
           
 
Method Summary
 void addAffector(AffectorTemplate aff)
           
 void affectorsToString(java.io.PrintWriter pw, java.lang.String indent)
           
 java.util.Vector getAffectors()
           
 java.awt.Color getColor()
           
 javax.swing.ImageIcon getIcon()
          Returns the ImagIcon that is used to represnt this type of node for various editors and viewers.
 java.lang.String getName()
           
 int getNodeNum()
           
 int getNumAffectors()
           
 boolean getShow()
           
 int getType()
           
 int getXPos()
           
 int getYPos()
           
 float getYScale()
           
protected  void loadParameter(java.lang.String info, BetterTokenizer tokenizer)
           
 Node makeNode()
           
 void readSetup(BetterTokenizer tokenizer)
           
 void setCalculatorNode(boolean b)
           
 void setColor(java.awt.Color color)
           
 void setName(java.lang.String name)
           
 void setNodeNum(int num)
           
 void setShow(boolean flag)
           
 void setType(int node_type)
           
 void setXPos(int x)
           
 void setYPos(int y)
           
 void setYScale(float scale)
           
 void toString(java.io.PrintWriter pw, java.lang.String indent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RNA

public static final int RNA
See Also:
Constant Field Values

PROTEIN

public static final int PROTEIN
See Also:
Constant Field Values

COMPLEX

public static final int COMPLEX
See Also:
Constant Field Values

INPUT

public static final int INPUT
See Also:
Constant Field Values

SUM

public static final int SUM
See Also:
Constant Field Values

RATIO

public static final int RATIO
See Also:
Constant Field Values

WEIGHTEDSUM

public static final int WEIGHTEDSUM
See Also:
Constant Field Values

STEADYSTATE

public static final int STEADYSTATE
See Also:
Constant Field Values

POSITION_NOT_SET

public static final int POSITION_NOT_SET
See Also:
Constant Field Values
Constructor Detail

NodeTemplate

public NodeTemplate(java.lang.String name,
                    int num)
Method Detail

addAffector

public void addAffector(AffectorTemplate aff)

makeNode

public Node makeNode()

getShow

public boolean getShow()

setShow

public void setShow(boolean flag)

getColor

public java.awt.Color getColor()

setColor

public void setColor(java.awt.Color color)

getType

public int getType()

setType

public void setType(int node_type)

getYScale

public float getYScale()

setYScale

public void setYScale(float scale)

getXPos

public int getXPos()

setXPos

public void setXPos(int x)

getYPos

public int getYPos()

setYPos

public void setYPos(int y)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getNodeNum

public int getNodeNum()

setNodeNum

public void setNodeNum(int num)

setCalculatorNode

public void setCalculatorNode(boolean b)

getIcon

public javax.swing.ImageIcon getIcon()
Returns the ImagIcon that is used to represnt this type of node for various editors and viewers.

Returns:
ImageIcon - The icon.

getAffectors

public java.util.Vector getAffectors()

getNumAffectors

public int getNumAffectors()

readSetup

public void readSetup(BetterTokenizer tokenizer)
               throws java.lang.Exception
Throws:
java.lang.Exception

loadParameter

protected void loadParameter(java.lang.String info,
                             BetterTokenizer tokenizer)
                      throws java.lang.Exception
Throws:
java.lang.Exception

toString

public void toString(java.io.PrintWriter pw,
                     java.lang.String indent)

affectorsToString

public void affectorsToString(java.io.PrintWriter pw,
                              java.lang.String indent)