001 package org.LiveGraph.settings; 002 003 /** 004 * Defines a settings observer. 005 * 006 * <p style="font-size:smaller;">This product includes software developed by the 007 * <strong>LiveGraph</strong> project and its contributors.<br /> 008 * (<a href="http://www.live-graph.org" target="_blank">http://www.live-graph.org</a>)<br /> 009 * Copyright (c) 2007 G. Paperin.<br /> 010 * All rights reserved. 011 * </p> 012 * <p style="font-size:smaller;">File: SettingsObserver.java</p> 013 * <p style="font-size:smaller;">Redistribution and use in source and binary forms, with or 014 * without modification, are permitted provided that the following terms and conditions are met: 015 * </p> 016 * <p style="font-size:smaller;">1. Redistributions of source code must retain the above 017 * acknowledgement of the LiveGraph project and its web-site, the above copyright notice, 018 * this list of conditions and the following disclaimer.<br /> 019 * 2. Redistributions in binary form must reproduce the above acknowledgement of the 020 * LiveGraph project and its web-site, the above copyright notice, this list of conditions 021 * and the following disclaimer in the documentation and/or other materials provided with 022 * the distribution.<br /> 023 * 3. All advertising materials mentioning features or use of this software or any derived 024 * software must display the following acknowledgement:<br /> 025 * <em>This product includes software developed by the LiveGraph project and its 026 * contributors.<br />(http://www.live-graph.org)</em><br /> 027 * 4. All advertising materials distributed in form of HTML pages or any other technology 028 * permitting active hyper-links that mention features or use of this software or any 029 * derived software must display the acknowledgment specified in condition 3 of this 030 * agreement, and in addition, include a visible and working hyper-link to the LiveGraph 031 * homepage (http://www.live-graph.org). 032 * </p> 033 * <p style="font-size:smaller;">THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY 034 * OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 035 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 036 * THE AUTHORS, CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 037 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR 038 * IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 039 * </p> 040 * 041 * @author Greg Paperin (<a href="http://www.paperin.org" target="_blank">http://www.paperin.org</a>) 042 * @version {@value org.LiveGraph.LiveGraph#version} 043 */ 044 public interface SettingsObserver { 045 046 /** 047 * Called when a setting is changed. 048 * 049 * @param settings The settings object that was changed. 050 * @param info Is used to further specify the change. Usually this is a 051 * {@code String} containing the name of the changed setting. 052 */ 053 public void settingHasChanged(ObservableSettings settings, Object info); 054 055 }