Class CSSFilterParser

java.lang.Object
com.codename1.ui.plaf.CSSFilterParser

public final class CSSFilterParser extends Object

Runtime parser for CSS filter: / backdrop-filter: chains. Mirrors the build-time css-compiler's parser. Returns a

invalid reference
Style.FilterChain

holding a blur radius (in pixels) and a 4x5 color matrix that composes the chain's color-style functions (brightness / contrast / grayscale / hue-rotate / invert / opacity / saturate / sepia). The matrix is null when the chain reduces to the identity transform (no color-style functions present, or all of them at their no-op argument).

  • Method Details

    • parse

      public static CSSFilterParser.FilterChain parse(String css)
      Parses a CSS filter chain. Returns null when css is null, empty, or literally none. Throws IllegalArgumentException when a function name or argument is unrecognised.