Graph Common

pl.psnc.graph.model.listener
Class ScenarioGraphViewListener

java.lang.Object
  extended by pl.psnc.graph.model.listener.ScenarioGraphViewListener
All Implemented Interfaces:
java.util.Observer

public class ScenarioGraphViewListener
extends java.lang.Object
implements java.util.Observer

The model graph view listener is Observers are notified when the size, position, color etc. of a cell view has changed. (Note: If the model's isAttributeStore returns true, then the view is bypassed, and all attributes are stored in the model.)

Author:
Dominik Stoklosa
Email address
osa@man.poznan.pl

Constructor Summary
ScenarioGraphViewListener(CustomGraph graph)
          Creates an instance of Scenario Graph Model Listener
 
Method Summary
 void update(java.util.Observable o, java.lang.Object arg)
          This method is called whenever the observed object is changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScenarioGraphViewListener

public ScenarioGraphViewListener(CustomGraph graph)
Creates an instance of Scenario Graph Model Listener

Parameters:
graph -
Method Detail

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
This method is called whenever the observed object is changed. An application calls an Observable object's notifyObservers method to have all the object's observers notified of the change.

Specified by:
update in interface java.util.Observer
Parameters:
o - the observable object.
arg - an argument passed to the notifyObservers method.

Graph Common

Copyright 2008 by VLAB Dominik Stoklosa