Package jsynoptic.plugins.java3d.edit

Source Code of jsynoptic.plugins.java3d.edit.TransformDataEdit

/* ========================
* 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-2007, by :
*     Corporate:
*         EADS Astrium
*     Individual:
*         Claude Cazenave
*
* $Id: TransformDataEdit.java,v 1.3 2008/10/23 17:21:05 cazenave Exp $
*
* Changes
* -------
* 23 janv. 08  : Initial public release
*
*/
package jsynoptic.plugins.java3d.edit;

import jsynoptic.plugins.java3d.TransformAnimator;
import jsynoptic.plugins.java3d.TransformData;
import jsynoptic.plugins.java3d.TransformData.TrValues;

public class TransformDataEdit extends
        PropertyEdit<TransformAnimator, TransformData.TrValues> {

    public static final String Transform = "TransformData";

    public TransformDataEdit(TransformAnimator object) {
        this(object, 0);
    }

    public TransformDataEdit(TransformAnimator object, int rank) {
        super(object, Transform + ((rank == 0) ? "" : rank));
    }

    public TrValues getOldValues() {
        return new TrValues(_oldValue);
    }

    public void setNewValues(TrValues v) {
        _newValue=v;
        compare();
        if (_changed){
            setPropertyValue(_newValue);
        }
    }

    @Override
    public TrValues getPropertyValue() {
        return _object.getTransformDataValues();
    }

    @Override
    public void setPropertyValue(TrValues value) {
        _object.setTransformDataValues(value);
    }

    @Override
    public String getDisplayClassName() {
        return "jsynoptic.plugins.java3d.panels.TransformAnimatorTable";
    }

}
TOP

Related Classes of jsynoptic.plugins.java3d.edit.TransformDataEdit

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.