|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wilmascope.patterns.Prototype
org.wilmascope.forcelayout.Force
public abstract class Force
Super class that any force must extend
Field Summary | |
---|---|
protected float |
strengthConstant
The strength of the force |
Constructor Summary | |
---|---|
protected |
Force(float strengthConstant,
java.lang.String name)
|
Method Summary | |
---|---|
abstract void |
calculate()
Calculate the position deltas due to this force |
float |
getStrengthConstant()
Query the current strength constant |
abstract void |
setCluster(Cluster root)
|
void |
setStrengthConstant(float strengthConstant)
Set the strength constant for this force |
java.lang.String |
toString()
Return value of strengthConstant as a string |
Methods inherited from class org.wilmascope.patterns.Prototype |
---|
clone, getTypeName, setTypeName |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected float strengthConstant
Constructor Detail |
---|
protected Force(float strengthConstant, java.lang.String name)
Method Detail |
---|
public abstract void calculate()
v
- The graph elements to which this force appliespublic void setStrengthConstant(float strengthConstant)
strengthConstant
- new strength constant valuepublic float getStrengthConstant()
public java.lang.String toString()
toString
in class java.lang.Object
public abstract void setCluster(Cluster root)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |