JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

Overview

Represents a light source at a given position in 3D space.

the code:

import javafx.scene.*;
import javafx.scene.effect.*;
import javafx.scene.effect.light.*;
import javafx.scene.paint.*;
import javafx.scene.shape.*;
import javafx.scene.text.*;

Group {
    var t:Text;
    content: [
        Rectangle {
            width: bind t.layoutBounds.width+30
            height: bind t.layoutBounds.height+20
            fill: Color.BLACK
        },
        t = Text {
            effect: Lighting {
                light: PointLight {
                    x: -100 y: -100 z: 50
                }
                surfaceScale: 5
            }
            textOrigin: TextOrigin.TOP
            x: 10 y: 10
            content: "PointLight"
            fill: Color.RED
            font: Font.font(null, FontWeight.BOLD, 90);
        }
    ]
}

produces:

Profile: desktop

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicxNumber0.0

The x coordinate of the light position.

The x coordinate of the light position.

       Min: n/a
       Max: n/a
   Default: 0.0
  Identity: n/a
 

0.0  
publicyNumber0.0

The y coordinate of the light position.

The y coordinate of the light position.

       Min: n/a
       Max: n/a
   Default: 0.0
  Identity: n/a
 

0.0  
publiczNumber0.0

The z coordinate of the light position.

The z coordinate of the light position.

       Min: n/a
       Max: n/a
   Default: 0.0
  Identity: n/a
 

0.0  

Inherited Variables

javafx.scene.effect.light.Light

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publiccolorColorWHITE

The color of the light source.

The color of the light source.

       Min: n/a
       Max: n/a
   Default: Color.WHITE
  Identity: n/a
 

WHITE  

Function Summary

public impl_getImpl() : com.sun.scenario.effect.light.Light
Returns
Light
 

Inherited Functions

javafx.scene.effect.light.Light

public abstract impl_getImpl() : com.sun.scenario.effect.light.Light
Returns
Light
 



Spec-Zone.ru - all specs in one place