- java.lang.Object
- 
- javafx.scene.effect.Effect
- 
- javafx.scene.effect.InnerShadow
 
 
- 
 public class InnerShadow extends Effect A high-level effect that renders a shadow inside the edges of the given content with the specified color, radius, and offset.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:   - Since:
- JavaFX 2.0
 
- 
- 
Property SummaryProperties Type Property Description ObjectProperty<BlurType>blurTypeThe algorithm used to blur the shadow.DoublePropertychokeThe choke of the shadow.ObjectProperty<Color>colorThe shadowColor.DoublePropertyheightThe vertical size of the shadow blur kernel.ObjectProperty<Effect>inputThe input for thisEffect.DoublePropertyoffsetXThe shadow offset in the x direction, in pixels.DoublePropertyoffsetYThe shadow offset in the y direction, in pixels.DoublePropertyradiusThe radius of the shadow blur kernel.DoublePropertywidthThe horizontal size of the shadow blur kernel.
 - 
Constructor SummaryConstructors Constructor Description InnerShadow()Creates a new instance of InnerShadow with default parameters.InnerShadow(double radius, double offsetX, double offsetY, Color color)Creates a new instance of InnerShadow with specified radius, offsetX, offsetY and color.InnerShadow(double radius, Color color)Creates a new instance of InnerShadow with specified radius and color.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.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectProperty<BlurType>blurTypeProperty()The algorithm used to blur the shadow.DoublePropertychokeProperty()The choke of the shadow.ObjectProperty<Color>colorProperty()The shadowColor.BlurTypegetBlurType()Gets the value of the property blurType.doublegetChoke()Gets the value of the property choke.ColorgetColor()Gets the value of the property color.doublegetHeight()Gets the value of the property height.EffectgetInput()Gets the value of the property input.doublegetOffsetX()Gets the value of the property offsetX.doublegetOffsetY()Gets the value of the property offsetY.doublegetRadius()Gets the value of the property radius.doublegetWidth()Gets the value of the property width.DoublePropertyheightProperty()The vertical size of the shadow blur kernel.ObjectProperty<Effect>inputProperty()The input for thisEffect.DoublePropertyoffsetXProperty()The shadow offset in the x direction, in pixels.DoublePropertyoffsetYProperty()The shadow offset in the y direction, in pixels.DoublePropertyradiusProperty()The radius of the shadow blur kernel.voidsetBlurType(BlurType value)Sets the value of the property blurType.voidsetChoke(double value)Sets the value of the property choke.voidsetColor(Color value)Sets the value of the property color.voidsetHeight(double value)Sets the value of the property height.voidsetInput(Effect value)Sets the value of the property input.voidsetOffsetX(double value)Sets the value of the property offsetX.voidsetOffsetY(double value)Sets the value of the property offsetY.voidsetRadius(double value)Sets the value of the property radius.voidsetWidth(double value)Sets the value of the property width.DoublePropertywidthProperty()The horizontal size of the shadow blur kernel.
 
- 
- 
- 
Property Detail- 
inputpublic final ObjectProperty<Effect> inputProperty The 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:
- getInput(),- setInput(Effect)
 
 - 
radiuspublic final DoubleProperty radiusProperty The radius of the shadow blur kernel. This attribute controls the distance that the shadow is spread to each side of the source pixels. Setting the radius is equivalent to setting both thewidthandheightattributes to a value of(2 * radius + 1).Min: 0.0 Max: 127.0 Default: 10.0 Identity: 0.0- Default value:
- 10.0
- See Also:
- getRadius(),- setRadius(double)
 
 - 
widthpublic final DoubleProperty widthProperty The horizontal size of the shadow blur kernel. This attribute controls the horizontal size of the total area over which the shadow of a single pixel is distributed by the blur algorithm. Values less than1.0are 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- Default value:
- 21.0
- See Also:
- getWidth(),- setWidth(double)
 
 - 
heightpublic final DoubleProperty heightProperty The vertical size of the shadow blur kernel. This attribute controls the vertical size of the total area over which the shadow of a single pixel is distributed by the blur algorithm. Values less than1.0are 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- Default value:
- 21.0
- See Also:
- getHeight(),- setHeight(double)
 
 - 
blurTypepublic final ObjectProperty<BlurType> blurTypeProperty The algorithm used to blur the shadow.Min: n/a Max: n/a Default: BlurType.THREE_PASS_BOX Identity: n/a- Default value:
- THREE_PASS_BOX
- See Also:
- getBlurType(),- setBlurType(BlurType)
 
 - 
chokepublic final DoubleProperty chokeProperty The choke of the shadow. The choke is the portion of the radius where the contribution of the source material will be 100%. The remaining portion of the radius will have a contribution controlled by the blur kernel. A choke of0.0will result in a distribution of the shadow determined entirely by the blur algorithm. A choke of1.0will 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- Default value:
- 0.0
- See Also:
- getChoke(),- setChoke(double)
 
 - 
colorpublic final ObjectProperty<Color> colorProperty The shadowColor.Min: n/a Max: n/a Default: Color.BLACK Identity: n/a- Default value:
- BLACK
- See Also:
- getColor(),- setColor(Color)
 
 - 
offsetXpublic final DoubleProperty offsetXProperty The shadow offset in the x direction, in pixels.Min: n/a Max: n/a Default: 0.0 Identity: 0.0- Default value:
- 0.0
- See Also:
- getOffsetX(),- setOffsetX(double)
 
 - 
offsetYpublic final DoubleProperty offsetYProperty The shadow offset in the y direction, in pixels.Min: n/a Max: n/a Default: 0.0 Identity: 0.0- Default value:
- 0.0
- See Also:
- getOffsetY(),- setOffsetY(double)
 
 
- 
 - 
Constructor Detail- 
InnerShadowpublic InnerShadow() Creates a new instance of InnerShadow with default parameters.
 - 
InnerShadowpublic InnerShadow(double radius, Color color)Creates a new instance of InnerShadow with specified radius and color.- Parameters:
- radius- the radius of the shadow blur kernel
- color- the shadow- Color
 
 - 
InnerShadowpublic InnerShadow(double radius, double offsetX, double offsetY, Color color)Creates a new instance of InnerShadow with specified radius, offsetX, offsetY and color.- Parameters:
- radius- the radius of the shadow blur kernel
- offsetX- the shadow offset in the x direction
- offsetY- the shadow offset in the y direction
- color- the shadow- Color
 
 - 
InnerShadowpublic 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.- Parameters:
- blurType- the algorithm used to blur the shadow
- color- the shadow- Color
- radius- the radius of the shadow blur kernel
- choke- the portion of the radius where the contribution of the source material will be 100%
- offsetX- the shadow offset in the x direction
- offsetY- the shadow offset in the y direction
- Since:
- JavaFX 2.1
 
 
- 
 - 
Method Detail- 
setInputpublic final void setInput(Effect value) Sets the value of the property input.- 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
 
 - 
getInputpublic final Effect getInput() Gets the value of the property input.- 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
 
 - 
inputPropertypublic final ObjectProperty<Effect> inputProperty() The 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:
- getInput(),- setInput(Effect)
 
 - 
setRadiuspublic final void setRadius(double value) Sets the value of the property radius.- Property description:
- The radius of the shadow blur kernel.
 This attribute controls the distance that the shadow is spread
 to each side of the source pixels.
 Setting the radius is equivalent to setting both the widthandheightattributes to a value of(2 * radius + 1).Min: 0.0 Max: 127.0 Default: 10.0 Identity: 0.0
- Default value:
- 10.0
 
 - 
getRadiuspublic final double getRadius() Gets the value of the property radius.- Property description:
- The radius of the shadow blur kernel.
 This attribute controls the distance that the shadow is spread
 to each side of the source pixels.
 Setting the radius is equivalent to setting both the widthandheightattributes to a value of(2 * radius + 1).Min: 0.0 Max: 127.0 Default: 10.0 Identity: 0.0
- Default value:
- 10.0
 
 - 
radiusPropertypublic final DoubleProperty radiusProperty() The radius of the shadow blur kernel. This attribute controls the distance that the shadow is spread to each side of the source pixels. Setting the radius is equivalent to setting both thewidthandheightattributes to a value of(2 * radius + 1).Min: 0.0 Max: 127.0 Default: 10.0 Identity: 0.0- Default value:
- 10.0
- See Also:
- getRadius(),- setRadius(double)
 
 - 
setWidthpublic final void setWidth(double value) Sets the value of the property width.- Property description:
- The horizontal size of the shadow blur kernel.
 This attribute controls the horizontal size of the total area over
 which the shadow of a single pixel is distributed by the blur algorithm.
 Values less than 1.0are 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
- Default value:
- 21.0
 
 - 
getWidthpublic final double getWidth() Gets the value of the property width.- Property description:
- The horizontal size of the shadow blur kernel.
 This attribute controls the horizontal size of the total area over
 which the shadow of a single pixel is distributed by the blur algorithm.
 Values less than 1.0are 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
- Default value:
- 21.0
 
 - 
widthPropertypublic final DoubleProperty widthProperty() The horizontal size of the shadow blur kernel. This attribute controls the horizontal size of the total area over which the shadow of a single pixel is distributed by the blur algorithm. Values less than1.0are 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- Default value:
- 21.0
- See Also:
- getWidth(),- setWidth(double)
 
 - 
setHeightpublic final void setHeight(double value) Sets the value of the property height.- Property description:
- The vertical size of the shadow blur kernel.
 This attribute controls the vertical size of the total area over
 which the shadow of a single pixel is distributed by the blur algorithm.
 Values less than 1.0are 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
- Default value:
- 21.0
 
 - 
getHeightpublic final double getHeight() Gets the value of the property height.- Property description:
- The vertical size of the shadow blur kernel.
 This attribute controls the vertical size of the total area over
 which the shadow of a single pixel is distributed by the blur algorithm.
 Values less than 1.0are 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
- Default value:
- 21.0
 
 - 
heightPropertypublic final DoubleProperty heightProperty() The vertical size of the shadow blur kernel. This attribute controls the vertical size of the total area over which the shadow of a single pixel is distributed by the blur algorithm. Values less than1.0are 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- Default value:
- 21.0
- See Also:
- getHeight(),- setHeight(double)
 
 - 
setBlurTypepublic final void setBlurType(BlurType value) Sets the value of the property blurType.- Property description:
- The algorithm used to blur the shadow.
 Min: n/a Max: n/a Default: BlurType.THREE_PASS_BOX Identity: n/a
- Default value:
- THREE_PASS_BOX
 
 - 
getBlurTypepublic final BlurType getBlurType() Gets the value of the property blurType.- Property description:
- The algorithm used to blur the shadow.
 Min: n/a Max: n/a Default: BlurType.THREE_PASS_BOX Identity: n/a
- Default value:
- THREE_PASS_BOX
 
 - 
blurTypePropertypublic final ObjectProperty<BlurType> blurTypeProperty() The algorithm used to blur the shadow.Min: n/a Max: n/a Default: BlurType.THREE_PASS_BOX Identity: n/a- Default value:
- THREE_PASS_BOX
- See Also:
- getBlurType(),- setBlurType(BlurType)
 
 - 
setChokepublic final void setChoke(double value) Sets the value of the property choke.- Property description:
- The choke of the shadow.
 The choke is the portion of the radius where the contribution of
 the source material will be 100%.
 The remaining portion of the radius will have a contribution
 controlled by the blur kernel.
 A choke of 0.0will result in a distribution of the shadow determined entirely by the blur algorithm. A choke of1.0will 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
- Default value:
- 0.0
 
 - 
getChokepublic final double getChoke() Gets the value of the property choke.- Property description:
- The choke of the shadow.
 The choke is the portion of the radius where the contribution of
 the source material will be 100%.
 The remaining portion of the radius will have a contribution
 controlled by the blur kernel.
 A choke of 0.0will result in a distribution of the shadow determined entirely by the blur algorithm. A choke of1.0will 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
- Default value:
- 0.0
 
 - 
chokePropertypublic final DoubleProperty chokeProperty() The choke of the shadow. The choke is the portion of the radius where the contribution of the source material will be 100%. The remaining portion of the radius will have a contribution controlled by the blur kernel. A choke of0.0will result in a distribution of the shadow determined entirely by the blur algorithm. A choke of1.0will 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- Default value:
- 0.0
- See Also:
- getChoke(),- setChoke(double)
 
 - 
setColorpublic final void setColor(Color value) Sets the value of the property color.- Property description:
- The shadow Color.Min: n/a Max: n/a Default: Color.BLACK Identity: n/a
- Default value:
- BLACK
 
 - 
getColorpublic final Color getColor() Gets the value of the property color.- Property description:
- The shadow Color.Min: n/a Max: n/a Default: Color.BLACK Identity: n/a
- Default value:
- BLACK
 
 - 
colorPropertypublic final ObjectProperty<Color> colorProperty() The shadowColor.Min: n/a Max: n/a Default: Color.BLACK Identity: n/a- Default value:
- BLACK
- See Also:
- getColor(),- setColor(Color)
 
 - 
setOffsetXpublic final void setOffsetX(double value) Sets the value of the property offsetX.- Property description:
- The shadow offset in the x direction, in pixels.
 Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
 
 - 
getOffsetXpublic final double getOffsetX() Gets the value of the property offsetX.- Property description:
- The shadow offset in the x direction, in pixels.
 Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
 
 - 
offsetXPropertypublic final DoubleProperty offsetXProperty() The shadow offset in the x direction, in pixels.Min: n/a Max: n/a Default: 0.0 Identity: 0.0- Default value:
- 0.0
- See Also:
- getOffsetX(),- setOffsetX(double)
 
 - 
setOffsetYpublic final void setOffsetY(double value) Sets the value of the property offsetY.- Property description:
- The shadow offset in the y direction, in pixels.
 Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
 
 - 
getOffsetYpublic final double getOffsetY() Gets the value of the property offsetY.- Property description:
- The shadow offset in the y direction, in pixels.
 Min: n/a Max: n/a Default: 0.0 Identity: 0.0
- Default value:
- 0.0
 
 - 
offsetYPropertypublic final DoubleProperty offsetYProperty() The shadow offset in the y direction, in pixels.Min: n/a Max: n/a Default: 0.0 Identity: 0.0- Default value:
- 0.0
- See Also:
- getOffsetY(),- setOffsetY(double)
 
 
- 
 
-