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.


Field Summary
 
Fields inherited from interface ca.quine.jcommons.freemind.maputil.INodeApplicator
SEARCH_CONTINUE, SEARCH_STOP, SEARCH_TRIM
 
Constructor Summary
SetMarkToLevel()
           
 
Method Summary
 int apply(Node parentNode, Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetMarkToLevel

public SetMarkToLevel()
Method Detail

apply

public int apply(Node parentNode,
                 Node node)
Specified by:
apply in interface INodeApplicator