Package jsynoptic.plugins.java3d.tree

Source Code of jsynoptic.plugins.java3d.tree.Tuple3fAnimatorNode

/* ========================
* 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: Tuple3fAnimatorNode.java,v 1.3 2008/11/05 18:14:52 cazenave Exp $
*
* Changes
* -------
* 19 janv. 08  : Initial public release
*
*/
package jsynoptic.plugins.java3d.tree;

import jsynoptic.plugins.java3d.Tuple3fAnimator;

/**
*/
public class Tuple3fAnimatorNode extends AnimatorNode {
    /**
     * Register nodes resources and actions
     */
    public static void loadTuple3fResources() {
        addResources("jsynoptic.plugins.java3d.Tuple3fData",
                "AnimatorTuple3f");
        addResources("jsynoptic.plugins.java3d.Tuple3fData$LightDirection",
                "AnimatorLightDirection");
        addResources("jsynoptic.plugins.java3d.Tuple3fData$ColorData",
                "AnimatorColor");
    }

    // required for dynamic node creation
    public Tuple3fAnimatorNode(Tree tree, Object graphObject,
            boolean getChildren) {
        super(tree, graphObject, getChildren);
        // by default name is equal to class name
        Tuple3fAnimator ta = (Tuple3fAnimator) getGraphObject();
        String n = ta.getData().getClass().getName();
        int k = n.lastIndexOf('.');
        _name = n.substring(k + 1);
        _icon = getIcon(ta.getData());
        _description = getDescription(ta.getData());
    }
}
TOP

Related Classes of jsynoptic.plugins.java3d.tree.Tuple3fAnimatorNode

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.