Example:
Bloom bloom = new Bloom();
bloom.setThreshold(0.1);
Rectangle rect = new Rectangle();
rect.setX(10);
rect.setY(10);
rect.setWidth(160);
rect.setHeight(80);
rect.setFill(Color.DARKSLATEBLUE);
Text text = new Text();
text.setText("Bloom!");
text.setFill(Color.ALICEBLUE);
text.setFont(Font.font(null, FontWeight.BOLD, 40));
text.setX(25);
text.setY(65);
text.setEffect(bloom);
The code above produces the following:
| Modifier and Type | Field and Description |
|---|---|
| private ObjectProperty | input
The input for this |
| private DoubleProperty | threshold
The threshold value controls the minimum luminosity value of the pixels that will be made to glow. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Bloom(double
the threshold value for the bloom effect threshold)Creates a new instance of Bloom with the specified threshold. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| pack-priv Effect | |
| pack-priv Bloom | |
| pack-priv BaseBounds | getBounds(BaseBounds bounds, BaseTransform tx, Node node, BoundsAccessor boundsAccessor)
Implements abstract javafx. Returns bounds of given node with applied effect. |
| public final Effect | |
| public final double | |
| public final ObjectProperty | |
| public final void | |
| public final void | |
| public final DoubleProperty | |
| pack-priv void |
| input | back to summary |
|---|---|
| private ObjectProperty<Effect> input The input for this
| |
| threshold | back to summary |
|---|---|
| private DoubleProperty threshold The threshold value controls the minimum luminosity value of the pixels that will be made to glow.
Min: 0.0
Max: 1.0
Default: 0.3
Identity: n/a
| |
| Bloom | back to summary |
|---|---|
| public Bloom() Creates a new instance of Bloom with default parameters. | |
| Bloom | back to summary |
|---|---|
| public Bloom(double threshold) Creates a new instance of Bloom with the specified threshold.
| |
| checkChainContains | back to summary |
|---|---|
| pack-priv boolean checkChainContains(Effect e) Implements abstract javafx.
| |
| copy | back to summary |
|---|---|
| pack-priv Effect copy() Implements abstract javafx.
| |
| createPeer | back to summary |
|---|---|
| pack-priv Bloom createPeer() Implements abstract javafx.
| |
| getBounds | back to summary |
|---|---|
| pack-priv BaseBounds getBounds(BaseBounds bounds, BaseTransform tx, Node node, BoundsAccessor boundsAccessor) Implements abstract javafx. Doc from javafx. Returns bounds of given node with applied effect. We *never* pass null in as a bounds. This method will NOT take a null bounds object. The returned value may be the same bounds object passed in, or it may be a new object.
| |
| getInput | back to summary |
|---|---|
| public final Effect getInput() | |
| getThreshold | back to summary |
|---|---|
| public final double getThreshold() | |
| inputProperty | back to summary |
|---|---|
| public final ObjectProperty | |
| setInput | back to summary |
|---|---|
| public final void setInput(Effect value) | |
| setThreshold | back to summary |
|---|---|
| public final void setThreshold(double value) | |
| thresholdProperty | back to summary |
|---|---|
| public final DoubleProperty thresholdProperty() | |
| update | back to summary |
|---|---|
| pack-priv void update() Implements abstract javafx.
| |