info.aduna.clustermap.panel.request
Class HistoryItem

java.lang.Object
  extended by info.aduna.clustermap.panel.request.HistoryItem

public class HistoryItem
extends Object

A HistoryItem represents the content of a ClusterMap at a specific moment in time. It contains the list of Classifications visualised at that moment and a compressed Graph (the real Graph is replaced by a different datastructure that is more memory-efficient but that allows to retrieve the original Graph, including its layout).


Constructor Summary
HistoryItem(Collection<Classification> classifications, Graph graph)
          Create a new HistoryItem.
 
Method Summary
 Collection<Classification> getClassifications()
          Returns the set of Classifications of this HistoryItem.
 Graph getGraph(ClusterModel model)
          Returns the Graph cached by this HistoryItem, using the datamodel objects from the specified ClusterModel.
 ClusterModel getModel()
          Returns a ClusterModel based on the Classifications of this HistoryItem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistoryItem

public HistoryItem(Collection<Classification> classifications,
                   Graph graph)
Create a new HistoryItem. Both arguments should not be null.

Method Detail

getClassifications

public Collection<Classification> getClassifications()
Returns the set of Classifications of this HistoryItem.


getModel

public ClusterModel getModel()
Returns a ClusterModel based on the Classifications of this HistoryItem.


getGraph

public Graph getGraph(ClusterModel model)
Returns the Graph cached by this HistoryItem, using the datamodel objects from the specified ClusterModel. The compressed Graph is decompressed by this method.



Copyright © 1997-2008 Aduna. All Rights Reserved.