info.aduna.clustermap.render
Class SelectionHandler

java.lang.Object
  extended by info.aduna.clustermap.render.SelectionHandler

public class SelectionHandler
extends Object

A SelectionHandler changes the highlight levels of the Renderers in a GraphRenderer in order to indicate the selection of one of the Graph members.


Constructor Summary
SelectionHandler()
           
 
Method Summary
 ArrayList<Object> getHighlightedObjects()
          Returns the set of all Objects that became highlighted during the last select method.
 ArrayList<Object> getSelection()
          Returns the set of currently selected objects.
 void select(Collection<?> objects, GraphRenderer renderer)
          Select the specified set of objects.
 void selectRenderers(Collection<VertexRenderer> renderers, GraphRenderer graphRenderer)
          Selects the objects represented by the specified Renderers.
 void updateHighlighting(GraphRenderer renderer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionHandler

public SelectionHandler()
Method Detail

selectRenderers

public void selectRenderers(Collection<VertexRenderer> renderers,
                            GraphRenderer graphRenderer)
Selects the objects represented by the specified Renderers. Only ClassificationRenderers, ClusterRenderers and ObjectRenderers are handled, all other Renderers are ignored.


select

public void select(Collection<?> objects,
                   GraphRenderer renderer)
Select the specified set of objects.


getSelection

public ArrayList<Object> getSelection()
Returns the set of currently selected objects.


getHighlightedObjects

public ArrayList<Object> getHighlightedObjects()
Returns the set of all Objects that became highlighted during the last select method.


updateHighlighting

public void updateHighlighting(GraphRenderer renderer)


Copyright © 1997-2008 Aduna. All Rights Reserved.