Spec-Zone .ru
спецификации, руководства, описания, API

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

Profile: desktop, common

Overview

A high-level effect that renders a shadow inside the edges of the given content with the specified color, radius, and offset.

the code:

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

Text {
    effect: InnerShadow { offsetX: 4 offsetY: 4 }
    x: 20 y: 100
    content: "InnerShadow"
    fill: Color.YELLOW
    font: Font.font(null, FontWeight.BOLD, 80);
}

produces:

Profile: desktop

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicchokeNumber0.0

The choke of the shadow.

The choke of the shadow. The choke is the portion of the radius where the contribution of the source material will be 100%. The remaining portion of the radius will have a contribution controlled by the Guassian kernel. A choke of 0.0 will result in a pure Gaussian distribution of the shadow. A choke of 1.0 will result in a solid growth inward of the shadow from the edges to the limit of the radius with a very sharp cutoff to transparency inside the radius.

       Min: 0.0
       Max: 1.0
   Default: 0.0
  Identity: 0.0
 

0.0  
publiccolorColorBLACK

The shadow Color.

The shadow Color.

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

BLACK  
publicoffsetXNumber0.0

The shadow offset in the x direction, in pixels.

The shadow offset in the x direction, in pixels.

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

0.0  
publicoffsetYNumber0.0

The shadow offset in the y direction, in pixels.

The shadow offset in the y direction, in pixels.

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

0.0  
publicradiusNumber10.0

The radius of the shadow blur kernel.

The radius of the shadow blur kernel.

       Min:  0.0
       Max: 63.0
   Default: 10.0
  Identity:  0.0
 

10.0  

Inherited Variables

Function Summary

public impl_getImpl() : com.sun.scenario.effect.Effect
Returns
Effect
 

Inherited Functions

javafx.scene.effect.Effect

public getAccelType(config: java.awt.GraphicsConfiguration) : java.lang.String

Returns a String representing the type of hardware acceleration, if any, that is used when applying this Effect on the given GraphicsConfiguration.

Returns a String representing the type of hardware acceleration, if any, that is used when applying this Effect on the given GraphicsConfiguration. This method is intended for informational or debugging purposes only.

Parameters
config
Returns
String
 
public abstract impl_getImpl() : com.sun.scenario.effect.Effect
Returns
Effect