/* ========================
* JSynoptic : a free Synoptic editor
* ========================
*
* Project Info: http://jsynoptic.sourceforge.net/index.html
*
* This program is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*
* (C) Copyright 2001-2008, by :
* Corporate:
* EADS Astrium
* Individual:
* Claude Cazenave
*
* $Id: DataEdit.java,v 1.1 2008/10/23 17:21:05 cazenave Exp $
*
* Changes
* -------
* 23 janv. 08 : Initial public release
*
*/
package jsynoptic.plugins.java3d.edit;
import jsynoptic.plugins.java3d.DataAnimator;
import jsynoptic.plugins.java3d.Values;
public class DataEdit extends
PropertyEdit<DataAnimator, Values> {
public static final String Default = "Default";
public DataEdit(DataAnimator object) {
super(object, Default);
}
public Values getOldValues() {
return new Values(_oldValue);
}
public void setNewValues(Values v) {
_newValue=v;
compare();
if (_changed){
setPropertyValue(_newValue);
}
}
@Override
public Values getPropertyValue() {
return ((DataAnimator.Data)_object.getData()).get();
}
@Override
public void setPropertyValue(Values value) {
((DataAnimator.Data)_object.getData()).set(value);
}
@Override
public String getDisplayClassName() {
return "jsynoptic.plugins.java3d.panels.DataAnimatorSelector";
}
}