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:
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.
|
impl_effectDirtyProperty, impl_getImpl, impl_isEffectDirty, impl_sync
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)
public final Effect getInput()
public final ObjectProperty<Effect> inputProperty()
public final void setRadius(double value)
public final double getRadius()
public final DoubleProperty radiusProperty()
public final void setWidth(double value)
public final double getWidth()
public final DoubleProperty widthProperty()
public final void setHeight(double value)
public final double getHeight()
public final DoubleProperty heightProperty()
public final void setBlurType(BlurType value)
public final BlurType getBlurType()
public final ObjectProperty<BlurType> blurTypeProperty()
public final void setChoke(double value)
public final double getChoke()
public final DoubleProperty chokeProperty()
public final void setColor(Color value)
public final Color getColor()
public final ObjectProperty<Color> colorProperty()
public final void setOffsetX(double value)
public final double getOffsetX()
public final DoubleProperty offsetXProperty()
public final void setOffsetY(double value)
public final double getOffsetY()
public final DoubleProperty offsetYProperty()
@Deprecated public BaseBounds impl_getBounds(BaseBounds bounds, BaseTransform tx, Node node, BoundsAccessor boundsAccessor)
Effect
impl_getBounds
in class Effect
@Deprecated public Effect impl_copy()
Copyright © 2020. All rights reserved.