info.aduna.clustermap.panel.request
Class RequestHandler

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

public class RequestHandler
extends Object

RequestHandler is capable of registering and handling a queue of update requests on a ClusterMap. The requests are instances of subclasses of Request. RequestHandler also provides history functionality, mimicking typical web browser behaviour. RequestHandler synchronized its operation with the animations of the GraphPanel that is passed to it.


Nested Class Summary
 class RequestHandler.QueueThread
          A QueueThread is responsible for picking up the GraphRequests from the queue and processing them accordingly.
 
Constructor Summary
RequestHandler(GraphPanel panel)
           
 
Method Summary
 void dispose()
          Disposes of this RequestHandler.
 GraphPanel getGraphPanel()
           
 History getHistory()
          Returns the History of this RequestHandler.
 void queue(Request request)
          Adds the specified Request at the end of the queue.
 void reset()
          Brings the RequestHandler back into its original state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestHandler

public RequestHandler(GraphPanel panel)
Method Detail

dispose

public void dispose()
Disposes of this RequestHandler. This stops the queue-handling thread. Afterwards this RequestHandler is no longer usable.


getGraphPanel

public GraphPanel getGraphPanel()

getHistory

public History getHistory()
Returns the History of this RequestHandler.


queue

public void queue(Request request)
Adds the specified Request at the end of the queue.


reset

public void reset()
Brings the RequestHandler back into its original state. This is for example done when a new Classification tree is loaded. It removes all current requests from the queue and clears the history.



Copyright © 1997-2008 Aduna. All Rights Reserved.