ora.gui.helper
Class PathFinder
java.lang.Object
ora.gui.helper.PathFinder
public class PathFinder
- extends java.lang.Object
- Author:
- Kristian Martin This class helps finding the path between two
elements/objects
Constructor Summary |
PathFinder(int maxNumberOfWays)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathFinder
public PathFinder(int maxNumberOfWays)
findRootPath
public java.util.ArrayList findRootPath(ObjectElement source)
findParentPath
public java.util.ArrayList findParentPath(ObjectElement source,
ObjectElement target)
- Finds parentpath between source and target..
- Parameters:
source
- childtarget
- parent
- Returns:
- list
findChildPath
public java.util.ArrayList findChildPath(ObjectElement source,
ObjectElement target)
- Finds childpath between source and target..
- Parameters:
source
- childtarget
- parent
- Returns:
- list