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

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

Profile: desktop, common

Overview

An effect that renders a reflected version of the input below the actual input content.

Note that the reflection of a Node with a Reflection effect installed will not respond to mouse events or the containment methods on the Node.

the code:

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

Text {
    effect: Reflection { fraction: 0.7 }
    cache: true
    x: 10 y: 50
    content: "Reflections on JavaFX..."
    fill: Color.RED
    font: Font.font(null, FontWeight.BOLD, 30);
}

produces:

Profile: desktop

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicbottomOpacityNumber0.0

The bottom opacity value, which is the opacity of the reflection at its bottom extreme.

The bottom opacity value, which is the opacity of the reflection at its bottom extreme.

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

0.0  
publicfractionNumber0.75

The fraction of the input that is visible in the reflection.

The fraction of the input that is visible in the reflection. For example, a value of 0.5 means that only the bottom half of the input will be visible in the reflection.

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

0.75  
publicinputEffectnull

The input for this Effect.

The input for this Effect. If set to null, or left unspecified, a graphical image of the Node to which the Effect is attached will be used as the input.

null  
publictopOffsetNumber0.0

The top offset adjustment, which is the distance between the bottom of the input and the top of the reflection.

The top offset adjustment, which is the distance between the bottom of the input and the top of the reflection.

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

0.0  
publictopOpacityNumber0.5

The top opacity value, which is the opacity of the reflection at its top extreme.

The top opacity value, which is the opacity of the reflection at its top extreme.

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

0.5  

Inherited Variables

Function Summary

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

Inherited Functions

javafx.scene.effect.Effect

public getAccelType(config: java.lang.Object) : 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 impl_add(node: Node) : Void
Parameters
node
 
public abstract impl_getImpl() : com.sun.scenario.effect.Effect
Returns
Effect
 
public impl_remove(node: Node) : Void
Parameters
node