| Constructor and Description | 
|---|
| TextIcon(String[] texts,
        Font[] fonts,
        Color[] colors,
        int width,
        int height) | 
| TextIcon(String[] texts,
        Font[] fonts,
        Color[] colors,
        int width,
        int height,
        Integer... disabledLayers) | 
| TextIcon(String[] texts,
        Font[] fonts,
        int width,
        int height)The icon color is the target component's foreground. | 
| TextIcon(String[] texts,
        Font font,
        Color[] colors,
        int width,
        int height) | 
| TextIcon(String[] texts,
        Font font,
        Color[] colors,
        int width,
        int height,
        Integer... disabledLayers) | 
| TextIcon(String[] texts,
        Font font,
        int width,
        int height)The icon color is the target component's foreground. | 
| TextIcon(String text,
        Font font,
        Color color,
        int width,
        int height) | 
| TextIcon(String text,
        Font font,
        int width,
        int height)The icon color is the target component's foreground. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getIconHeight() | 
| int | getIconWidth() | 
| void | paintIcon(Component c,
         Graphics g,
         int x,
         int y) | 
public TextIcon(String text, Font font, int width, int height)
public TextIcon(String[] texts, Font font, int width, int height)
public TextIcon(String[] texts, Font font, Color[] colors, int width, int height, Integer... disabledLayers)
texts - font - colors - width - height - disabledLayers - The indexes of the layers that must be transparent when the target component is disabled.public TextIcon(String[] texts, Font[] fonts, int width, int height)
public int getIconWidth()
getIconWidth in interface Iconpublic int getIconHeight()
getIconHeight in interface IconCopyright © 2021. All rights reserved.