Class EffectCssConverter

java.lang.Object
org.jhotdraw8.draw.css.converter.EffectCssConverter
All Implemented Interfaces:
org.jhotdraw8.base.converter.Converter<javafx.scene.effect.Effect>, CssConverter<javafx.scene.effect.Effect>
Direct Known Subclasses:
EffectXmlCssConverter

public class EffectCssConverter extends Object implements CssConverter<javafx.scene.effect.Effect>
CssEffectConverter.

Parses the following EBNF:

 Effect = "none" | ( Blend | Bloom | BoxBlur | ColorAdjust | DropShadow | GaussianBlur | Glow | InnerShadow | Shadow ) , { Effect };
 Blend = "blend(" , [
                 blendType
              ] , ")";
 Bloom = "bloom(" , [
                 threshold
              ] , ")";
 BoxBlur = "box-blur(" , [
                 width, Sep, height, Sep, iterations
              ] , ")";
 ColorAdjust = "color-adjust(" , [
                 "hue", S, hue, Sep,
                 "saturation" , S , saturation, Sep,
                 "brightness", S, brightness, Sep,
                 "contrast", S, contrast
              ] , ")";
 DropShadow = "drop-shadow(" , [
                 blurType , Sep , color , Sep ,
                 radius , Sep ,  spread , Sep ,  xOffset , Sep ,  yOffset
              ] , ")";
 GaussianBlur = "gaussian-blur(" , [
                 radius
              ] , ")";
 Glow = "glow(" , [
                 level
              ] , ")";
 InnerShadow = "inner-shadow(" , [
                 blurType , Sep , color , Sep ,
                 radius , Sep, choke , Sep ,  xOffset , Sep ,  yOffset
               ] , ")";
 Shadow = "shadow(" , [
                 blurType , Sep , color , Sep ,
                 radius
               ] , ")";

 Sep         = ( S , { S } | { S } , "," , { S } ) ;
 S           = (* white space character *)
 

References:

JavaFX CSS Reference Guide
oracle.com
Author:
Werner Randelshofer