Class Icons

    • Method Detail

      • createBufferedIcon

        public static Icon createBufferedIcon​(Icon icon)
        Creates an icon backed by a BufferedImage, which is guaranteed to quickly drawable.
        Parameters:
        icon - icon
        Returns:
        buffered icon
      • rotateUp

        public static Icon rotateUp​(Icon icon)
        Rotate the icon up.
        Parameters:
        icon - icon
        Returns:
        rotated icon
      • rotateDown

        public static Icon rotateDown​(Icon icon)
        Rotate the icon down.
        Parameters:
        icon - icon
        Returns:
        rotated icon
      • createTextIcon

        public static Icon createTextIcon​(JComponent component,
                                          String text)
        Creates a text icon for a given component using the component's font and foreground color.
        Parameters:
        component - component
        text - text
        Returns:
        icon
      • createTextIcon

        public static Icon createTextIcon​(JComponent component,
                                          String text,
                                          String badge)
        Creates a text icon for a given component using the component's font and foreground color along with a color inverted badge.
        Parameters:
        component - component
        text - text
        badge - badge
        Returns:
        icon
      • createTextIcon

        public static Icon createTextIcon​(JComponent component,
                                          Color color,
                                          String text)
        Creates a text icon for a given font and color.
        Parameters:
        color - color
        text - text
        Returns:
        icon
      • createTextIcon

        public static Icon createTextIcon​(JComponent component,
                                          Color color,
                                          String text,
                                          String badge)
        Creates a text icon for a given font and color along with a color inverted badge.
        Parameters:
        color - color
        text - text
        badge - badge
        Returns:
        icon
      • createTextIcon

        public static Icon createTextIcon​(JComponent component,
                                          String text,
                                          int padding)
        Creates a text icon for a given component using the component's font and foreground color.
        Parameters:
        component - component
        text - text
        padding - padding around the icon
        Returns:
        icon
      • createNegative

        public static Icon createNegative​(Icon icon)
        Creates a negative version of the icon.
        Parameters:
        icon - icon
        Returns:
        negative icon
        See Also:
        ImageFX.NegativeOp