Package javafx.scene.effect
Class InnerShadow
java.lang.Object
javafx.scene.effect.InnerShadow
- All Implemented Interfaces:
Effect
-
Constructor Summary
ConstructorDescriptionCreates 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 Summary
Modifier and TypeMethodDescriptiondouble
getChoke()
getColor()
getInput()
double
double
double
void
setBlurType
(BlurType blurType) void
setChoke
(double choke) void
void
void
setOffsetX
(double offsetX) void
setOffsetY
(double offsetY) void
setRadius
(double radius)
-
Constructor Details
-
InnerShadow
public InnerShadow()Creates a new instance of InnerShadow with default parameters. -
InnerShadow
Creates a new instance of InnerShadow with specified radius and color.- Parameters:
radius
- the radius of the shadow blur kernelcolor
- the shadowColor
-
InnerShadow
Creates a new instance of InnerShadow with specified radius, offsetX, offsetY and color.- Parameters:
radius
- the radius of the shadow blur kerneloffsetX
- the shadow offset in the x directionoffsetY
- the shadow offset in the y directioncolor
- the shadowColor
-
InnerShadow
public 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 shadowcolor
- the shadowColor
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 direction- Since:
- JavaFX 2.1
-
-
Method Details
-
getBlurType
-
setBlurType
-
getColor
-
setColor
-
getRadius
public double getRadius() -
setRadius
public void setRadius(double radius) -
getChoke
public double getChoke() -
setChoke
public void setChoke(double choke) -
getOffsetX
public double getOffsetX() -
setOffsetX
public void setOffsetX(double offsetX) -
getOffsetY
public double getOffsetY() -
setOffsetY
public void setOffsetY(double offsetY) -
getInput
-
setInput
-