Package resources.icons
Class DisabledImageIconWrapper
- java.lang.Object
-
- javax.swing.ImageIcon
-
- resources.icons.ImageIconWrapper
-
- resources.icons.DisabledImageIconWrapper
-
- All Implemented Interfaces:
java.io.Serializable
,javax.accessibility.Accessible
,javax.swing.Icon
,FileBasedIcon
public class DisabledImageIconWrapper extends ImageIconWrapper
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DisabledImageIconWrapper(javax.swing.Icon baseIcon)
Construct wrapped disabled ImageIcon based upon specified baseIcon.DisabledImageIconWrapper(javax.swing.Icon baseIcon, int brightnessPercent)
Construct wrapped disabled ImageIcon based upon specified baseIcon using the specified brightness level
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.swing.ImageIcon
createImageIcon()
-
Methods inherited from class resources.icons.ImageIconWrapper
createIconBaseImage, getAccessibleContext, getDescription, getFilename, getIconHeight, getIconWidth, getImage, getImageLoadStatus, getImageName, getImageObserver, paintIcon, setDescription, setImage, toString
-
-
-
-
Constructor Detail
-
DisabledImageIconWrapper
public DisabledImageIconWrapper(javax.swing.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
-
DisabledImageIconWrapper
public DisabledImageIconWrapper(javax.swing.Icon baseIcon, int brightnessPercent)
Construct wrapped disabled ImageIcon based upon specified baseIcon using the specified brightness level- Parameters:
baseIcon
-brightnessPercent
- a brightness level specified using a value in the range of 0 thru 100.
-
-
Method Detail
-
createImageIcon
protected javax.swing.ImageIcon createImageIcon()
- Overrides:
createImageIcon
in classImageIconWrapper
-
-