LiveGraph
data visualisation and analysis framework

org.LiveGraph.settings
Class ObservableSettings

java.lang.Object
  extended by org.LiveGraph.settings.ObservableSettings
All Implemented Interfaces:
EventProducer
Direct Known Subclasses:
DataFileSettings, DataSeriesSettings, GraphSettings

public class ObservableSettings
extends java.lang.Object
implements EventProducer

Base class for all settings classes which can hadle observers to listen to settings events. This class handles all observer and event handling.

This product includes software developed by the LiveGraph project and its contributors.
(http://www.live-graph.org)
Copyright (c) 2007-2008 G. Paperin.
All rights reserved.

File: ObservableSettings.java

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following terms and conditions are met:

1. Redistributions of source code must retain the above acknowledgement of the LiveGraph project and its web-site, the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above acknowledgement of the LiveGraph project and its web-site, the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. All advertising materials mentioning features or use of this software or any derived software must display the following acknowledgement:
This product includes software developed by the LiveGraph project and its contributors.
(http://www.live-graph.org)

4. All advertising materials distributed in form of HTML pages or any other technology permitting active hyper-links that mention features or use of this software or any derived software must display the acknowledgment specified in condition 3 of this agreement, and in addition, include a visible and working hyper-link to the LiveGraph homepage (http://www.live-graph.org).

THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS, CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version:
"2.0.beta01"
Author:
Greg Paperin (http://www.paperin.org)

Constructor Summary
ObservableSettings()
           
 
Method Summary
 Event<SettingsEvent> checkObservers(SettingsEvent eventType, boolean info)
           
 Event<SettingsEvent> checkObservers(SettingsEvent eventType, boolean infoBoolean, long infoLong, double infoDouble, java.lang.Object infoObject)
           
 Event<SettingsEvent> checkObservers(SettingsEvent eventType, double info)
           
 Event<SettingsEvent> checkObservers(SettingsEvent eventType, long info)
           
 Event<SettingsEvent> checkObservers(SettingsEvent eventType, java.lang.Object info)
           
 boolean eventProcessingException(Event<? extends EventType> event, EventProcessingException exception)
          Objects of this class do not handle eventProcessingException notofications.
 void eventProcessingFinished(Event<? extends EventType> event)
           
 void notifyObservers(Event<? extends SettingsEvent> event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObservableSettings

public ObservableSettings()
Method Detail

eventProcessingFinished

public void eventProcessingFinished(Event<? extends EventType> event)
Specified by:
eventProcessingFinished in interface EventProducer

eventProcessingException

public boolean eventProcessingException(Event<? extends EventType> event,
                                        EventProcessingException exception)
Objects of this class do not handle eventProcessingException notofications.

Specified by:
eventProcessingException in interface EventProducer
Parameters:
event - Ignored.
exception - Never actually thrown.
Returns:
false.

notifyObservers

public void notifyObservers(Event<? extends SettingsEvent> event)

checkObservers

public Event<SettingsEvent> checkObservers(SettingsEvent eventType,
                                           boolean info)
                                    throws UncheckedEventProcessingException
Throws:
UncheckedEventProcessingException

checkObservers

public Event<SettingsEvent> checkObservers(SettingsEvent eventType,
                                           long info)
                                    throws UncheckedEventProcessingException
Throws:
UncheckedEventProcessingException

checkObservers

public Event<SettingsEvent> checkObservers(SettingsEvent eventType,
                                           double info)
                                    throws UncheckedEventProcessingException
Throws:
UncheckedEventProcessingException

checkObservers

public Event<SettingsEvent> checkObservers(SettingsEvent eventType,
                                           java.lang.Object info)
                                    throws UncheckedEventProcessingException
Throws:
UncheckedEventProcessingException

checkObservers

public Event<SettingsEvent> checkObservers(SettingsEvent eventType,
                                           boolean infoBoolean,
                                           long infoLong,
                                           double infoDouble,
                                           java.lang.Object infoObject)
                                    throws UncheckedEventProcessingException
Throws:
UncheckedEventProcessingException

LiveGraph
data visualisation and analysis framework