Spec-Zone .ru
спецификации, руководства, описания, API
|
public class Bloom extends Effect
import javafx.scene.*; import javafx.scene.shape.*; import javafx.scene.text.*; import javafx.scene.paint.*; import javafx.scene.effect.*; Group g = new Group(); Rectangle r = new Rectangle(); r.setX(10); r.setY(10); r.setWidth(160); r.setHeight(80); r.setFill(Color.DARKBLUE); Text t = new Text(); t.setText("Bloom!"); t.setFill(Color.YELLOW); t.setFont(Font.font(null, FontWeight.BOLD, 36)); t.setX(25); t.setY(65); g.setCache(true); g.setEffect(new Bloom()); g.getChildren().add(r); g.getChildren().add(t);
Type | Property and Description |
---|---|
ObjectProperty<Effect> |
input
The input for this
Effect . |
DoubleProperty |
threshold
The threshold value controls the minimum luminosity value of
the pixels that will be made to glow.
|
Constructor and Description |
---|
Bloom() |
Modifier and Type | Method and Description |
---|---|
Effect |
getInput()
The input for this
Effect . |
double |
getThreshold()
The threshold value controls the minimum luminosity value of
the pixels that will be made to glow.
|
ObjectProperty<Effect> |
inputProperty()
The input for this
Effect . |
void |
setInput(Effect value)
The input for this
Effect . |
void |
setThreshold(double value)
The threshold value controls the minimum luminosity value of
the pixels that will be made to glow.
|
DoubleProperty |
thresholdProperty()
The threshold value controls the minimum luminosity value of
the pixels that will be made to glow.
|
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: 0.0 Max: 1.0 Default: 0.3 Identity: n/a
getThreshold()
,
setThreshold(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 setThreshold(double value)
Min: 0.0 Max: 1.0 Default: 0.3 Identity: n/a
public final double getThreshold()
Min: 0.0 Max: 1.0 Default: 0.3 Identity: n/a
public final DoubleProperty thresholdProperty()
Min: 0.0 Max: 1.0 Default: 0.3 Identity: n/a
getThreshold()
,
setThreshold(double)
Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to