Search this API

y.view
Class Selections.SelectionStateObserver

java.lang.Object
  extended by y.view.Selections.SelectionStateObserver
All Implemented Interfaces:
java.util.EventListener, GraphListener, Graph2DSelectionListener
Enclosing class:
Selections

public static class Selections.SelectionStateObserver
extends java.lang.Object
implements Graph2DSelectionListener, GraphListener

Base class that can be subclassed to receive notification about changes in the selection state of a Graph2D.

 

Constructor Summary
Selections.SelectionStateObserver()
           
 
Method Summary
 void onGraph2DSelectionEvent(Graph2DSelectionEvent e)
          Implementation of interface Graph2DSelectionListener.
 void onGraphEvent(GraphEvent e)
          Implementation of interface GraphListener.
protected  void updateSelectionState(Graph2D graph)
          Method that will be invoked whenever there is an indication that the selection state of the given graph has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Selections.SelectionStateObserver

public Selections.SelectionStateObserver()
Method Detail

onGraph2DSelectionEvent

public void onGraph2DSelectionEvent(Graph2DSelectionEvent e)
Implementation of interface Graph2DSelectionListener.

Specified by:
onGraph2DSelectionEvent in interface Graph2DSelectionListener

onGraphEvent

public void onGraphEvent(GraphEvent e)
Implementation of interface GraphListener.

Specified by:
onGraphEvent in interface GraphListener

updateSelectionState

protected void updateSelectionState(Graph2D graph)
Method that will be invoked whenever there is an indication that the selection state of the given graph has changed.


© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.