Class TextIcon

java.lang.Object
org.flexdock.dockbar.util.TextIcon
All Implemented Interfaces:
PropertyChangeListener, EventListener, Icon

public class TextIcon extends Object implements Icon, PropertyChangeListener
Author:
Andreas Ernst, Christopher Butler
  • Field Details

  • Constructor Details

    • TextIcon

      public TextIcon(Component cmp, int space, int inset)
      Creates a TextIcon for the specified component with the specified label. It sets the orientation to the provided value if it's legal for the string
  • Method Details

    • getText

      public String getText()
    • setText

      public void setText(String text)
    • setIcon

      public void setIcon(Icon icon)
    • setRotation

      public void setRotation(int rotation)
    • getValidRotation

      public static int getValidRotation(int rotation)
    • propertyChange

      public void propertyChange(PropertyChangeEvent e)
      Specified by:
      propertyChange in interface PropertyChangeListener
    • getIconWidth

      public int getIconWidth()
      Specified by:
      getIconWidth in interface Icon
    • getIconHeight

      public int getIconHeight()
      Specified by:
      getIconHeight in interface Icon
    • paintIcon

      public void paintIcon(Component c, Graphics g, int x, int y)
      Specified by:
      paintIcon in interface Icon
    • validate

      public void validate()