Spec-Zone .ru
спецификации, руководства, описания, API
|
public class Glow extends Effect
Example:
Image image = new Image("boat.jpg");
ImageView imageView = new ImageView(image);
imageView.setFitWidth(200);
imageView.setPreserveRatio(true);
imageView.setEffect(new Glow(0.8));
The code above applied on this image:
produces the following:
Type | Property and Description |
---|---|
ObjectProperty<Effect> |
input
The input for this
Effect . |
DoubleProperty |
level
The level value, which controls the intensity of the glow effect.
|
Constructor and Description |
---|
Glow()
Creates a new instance of Glow with default parameters.
|
Glow(double level)
Creates a new instance of Glow with specified level.
|
Modifier and Type | Method and Description |
---|---|
Effect |
getInput()
Gets the value of the property input.
|
double |
getLevel()
Gets the value of the property level.
|
ObjectProperty<Effect> |
inputProperty()
The input for this
Effect . |
DoubleProperty |
levelProperty()
The level value, which controls the intensity of the glow effect.
|
void |
setInput(Effect value)
Sets the value of the property input.
|
void |
setLevel(double value)
Sets the value of the property level.
|
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 DoubleProperty levelProperty
Min: 0.0 Max: 1.0 Default: 0.3 Identity: 0.0
getLevel()
,
setLevel(double)
public Glow()
public Glow(double level)
level
- the level value, which controls the intensity
of the glow effectpublic 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 setLevel(double value)
Min: 0.0 Max: 1.0 Default: 0.3 Identity: 0.0
public final double getLevel()
Min: 0.0 Max: 1.0 Default: 0.3 Identity: 0.0
public final DoubleProperty levelProperty()
Min: 0.0 Max: 1.0 Default: 0.3 Identity: 0.0
getLevel()
,
setLevel(double)
Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to