Spec-Zone .ru
спецификации, руководства, описания, API
|
public class Reflection extends Effect
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
.
import javafx.scene.*; import javafx.scene.text.*; import javafx.scene.paint.*; import javafx.scene.effect.*; Text t = new Text(); t.setX(10.0); t.setY(50.0); t.setCache(true); t.setText("Reflections on JavaFX..."); t.setFill(Color.RED); t.setFont(Font.font(null, FontWeight.BOLD, 30)); Reflection r = new Reflection(); r.setFraction(0.7); t.setEffect(r);
Type | Property and Description |
---|---|
DoubleProperty |
bottomOpacity
The bottom opacity value, which is the opacity of the reflection
at its bottom extreme.
|
DoubleProperty |
fraction
The fraction of the input that is visible in the reflection.
|
ObjectProperty<Effect> |
input
The input for this
Effect . |
DoubleProperty |
topOffset
The top offset adjustment, which is the distance between the
bottom of the input and the top of the reflection.
|
DoubleProperty |
topOpacity
The top opacity value, which is the opacity of the reflection
at its top extreme.
|
Constructor and Description |
---|
Reflection() |
Modifier and Type | Method and Description |
---|---|
DoubleProperty |
bottomOpacityProperty()
The bottom opacity value, which is the opacity of the reflection
at its bottom extreme.
|
DoubleProperty |
fractionProperty()
The fraction of the input that is visible in the reflection.
|
double |
getBottomOpacity()
The bottom opacity value, which is the opacity of the reflection
at its bottom extreme.
|
double |
getFraction()
The fraction of the input that is visible in the reflection.
|
Effect |
getInput()
The input for this
Effect . |
double |
getTopOffset()
The top offset adjustment, which is the distance between the
bottom of the input and the top of the reflection.
|
double |
getTopOpacity()
The top opacity value, which is the opacity of the reflection
at its top extreme.
|
ObjectProperty<Effect> |
inputProperty()
The input for this
Effect . |
void |
setBottomOpacity(double value)
The bottom opacity value, which is the opacity of the reflection
at its bottom extreme.
|
void |
setFraction(double value)
The fraction of the input that is visible in the reflection.
|
void |
setInput(Effect value)
The input for this
Effect . |
void |
setTopOffset(double value)
The top offset adjustment, which is the distance between the
bottom of the input and the top of the reflection.
|
void |
setTopOpacity(double value)
The top opacity value, which is the opacity of the reflection
at its top extreme.
|
DoubleProperty |
topOffsetProperty()
The top offset adjustment, which is the distance between the
bottom of the input and the top of the reflection.
|
DoubleProperty |
topOpacityProperty()
The top opacity value, which is the opacity of the reflection
at its top extreme.
|
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.getInput()
,
setInput(Effect)
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
getTopOffset()
,
setTopOffset(double)
Min: 0.0 Max: 1.0 Default: 0.5 Identity: 1.0
getTopOpacity()
,
setTopOpacity(double)
Min: 0.0 Max: 1.0 Default: 0.0 Identity: 1.0
getBottomOpacity()
,
setBottomOpacity(double)
Min: 0.0 Max: 1.0 Default: 0.75 Identity: 1.0
getFraction()
,
setFraction(double)
public final void setInput(Effect value)
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.public final Effect getInput()
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.public final ObjectProperty<Effect> inputProperty()
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.getInput()
,
setInput(Effect)
public final void setTopOffset(double value)
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
public final double getTopOffset()
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
public final DoubleProperty topOffsetProperty()
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
getTopOffset()
,
setTopOffset(double)
public final void setTopOpacity(double value)
Min: 0.0 Max: 1.0 Default: 0.5 Identity: 1.0
public final double getTopOpacity()
Min: 0.0 Max: 1.0 Default: 0.5 Identity: 1.0
public final DoubleProperty topOpacityProperty()
Min: 0.0 Max: 1.0 Default: 0.5 Identity: 1.0
getTopOpacity()
,
setTopOpacity(double)
public final void setBottomOpacity(double value)
Min: 0.0 Max: 1.0 Default: 0.0 Identity: 1.0
public final double getBottomOpacity()
Min: 0.0 Max: 1.0 Default: 0.0 Identity: 1.0
public final DoubleProperty bottomOpacityProperty()
Min: 0.0 Max: 1.0 Default: 0.0 Identity: 1.0
getBottomOpacity()
,
setBottomOpacity(double)
public final void setFraction(double value)
Min: 0.0 Max: 1.0 Default: 0.75 Identity: 1.0
public final double getFraction()
Min: 0.0 Max: 1.0 Default: 0.75 Identity: 1.0
public final DoubleProperty fractionProperty()
Min: 0.0 Max: 1.0 Default: 0.75 Identity: 1.0
getFraction()
,
setFraction(double)
Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to