java.lang.Object
javafx.scene.effect.Effect
javafx.scene.effect.Bloom
A high-level effect that makes brighter portions of the input image
 appear to glow, based on a configurable threshold.
 
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:
  
 
- Since:
- JavaFX 2.0
- 
Property SummaryPropertiesTypePropertyDescriptionfinal ObjectProperty<Effect> The input for thisEffect.final DoublePropertyThe threshold value controls the minimum luminosity value of the pixels that will be made to glow.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal EffectgetInput()Gets the value of theinputproperty.final doubleGets the value of thethresholdproperty.final ObjectProperty<Effect> The input for thisEffect.final voidSets the value of theinputproperty.final voidsetThreshold(double value) Sets the value of thethresholdproperty.final DoublePropertyThe threshold value controls the minimum luminosity value of the pixels that will be made to glow.
- 
Property Details- 
inputThe input for thisEffect. If set tonull, or left unspecified, a graphical image of theNodeto which theEffectis attached will be used as the input.- Default value:
- null
- See Also:
 
- 
thresholdThe 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- Default value:
- 0.3
- See Also:
 
 
- 
- 
Constructor Details- 
Bloompublic Bloom()Creates a new instance of Bloom with default parameters.
- 
Bloompublic Bloom(double threshold) Creates a new instance of Bloom with the specified threshold.- Parameters:
- threshold- the threshold value for the bloom effect
- Since:
- JavaFX 2.1
 
 
- 
- 
Method Details- 
setInputSets the value of theinputproperty.- Property description:
- The input for this Effect. If set tonull, or left unspecified, a graphical image of theNodeto which theEffectis attached will be used as the input.
- Default value:
- null
- Parameters:
- value- the value for the- inputproperty
- See Also:
 
- 
getInputGets the value of theinputproperty.- Property description:
- The input for this Effect. If set tonull, or left unspecified, a graphical image of theNodeto which theEffectis attached will be used as the input.
- Default value:
- null
- Returns:
- the value of the inputproperty
- See Also:
 
- 
inputPropertyThe input for thisEffect. If set tonull, or left unspecified, a graphical image of theNodeto which theEffectis attached will be used as the input.- Default value:
- null
- Returns:
- the inputproperty
- See Also:
 
- 
setThresholdpublic final void setThreshold(double value) Sets the value of thethresholdproperty.- Property description:
- 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
- Default value:
- 0.3
- Parameters:
- value- the value for the- thresholdproperty
- See Also:
 
- 
getThresholdpublic final double getThreshold()Gets the value of thethresholdproperty.- Property description:
- 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
- Default value:
- 0.3
- Returns:
- the value of the thresholdproperty
- See Also:
 
- 
thresholdPropertyThe 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- Default value:
- 0.3
- Returns:
- the thresholdproperty
- See Also:
 
 
-