Class CSSSupport

    • Method Detail

      • createStyleSheet

        public static StyleSheet createStyleSheet​(Component component)
        Creates a StyleSheet based on the component's properties.
        Parameters:
        component - component
        Returns:
        a stylesheet
      • toCSSColor

        public static String toCSSColor​(Color color)
        Returns color in CSS format.
        Parameters:
        color - color
        Returns:
        color in css format, color: rgb(r, g, b);
      • toCSSFont

        public static String toCSSFont​(Font font)
        Returns font in CSS format.
        Parameters:
        font - font
        Returns:
        c font in css format, font: Xpt fontName, name, family;