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.stage.*;
import javafx.scene.*;
import javafx.scene.text.*;
import javafx.scene.paint.*;
import javafx.scene.effect.*;
Text {
effect: Reflection { fraction: 0.7 }
cache: true
x: 10 y: 100
content: "Reflections on JavaFX..."
fill: Color.RED
font: Font.font(null, FontWeight.BOLD, 30);
}
produces:
Profile: desktop
Variable Summary
access | name | type | Can Read | Can Init | Can Write | Default Value | description |
---|---|---|---|---|---|---|---|
public | bottomOpacity | Number | 0.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.00.0 |
|||
public | fraction | Number | 0.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.00.75 |
|||
public | input | Effect | null |
The input for this The input for this |
|||
public | topOffset | Number | 0.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.00.0 |
|||
public | topOpacity | Number | 0.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.00.5 |
Inherited Variables
Function Summary
- public impl_getImpl() : com.sun.scenario.effect.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 thisEffect
on the givenGraphicsConfiguration
.Returns a
String
representing the type of hardware acceleration, if any, that is used when applying thisEffect
on the givenGraphicsConfiguration
. This method is intended for informational or debugging purposes only.-
Parameters
- config
-
Returns
- String
- public abstract impl_getImpl() : com.sun.scenario.effect.Effect