main
Class AffectorTemplate
java.lang.Object
main.AffectorTemplate
- public class AffectorTemplate
- extends java.lang.Object
Method Summary |
void |
calculateDefaultIntersect(Network network)
|
Affector |
getAffector()
|
java.lang.String |
getAffectorName()
|
java.util.Enumeration |
getAffectorParameters()
This function returns an enumeration of a vector containing the numbers
of each of the affectors parameters (as Integers). |
java.util.Enumeration |
getEnhancerTemplates()
Returns an Enumeration on the enhancerTemplates Vector. |
int |
getIntersectX()
|
int |
getIntersectY()
|
java.lang.String[] |
getNodeNames()
This function is here so that viewers can examine an affector. |
int |
getNumParameters()
Returns the number of parameters that this affector has. |
AffectorTemplate |
isPositionInside(int x,
int y,
int radius)
|
Affector |
makeAffector(Cell cell,
int side)
|
void |
moveIntersectPos(int move_x,
int move_y)
|
void |
paint(java.awt.Graphics g0,
int cur_node_num,
Network network,
AffectorTemplate hilight_aff)
|
protected void |
paintOutgoingLines(java.awt.Graphics g0,
Network network,
int intersect_x,
int intersect_y,
NodeTemplate node,
int cur_node_num,
AffectorTemplate hilight_aff)
|
void |
readSetup(BetterTokenizer tokenizer,
java.lang.String affector_name)
|
void |
setIntersectX(int new_x)
|
void |
setIntersectY(int new_y)
|
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 |
affectorType
public int affectorType
AffectorTemplate
public AffectorTemplate(java.lang.String nodename)
makeAffector
public Affector makeAffector(Cell cell,
int side)
throws java.lang.Exception
- Throws:
java.lang.Exception
getEnhancerTemplates
public java.util.Enumeration getEnhancerTemplates()
- Returns an Enumeration on the enhancerTemplates Vector. If Enhancers are
themselves Enhancers, then their lists are included.
readSetup
public void readSetup(BetterTokenizer tokenizer,
java.lang.String affector_name)
throws java.lang.Exception
- Throws:
java.lang.Exception
paint
public void paint(java.awt.Graphics g0,
int cur_node_num,
Network network,
AffectorTemplate hilight_aff)
paintOutgoingLines
protected void paintOutgoingLines(java.awt.Graphics g0,
Network network,
int intersect_x,
int intersect_y,
NodeTemplate node,
int cur_node_num,
AffectorTemplate hilight_aff)
throws java.lang.Exception
- Throws:
java.lang.Exception
calculateDefaultIntersect
public void calculateDefaultIntersect(Network network)
getIntersectX
public int getIntersectX()
setIntersectX
public void setIntersectX(int new_x)
getIntersectY
public int getIntersectY()
setIntersectY
public void setIntersectY(int new_y)
moveIntersectPos
public void moveIntersectPos(int move_x,
int move_y)
isPositionInside
public AffectorTemplate isPositionInside(int x,
int y,
int radius)
getAffectorName
public java.lang.String getAffectorName()
getAffector
public Affector getAffector()
getNodeNames
public java.lang.String[] getNodeNames()
- This function is here so that viewers can examine an affector. It should
not be used by any of the modeling classes themselves.
getNumParameters
public int getNumParameters()
- Returns the number of parameters that this affector has.
getAffectorParameters
public java.util.Enumeration getAffectorParameters()
- This function returns an enumeration of a vector containing the numbers
of each of the affectors parameters (as Integers). This is here
so that viewers can examine and change the values of an Affector's
parameters. It should not be used by any of the modeling classes.
toString
public void toString(java.io.PrintWriter pw,
java.lang.String indent)