pedviz.view
Class PathHighlighter

java.lang.Object
  extended by pedviz.view.PathHighlighter
All Implemented Interfaces:
NodeListener

public class PathHighlighter
extends java.lang.Object
implements NodeListener

This class checks if exists a path between two persons and highlights it.

Author:
lukas forer

Constructor Summary
PathHighlighter()
          Creates a new PathHighlighter object.
 
Method Summary
 boolean isEnabled()
          Returns true, if the highlighter is enabled.
 void onNodeEvent(NodeEvent event)
           
 void setEnabled(boolean enabled)
          Enables or disables the highlighter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathHighlighter

public PathHighlighter()
Creates a new PathHighlighter object.

Method Detail

onNodeEvent

public void onNodeEvent(NodeEvent event)
Specified by:
onNodeEvent in interface NodeListener

isEnabled

public boolean isEnabled()
Returns true, if the highlighter is enabled.

Returns:
true, if the highlighter is enabled.

setEnabled

public void setEnabled(boolean enabled)
Enables or disables the highlighter.

Parameters:
enabled -