pedviz.algorithms
Class SameParents

java.lang.Object
  extended by pedviz.algorithms.SameParents
All Implemented Interfaces:
java.lang.Runnable, Algorithm

public class SameParents
extends java.lang.Object
implements Algorithm

This class clusters all nodes with the same parents. The cluster is a dummy node and his edges are alle edges from his sub nodes.This way of clustering has enabled us to get a visual compression (one line from parents to all children).

Version:
0.1
Author:
Lukas Forer

Constructor Summary
SameParents(java.util.ArrayList<Graph> graphs)
          Creates the SameParents algorithm with the given collection of Graph objects.
SameParents(Graph graph)
          Creates the SameParents algorithm with the given Graph object.
 
Method Summary
 void addChangeListener(javax.swing.event.ChangeListener l)
          Registers a ChangeListener.
 java.lang.String getMessage()
          Returns a short description of the algorithm.
 int getPercentComplete()
          Returns the progress in percents from 0 to 100
 void run()
          Starts the algorithm.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SameParents

public SameParents(Graph graph)
Creates the SameParents algorithm with the given Graph object.

Parameters:
graph -

SameParents

public SameParents(java.util.ArrayList<Graph> graphs)
Creates the SameParents algorithm with the given collection of Graph objects.

Parameters:
graph -
Method Detail

getMessage

public java.lang.String getMessage()
Description copied from interface: Algorithm
Returns a short description of the algorithm.

Specified by:
getMessage in interface Algorithm
Returns:
a short description of the algorithm

run

public void run()
Description copied from interface: Algorithm
Starts the algorithm.

Specified by:
run in interface java.lang.Runnable
Specified by:
run in interface Algorithm

getPercentComplete

public int getPercentComplete()
Description copied from interface: Algorithm
Returns the progress in percents from 0 to 100

Specified by:
getPercentComplete in interface Algorithm
Returns:
the progress in percents

addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener l)
Description copied from interface: Algorithm
Registers a ChangeListener. It will be notified about the progress of the algorithm.

Specified by:
addChangeListener in interface Algorithm
Parameters:
l - Change