FreeHEP API
Version current

hep.aida.ref.event
Class ObserverAdapter

java.lang.Object
  extended byjava.util.Observable
      extended byhep.aida.ref.event.ObserverAdapter
All Implemented Interfaces:
AIDAListener
Direct Known Subclasses:
hep.aida.ref.plotter.adapter.AIDACloudAdapter, AIDADataPointSetAdapter, hep.aida.ref.plotter.adapter.AIDAHistogramAdapter, AIDAProfileAdapter

public class ObserverAdapter
extends Observable
implements AIDAListener

An ObserverAdapter can be used as a base class for class that wants to act as both AIDAListener and Observable, and relay things it observers to its Observers.

Source Code:
ObserverAdapter.java

Field Summary
protected  IsObservable histo
           
protected  Object update
           
 
Constructor Summary
ObserverAdapter()
           
ObserverAdapter(Object obs)
           
 
Method Summary
 void addObserver(Observer o)
           
 void clearObservable()
           
 void deleteObserver(Observer o)
           
 void deleteObservers()
           
 IsObservable getObservable()
           
 void setObservable(IsObservable newObs)
           
protected  void setValid()
           
 void stateChanged(EventObject e)
           
 
Methods inherited from class java.util.Observable
clearChanged, countObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

histo

protected IsObservable histo

update

protected Object update
Constructor Detail

ObserverAdapter

public ObserverAdapter()

ObserverAdapter

public ObserverAdapter(Object obs)
Method Detail

setObservable

public void setObservable(IsObservable newObs)

clearObservable

public void clearObservable()

getObservable

public IsObservable getObservable()

setValid

protected void setValid()

addObserver

public void addObserver(Observer o)

deleteObserver

public void deleteObserver(Observer o)

deleteObservers

public void deleteObservers()

stateChanged

public void stateChanged(EventObject e)
Specified by:
stateChanged in interface AIDAListener

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.