< prev index next >

modules/javafx.graphics/src/main/java/javafx/scene/LightBase.java

Print this page


   1 /*
   2  * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  31 import com.sun.javafx.geom.transform.Affine3D;
  32 import com.sun.javafx.geom.transform.BaseTransform;
  33 import com.sun.javafx.scene.DirtyBits;
  34 import com.sun.javafx.scene.LightBaseHelper;
  35 import com.sun.javafx.scene.NodeHelper;
  36 import com.sun.javafx.scene.transform.TransformHelper;
  37 import com.sun.javafx.sg.prism.NGLightBase;
  38 import com.sun.javafx.tk.Toolkit;
  39 import javafx.application.ConditionalFeature;
  40 import javafx.application.Platform;
  41 import javafx.beans.InvalidationListener;
  42 import javafx.beans.Observable;
  43 import javafx.beans.property.BooleanProperty;
  44 import javafx.beans.property.ObjectProperty;
  45 import javafx.beans.property.SimpleBooleanProperty;
  46 import javafx.beans.property.SimpleObjectProperty;
  47 import javafx.collections.ListChangeListener.Change;
  48 import javafx.collections.ObservableList;
  49 import javafx.scene.paint.Color;
  50 import javafx.scene.shape.Shape3D;
  51 import sun.util.logging.PlatformLogger;
  52 
  53 /**
  54  * The {@code LightBase} class provides definitions of common properties for
  55  * objects that represent a form of Light source.  These properties
  56  * include:
  57  * <ul>
  58  * <li>The color that defines color of the light source.
  59  * </ul>
  60  *
  61  * Note that this is a conditional feature. See
  62  * {@link javafx.application.ConditionalFeature#SCENE3D ConditionalFeature.SCENE3D}
  63  * for more information.
  64  *
  65  * <p>
  66  * An application should not extend the LightBase class directly. Doing so may lead to
  67  * an UnsupportedOperationException being thrown.
  68  * </p>
  69  *
  70  * @since JavaFX 8.0
  71  */


   1 /*
   2  * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  31 import com.sun.javafx.geom.transform.Affine3D;
  32 import com.sun.javafx.geom.transform.BaseTransform;
  33 import com.sun.javafx.scene.DirtyBits;
  34 import com.sun.javafx.scene.LightBaseHelper;
  35 import com.sun.javafx.scene.NodeHelper;
  36 import com.sun.javafx.scene.transform.TransformHelper;
  37 import com.sun.javafx.sg.prism.NGLightBase;
  38 import com.sun.javafx.tk.Toolkit;
  39 import javafx.application.ConditionalFeature;
  40 import javafx.application.Platform;
  41 import javafx.beans.InvalidationListener;
  42 import javafx.beans.Observable;
  43 import javafx.beans.property.BooleanProperty;
  44 import javafx.beans.property.ObjectProperty;
  45 import javafx.beans.property.SimpleBooleanProperty;
  46 import javafx.beans.property.SimpleObjectProperty;
  47 import javafx.collections.ListChangeListener.Change;
  48 import javafx.collections.ObservableList;
  49 import javafx.scene.paint.Color;
  50 import javafx.scene.shape.Shape3D;
  51 import com.sun.javafx.logging.PlatformLogger;
  52 
  53 /**
  54  * The {@code LightBase} class provides definitions of common properties for
  55  * objects that represent a form of Light source.  These properties
  56  * include:
  57  * <ul>
  58  * <li>The color that defines color of the light source.
  59  * </ul>
  60  *
  61  * Note that this is a conditional feature. See
  62  * {@link javafx.application.ConditionalFeature#SCENE3D ConditionalFeature.SCENE3D}
  63  * for more information.
  64  *
  65  * <p>
  66  * An application should not extend the LightBase class directly. Doing so may lead to
  67  * an UnsupportedOperationException being thrown.
  68  * </p>
  69  *
  70  * @since JavaFX 8.0
  71  */


< prev index next >