Interface WebDepictContext

    • Method Detail

      • isQuirksMode

        boolean isQuirksMode()
        Returns:
        Whether quirks mode is being used.
      • getCSSStyleString

        java.lang.String getCSSStyleString​(java.util.Map<java.lang.String,​java.lang.Object> styles,
                                           Orientation orientation)
        Returns a string representation of the provided style declarations. This method performs special processing on the following properties, including generating user-agent-specific styles to allow proper display on certain browsers:
        • "color" with a value of Color and an alpha less than 1.0.
        • "cursor" with a value of URI, interpreted as a predefined cursor (one of Cursor.getURI()) or as a URI to a custom cursor; URI references are allowed in either.
        • "display" with a value of "inline-block".
        • "font-weight" with a value of Number, interpreted in terms of PresentationModel.FONT_WEIGHT_NORMAL and PresentationModel.FONT_WEIGHT_BOLD.
        • "max-width" or "max-height" with a pixel value of Extent.
        • "opacity" with a value of Number.
        These styles include the CSS property "display" with a value of "inline-block". This method supports values of the following types: All other values will be added using Object.toString().
        Parameters:
        styles - The map of styles to write, each keyed to a CSS style property.
        orientation - The orientation of the component for which the style is being produced.
        Returns:
        A string containing the given CSS properties and styles.