Class CSS.GetBackgroundColorsResponse

  • Enclosing class:
    CSS

    public static class CSS.GetBackgroundColorsResponse
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      GetBackgroundColorsResponse​(java.util.Optional<java.util.List<java.lang.String>> backgroundColors, java.util.Optional<java.lang.String> computedFontSize, java.util.Optional<java.lang.String> computedFontWeight)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.util.List<java.lang.String>> getBackgroundColors()
      The range of background colors behind this element, if it contains any visible text.
      java.util.Optional<java.lang.String> getComputedFontSize()
      The computed font size for this node, as a CSS computed value string (e.g.
      java.util.Optional<java.lang.String> getComputedFontWeight()
      The computed font weight for this node, as a CSS computed value string (e.g.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GetBackgroundColorsResponse

        public GetBackgroundColorsResponse​(java.util.Optional<java.util.List<java.lang.String>> backgroundColors,
                                           java.util.Optional<java.lang.String> computedFontSize,
                                           java.util.Optional<java.lang.String> computedFontWeight)
    • Method Detail

      • getBackgroundColors

        public java.util.Optional<java.util.List<java.lang.String>> getBackgroundColors()
        The range of background colors behind this element, if it contains any visible text. If no visible text is present, this will be undefined. In the case of a flat background color, this will consist of simply that color. In the case of a gradient, this will consist of each of the color stops. For anything more complicated, this will be an empty array. Images will be ignored (as if the image had failed to load).
      • getComputedFontSize

        public java.util.Optional<java.lang.String> getComputedFontSize()
        The computed font size for this node, as a CSS computed value string (e.g. '12px').
      • getComputedFontWeight

        public java.util.Optional<java.lang.String> getComputedFontWeight()
        The computed font weight for this node, as a CSS computed value string (e.g. 'normal' or '100').