ca.quine.jcommons.freemind.maputil
Class SetMarkToLevel
java.lang.Object
|
+--ca.quine.jcommons.freemind.maputil.SetMarkToLevel
- All Implemented Interfaces:
- INodeApplicator
- public class SetMarkToLevel
- extends Object
- implements INodeApplicator
Sets the mark object on each node to an Integer
indicating the
distance from the root node. The root node is 0, its children are 1, etc.
See ApplicatorTests.testMarkLevelAndClearAllMarks()
for example usage.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetMarkToLevel
public SetMarkToLevel()
apply
public int apply(Node parentNode,
Node node)
- Specified by:
apply
in interface INodeApplicator