Package jsynoptic.plugins.java3d.panels

Source Code of jsynoptic.plugins.java3d.panels.PointLightPanel

/* ========================
* 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: PointLightPanel.java,v 1.1 2008/03/11 06:51:08 cazenave Exp $
*
* Changes
* -------
* 10 mars 08  : Initial public release
*
*/
package jsynoptic.plugins.java3d.panels;

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.Frame;

import javax.media.j3d.Light;
import javax.swing.JPanel;

import jsynoptic.plugins.java3d.edit.PointLightEdit;
import jsynoptic.plugins.java3d.edit.PropertyEdit;

/**
*/
public class PointLightPanel extends LightPanel {
   
    JPanel _center;
   
    public PointLightPanel(Frame owner, PointLightEdit editor) {
        super(owner, editor);
       
        _center=new JPanel(new FlowLayout());
       
        // TODO i18n
        PropertyEdit<Light,?> e=editor.getPropertyEdit(PointLightEdit.LightPosition);
        _center.add(new PropertiesPanel<Light>(_owner,e));
       
        PropertyEdit<Light,?> e2=editor.getPropertyEdit(PointLightEdit.LightAttenuation);
        _center.add(new PropertiesPanel<Light>(_owner,e2));

        add(BorderLayout.CENTER, _center);
    }
}
TOP

Related Classes of jsynoptic.plugins.java3d.panels.PointLightPanel

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.