Package resources.icons
Class DisabledImageIcon
java.lang.Object
javax.swing.ImageIcon
resources.icons.LazyImageIcon
resources.icons.DerivedImageIcon
resources.icons.DisabledImageIcon
- All Implemented Interfaces:
Serializable
,Accessible
,Icon
,FileBasedIcon
LazyImageIcon
that creates a disabled version of an icon- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.ImageIcon
ImageIcon.AccessibleImageIcon
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDisabledImageIcon
(Icon baseIcon) Construct wrapped disabled ImageIcon based upon specified baseIcon.DisabledImageIcon
(Icon baseIcon, int brightnessPercent) Construct wrapped disabled ImageIcon based upon specified baseIcon using the specified brightness level -
Method Summary
Methods inherited from class resources.icons.DerivedImageIcon
createImage, getSourceIcon, sourceIconChanged
Methods inherited from class resources.icons.LazyImageIcon
getAccessibleContext, getDescription, getFilename, getIconHeight, getIconWidth, getImage, getImageLoadStatus, getImageObserver, paintIcon, setDescription, setImage, toString
Methods inherited from class javax.swing.ImageIcon
loadImage, setImageObserver
-
Constructor Details
-
DisabledImageIcon
Construct wrapped disabled ImageIcon based upon specified baseIcon. A 50% brightness will be applied.- Parameters:
baseIcon
- enabled icon to be rendered as disabled
-
DisabledImageIcon
Construct wrapped disabled ImageIcon based upon specified baseIcon using the specified brightness level- Parameters:
baseIcon
- the icon to create a disabled version ofbrightnessPercent
- a brightness level specified using a value in the range of 0 thru 100.
-
-
Method Details
-
createImageIcon
- Overrides:
createImageIcon
in classDerivedImageIcon
-