|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.clustermap.panel.request.History
public class History
History keeps track of a history of Graphs normally shown in a ClusterMap and allows to retrieve previous graphs.
| Constructor Summary | |
|---|---|
History()
|
|
| Method Summary | |
|---|---|
void |
addItem(Collection<Classification> classifications,
Graph graph)
Add an item to the history, right after the current item. |
void |
addListener(HistoryListener listener)
Registers a new HistoryListener at this History. |
void |
clear()
This brings the History back into its original state, i.e. |
Collection<Classification> |
getCurrentClassifications()
Returns the set of Classifications represented by the current history item. |
ClusterModel |
getCurrentClusterModel()
Returns the ClusterModel represented by the current history item. |
Graph |
getCurrentGraph()
Returns the Graph represented by the current history item. |
List |
getItems()
|
void |
goToNext()
Lets the current item be the next item in the history. |
void |
goToPrevious()
Lets the current item be the previous item in the history. |
boolean |
hasNext()
Returns whether the current item has a next item in the history. |
boolean |
hasPrevious()
Returns whether the current item has a previous item in the history. |
boolean |
isEmpty()
|
void |
removeListener(HistoryListener listener)
Removes a HistoryListener from this History. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public History()
| Method Detail |
|---|
public void addItem(Collection<Classification> classifications,
Graph graph)
public boolean hasPrevious()
public boolean hasNext()
public void goToPrevious()
throws IllegalStateException
IllegalStateException - when there is no previous item.
public void goToNext()
throws IllegalStateException
IllegalStateException - when there is no next item.
public Collection<Classification> getCurrentClassifications()
throws IllegalStateException
IllegalStateException - when there is no current item.
public ClusterModel getCurrentClusterModel()
throws IllegalStateException
IllegalStateException - when there is no current item.
public Graph getCurrentGraph()
throws IllegalStateException
IllegalStateException - when there is no current item.public void clear()
public List getItems()
public boolean isEmpty()
public void addListener(HistoryListener listener)
public void removeListener(HistoryListener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||