Class ColorIcon

java.lang.Object
ghidra.program.model.data.ColorIcon
All Implemented Interfaces:
Icon

public class ColorIcon extends Object implements Icon
ColorIcon provides a color icon patch to convey a specified color with Alpha transparancy. This implementation was created in support of color data types (see AbstractColorDataType).
  • Method Details

    • getIconHeight

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

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

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

      public int getRGBValue()
      Returns standardized RGB value.
      Returns:
      standardized RGB value