Class TextIcon

java.lang.Object
org.cytoscape.util.swing.TextIcon
All Implemented Interfaces:
Icon

public class TextIcon extends Object implements Icon
Renders any text/font as an icon.
  • Constructor Details

    • TextIcon

      public TextIcon(String text, Font font, Color color, int width, int height)
    • TextIcon

      public TextIcon(String text, Font font, int width, int height)
      The icon color is the target component's foreground.
    • TextIcon

      public TextIcon(String[] texts, Font font, Color[] colors, int width, int height)
    • TextIcon

      public TextIcon(String[] texts, Font font, int width, int height)
      The icon color is the target component's foreground.
    • TextIcon

      public TextIcon(String[] texts, Font font, Color[] colors, int width, int height, Integer... disabledLayers)
      Parameters:
      texts -
      font -
      colors -
      width -
      height -
      disabledLayers - The indexes of the layers that must be transparent when the target component is disabled.
    • TextIcon

      public TextIcon(String[] texts, Font[] fonts, Color[] colors, int width, int height)
    • TextIcon

      public TextIcon(String[] texts, Font[] fonts, int width, int height)
      The icon color is the target component's foreground.
    • TextIcon

      public TextIcon(String[] texts, Font[] fonts, Color[] colors, int width, int height, Integer... disabledLayers)
      Parameters:
      texts -
      fonts -
      colors -
      width -
      height -
      disabledLayers - The indexes of the layers that must be transparent when the target component is disabled.
    • TextIcon

      public TextIcon(TextIcon icon, int width, int height)
      Create a new TextIcon from another TextIcon but with a new width/height.
      Parameters:
      icon -
      width - the new icon width
      height - the new icon height
  • Method Details