Class DisabledImageIcon

All Implemented Interfaces:
Serializable, Accessible, Icon, FileBasedIcon

public class DisabledImageIcon extends DerivedImageIcon
LazyImageIcon that creates a disabled version of an icon
See Also:
  • Constructor Details

    • DisabledImageIcon

      public DisabledImageIcon(Icon baseIcon)
      Construct wrapped disabled ImageIcon based upon specified baseIcon. A 50% brightness will be applied.
      Parameters:
      baseIcon - enabled icon to be rendered as disabled
    • DisabledImageIcon

      public DisabledImageIcon(Icon baseIcon, int brightnessPercent)
      Construct wrapped disabled ImageIcon based upon specified baseIcon using the specified brightness level
      Parameters:
      baseIcon - the icon to create a disabled version of
      brightnessPercent - a brightness level specified using a value in the range of 0 thru 100.
  • Method Details