|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Defines the requirements for an object that can be used as a tree node in a MagnetView
A MagnetNode encapsulates a userObject which represent the
data itself.
| Method Summary | |
int |
getForceField()
Returns the force of the field generated by this magnet. |
java.awt.Point |
getOrigin()
Returns the orgin of this MagnetNode instance. |
float |
getSimilarityWith(MagnetNode aMagnetNode)
Returns the similarity with aMagnetNode |
void |
setForceField(int force)
Sets the force of the field generated by this magnet |
void |
setOrigin(java.awt.Point newOrigin)
Sets the orgin of this MagnetNode instance. |
void |
setTargetOrigin(java.awt.Point newTargetOrigin)
Sets the target orgin of this MagnetNode instance. |
void |
setUserObject(java.lang.Object object)
Resets the user object of the receiver to object. |
| Method Detail |
public java.awt.Point getOrigin()
MagnetNode instance.
MagnetNode instance.public void setOrigin(java.awt.Point newOrigin)
MagnetNode instance. Using this method
will set the origin of the node immediately, while using setTargetOrigin(java.awt.Point)
would do it progressively at some given speed.
newOrigin - the new origin of this MagnetNode instance.public void setTargetOrigin(java.awt.Point newTargetOrigin)
MagnetNode instance. Using this method
will set the origin of the node progressively, while using setOrigin(java.awt.Point)
would do it immediately.
newTargetOrigin - the target origin of this MagnetNode instance.public void setForceField(int force)
force - the force of the fieldpublic int getForceField()
public float getSimilarityWith(MagnetNode aMagnetNode)
aMagnetNode
aMagnetNode - a aMagnetNode.
MagnetNode instance and aMagnetNode.public void setUserObject(java.lang.Object object)
object - the object that represents the data of this node.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||