Spec-Zone .ru
спецификации, руководства, описания, API
|
public class InnerShadow extends Effect
Example:
InnerShadow innerShadow = new InnerShadow();
innerShadow.setOffsetX(4);
innerShadow.setOffsetY(4);
innerShadow.setColor(Color.web("0x3b596d"));
Text text = new Text();
text.setEffect(innerShadow);
text.setX(20);
text.setY(100);
text.setText("InnerShadow");
text.setFill(Color.ALICEBLUE);
text.setFont(Font.font(null, FontWeight.BOLD, 50));
The code above produces the following:
Type | Property and Description |
---|---|
ObjectProperty<BlurType> |
blurType
The algorithm used to blur the shadow.
|
DoubleProperty |
choke
The choke of the shadow.
|
ObjectProperty<Color> |
color
The shadow
Color . |
DoubleProperty |
height
The vertical size of the shadow blur kernel.
|
ObjectProperty<Effect> |
input
The input for this
Effect . |
DoubleProperty |
offsetX
The shadow offset in the x direction, in pixels.
|
DoubleProperty |
offsetY
The shadow offset in the y direction, in pixels.
|
DoubleProperty |
radius
The radius of the shadow blur kernel.
|
DoubleProperty |
width
The horizontal size of the shadow blur kernel.
|
Constructor and Description |
---|
InnerShadow()
Creates a new instance of InnerShadow with default parameters.
|
InnerShadow(BlurType blurType,
Color color,
double radius,
double choke,
double offsetX,
double offsetY)
Creates a new instance of InnerShadow with the specified blurType, color,
radius, spread, offsetX and offsetY.
|
InnerShadow(double radius,
Color color)
Creates a new instance of InnerShadow with specified radius and color.
|
InnerShadow(double radius,
double offsetX,
double offsetY,
Color color)
Creates a new instance of InnerShadow with specified radius, offsetX,
offsetY and color.
|
Modifier and Type | Method and Description |
---|---|
ObjectProperty<BlurType> |
blurTypeProperty()
The algorithm used to blur the shadow.
|
DoubleProperty |
chokeProperty()
The choke of the shadow.
|
ObjectProperty<Color> |
colorProperty()
The shadow
Color . |
BlurType |
getBlurType()
Gets the value of the property blurType.
|
double |
getChoke()
Gets the value of the property choke.
|
Color |
getColor()
Gets the value of the property color.
|
double |
getHeight()
Gets the value of the property height.
|
Effect |
getInput()
Gets the value of the property input.
|
double |
getOffsetX()
Gets the value of the property offsetX.
|
double |
getOffsetY()
Gets the value of the property offsetY.
|
double |
getRadius()
Gets the value of the property radius.
|
double |
getWidth()
Gets the value of the property width.
|
DoubleProperty |
heightProperty()
The vertical size of the shadow blur kernel.
|
ObjectProperty<Effect> |
inputProperty()
The input for this
Effect . |
DoubleProperty |
offsetXProperty()
The shadow offset in the x direction, in pixels.
|
DoubleProperty |
offsetYProperty()
The shadow offset in the y direction, in pixels.
|
DoubleProperty |
radiusProperty()
The radius of the shadow blur kernel.
|
void |
setBlurType(BlurType value)
Sets the value of the property blurType.
|
void |
setChoke(double value)
Sets the value of the property choke.
|
void |
setColor(Color value)
Sets the value of the property color.
|
void |
setHeight(double value)
Sets the value of the property height.
|
void |
setInput(Effect value)
Sets the value of the property input.
|
void |
setOffsetX(double value)
Sets the value of the property offsetX.
|
void |
setOffsetY(double value)
Sets the value of the property offsetY.
|
void |
setRadius(double value)
Sets the value of the property radius.
|
void |
setWidth(double value)
Sets the value of the property width.
|
DoubleProperty |
widthProperty()
The horizontal size of the shadow blur kernel.
|
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 radiusProperty
width
and height
attributes to a value of (2 * radius + 1)
.
Min: 0.0 Max: 127.0 Default: 10.0 Identity: 0.0
getRadius()
,
setRadius(double)
public final DoubleProperty widthProperty
1.0
are not distributed beyond the original
pixel and so have no blurring effect on the shadow.
Min: 0.0 Max: 255.0 Default: 21.0 Identity: <1.0
getWidth()
,
setWidth(double)
public final DoubleProperty heightProperty
1.0
are not distributed beyond the original
pixel and so have no blurring effect on the shadow.
Min: 0.0 Max: 255.0 Default: 21.0 Identity: <1.0
getHeight()
,
setHeight(double)
public final ObjectProperty<BlurType> blurTypeProperty
Min: n/a Max: n/a Default: BlurType.THREE_PASS_BOX Identity: n/a
getBlurType()
,
setBlurType(BlurType)
public final DoubleProperty chokeProperty
0.0
will result in a distribution of the
shadow determined entirely by the blur algorithm.
A choke of 1.0
will result in a solid growth inward of the
shadow from the edges to the limit of the radius with a very sharp
cutoff to transparency inside the radius.
Min: 0.0 Max: 1.0 Default: 0.0 Identity: 0.0
getChoke()
,
setChoke(double)
public final ObjectProperty<Color> colorProperty
Color
.
Min: n/a Max: n/a Default: Color.BLACK Identity: n/a
getColor()
,
setColor(Color)
public final DoubleProperty offsetXProperty
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
getOffsetX()
,
setOffsetX(double)
public final DoubleProperty offsetYProperty
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
getOffsetY()
,
setOffsetY(double)
public InnerShadow()
public InnerShadow(double radius, Color color)
radius
- the radius of the shadow blur kernelcolor
- the shadow Color
public InnerShadow(double radius, double offsetX, double offsetY, Color color)
radius
- the radius of the shadow blur kerneloffsetX
- the shadow offset in the x directionoffsetY
- the shadow offset in the y directioncolor
- the shadow Color
public InnerShadow(BlurType blurType, Color color, double radius, double choke, double offsetX, double offsetY)
blurType
- the algorithm used to blur the shadowcolor
- the shadow Color
radius
- the radius of the shadow blur kernelchoke
- the portion of the radius where the contribution of
the source material will be 100%offsetX
- the shadow offset in the x directionoffsetY
- the shadow offset in the y directionpublic 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 setRadius(double value)
width
and height
attributes to a value of (2 * radius + 1)
.
Min: 0.0 Max: 127.0 Default: 10.0 Identity: 0.0
public final double getRadius()
width
and height
attributes to a value of (2 * radius + 1)
.
Min: 0.0 Max: 127.0 Default: 10.0 Identity: 0.0
public final DoubleProperty radiusProperty()
width
and height
attributes to a value of (2 * radius + 1)
.
Min: 0.0 Max: 127.0 Default: 10.0 Identity: 0.0
getRadius()
,
setRadius(double)
public final void setWidth(double value)
1.0
are not distributed beyond the original
pixel and so have no blurring effect on the shadow.
Min: 0.0 Max: 255.0 Default: 21.0 Identity: <1.0
public final double getWidth()
1.0
are not distributed beyond the original
pixel and so have no blurring effect on the shadow.
Min: 0.0 Max: 255.0 Default: 21.0 Identity: <1.0
public final DoubleProperty widthProperty()
1.0
are not distributed beyond the original
pixel and so have no blurring effect on the shadow.
Min: 0.0 Max: 255.0 Default: 21.0 Identity: <1.0
getWidth()
,
setWidth(double)
public final void setHeight(double value)
1.0
are not distributed beyond the original
pixel and so have no blurring effect on the shadow.
Min: 0.0 Max: 255.0 Default: 21.0 Identity: <1.0
public final double getHeight()
1.0
are not distributed beyond the original
pixel and so have no blurring effect on the shadow.
Min: 0.0 Max: 255.0 Default: 21.0 Identity: <1.0
public final DoubleProperty heightProperty()
1.0
are not distributed beyond the original
pixel and so have no blurring effect on the shadow.
Min: 0.0 Max: 255.0 Default: 21.0 Identity: <1.0
getHeight()
,
setHeight(double)
public final void setBlurType(BlurType value)
Min: n/a Max: n/a Default: BlurType.THREE_PASS_BOX Identity: n/a
public final BlurType getBlurType()
Min: n/a Max: n/a Default: BlurType.THREE_PASS_BOX Identity: n/a
public final ObjectProperty<BlurType> blurTypeProperty()
Min: n/a Max: n/a Default: BlurType.THREE_PASS_BOX Identity: n/a
getBlurType()
,
setBlurType(BlurType)
public final void setChoke(double value)
0.0
will result in a distribution of the
shadow determined entirely by the blur algorithm.
A choke of 1.0
will result in a solid growth inward of the
shadow from the edges to the limit of the radius with a very sharp
cutoff to transparency inside the radius.
Min: 0.0 Max: 1.0 Default: 0.0 Identity: 0.0
public final double getChoke()
0.0
will result in a distribution of the
shadow determined entirely by the blur algorithm.
A choke of 1.0
will result in a solid growth inward of the
shadow from the edges to the limit of the radius with a very sharp
cutoff to transparency inside the radius.
Min: 0.0 Max: 1.0 Default: 0.0 Identity: 0.0
public final DoubleProperty chokeProperty()
0.0
will result in a distribution of the
shadow determined entirely by the blur algorithm.
A choke of 1.0
will result in a solid growth inward of the
shadow from the edges to the limit of the radius with a very sharp
cutoff to transparency inside the radius.
Min: 0.0 Max: 1.0 Default: 0.0 Identity: 0.0
getChoke()
,
setChoke(double)
public final void setColor(Color value)
Color
.
Min: n/a Max: n/a Default: Color.BLACK Identity: n/a
public final Color getColor()
Color
.
Min: n/a Max: n/a Default: Color.BLACK Identity: n/a
public final ObjectProperty<Color> colorProperty()
Color
.
Min: n/a Max: n/a Default: Color.BLACK Identity: n/a
getColor()
,
setColor(Color)
public final void setOffsetX(double value)
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
public final double getOffsetX()
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
public final DoubleProperty offsetXProperty()
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
getOffsetX()
,
setOffsetX(double)
public final void setOffsetY(double value)
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
public final double getOffsetY()
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
public final DoubleProperty offsetYProperty()
Min: n/a Max: n/a Default: 0.0 Identity: 0.0
getOffsetY()
,
setOffsetY(double)
Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to