pedviz.view
Class LODHighlighter

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

public class LODHighlighter
extends java.lang.Object
implements NodeListener

This class provides methods for highlighting nodes dynamicly.

Author:
lukas forer

Field Summary
static int ANCESTORS
          All ancestors of a person.
static int MATERNAL
          Maternal lineage of a person.
static int MATERNAL_AND_PATERNAL
          Maternal and paternal lineage of a person.
static int PATERNAL
          Paternal lineage of a person.
static int SUCCESSORS
          All successors of a person.
static int SUCCESSORS_AND_ANCESTORS
          All successors and ancestors of a person.
 
Constructor Summary
LODHighlighter()
          Creates a new LODHighlighter object.
LODHighlighter(int mode)
          Create a new LODHighlighter object with the given mode.
 
Method Summary
 int getMode()
          Returns the mode.
 boolean isEnabled()
          Returns true, if the highlighter is enabled.
 void onNodeEvent(NodeEvent event)
           
 void setEnabled(boolean enabled)
          Enables or disables the highlighter.
 void setMode(int mode)
          Sets the mode.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MATERNAL

public static final int MATERNAL
Maternal lineage of a person.

See Also:
Constant Field Values

PATERNAL

public static final int PATERNAL
Paternal lineage of a person.

See Also:
Constant Field Values

MATERNAL_AND_PATERNAL

public static final int MATERNAL_AND_PATERNAL
Maternal and paternal lineage of a person.

See Also:
Constant Field Values

SUCCESSORS

public static final int SUCCESSORS
All successors of a person.

See Also:
Constant Field Values

ANCESTORS

public static final int ANCESTORS
All ancestors of a person. (default)

See Also:
Constant Field Values

SUCCESSORS_AND_ANCESTORS

public static final int SUCCESSORS_AND_ANCESTORS
All successors and ancestors of a person.

See Also:
Constant Field Values
Constructor Detail

LODHighlighter

public LODHighlighter()
Creates a new LODHighlighter object. The default mode is ANCESTORS.


LODHighlighter

public LODHighlighter(int mode)
Create a new LODHighlighter object with the given mode.

Parameters:
mode -
Method Detail

onNodeEvent

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

getMode

public int getMode()
Returns the mode.

Returns:
the mode.

setMode

public void setMode(int mode)
Sets the mode.

Parameters:
mode - the mode.

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 -