Class Gui.StringIcon

java.lang.Object
eu.bandm.tools.option.runtime.Gui.StringIcon
All Implemented Interfaces:
Icon
Enclosing class:
Gui

public static class Gui.StringIcon extends Object implements Icon
A wrapper class which prints a string in a very tiny font, for putting it on a "JButton". This wrapping turned out to be necessary, only because otherwise the buttons would not be really controlable in size!
  • Constructor Details

    • StringIcon

      public StringIcon(String s0)
      Evident
  • Method Details

    • 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 g0, int x, int y)
      Evident. Please note that (x,y) are the topleft coordinates, with y increasing downwards.
      Specified by:
      paintIcon in interface Icon