Package rma.swing

Class ColorIcon

java.lang.Object
rma.swing.ColorIcon
All Implemented Interfaces:
Icon

public class ColorIcon extends Object implements Icon
  • Constructor Details

    • ColorIcon

      public ColorIcon()
    • ColorIcon

      public ColorIcon(Color color)
    • ColorIcon

      public ColorIcon(Color color, int w, int h)
  • Method Details

    • paintIcon

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

      public Color getColor()
    • setColor

      public void setColor(Color color)
    • getIconWidth

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

      public void setIconWidth(int width)
    • getIconHeight

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