Package com.luciad.gui.swing
Class TLcdGreyIcon
java.lang.Object
com.luciad.gui.swing.TLcdGreyIcon
- All Implemented Interfaces:
ILcdIcon,ILcdCloneable,Serializable,Cloneable
A grey version of an icon, often used to indicate a disabled state.
Notice that this class is not guaranteed to work correctly with non-static icons.
- Since:
- 9.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTLcdGreyIcon(ILcdIcon aNormalIcon) Create a new grey icon, based on the iconaNormalIcon.TLcdGreyIcon(Icon aNormalIcon) Create a new grey icon, based on the iconaNormalIcon. -
Method Summary
Modifier and TypeMethodDescriptionclone()MakesObject.clone()public.intReturns the fixed height of the icon.intReturns the fixed width of the icon.voidDraw theILcdIconat the specified location.
-
Constructor Details
-
TLcdGreyIcon
Create a new grey icon, based on the icon
aNormalIcon. Notice that this class is not guaranteed to work correctly with non-static icons.- Parameters:
aNormalIcon- the icon of which a grey version must be created
-
TLcdGreyIcon
Create a new grey icon, based on the icon
aNormalIcon. Notice that this class is not guaranteed to work correctly with non-static icons.- Parameters:
aNormalIcon- the icon of which a grey version must be created
-
-
Method Details
-
paintIcon
Description copied from interface:ILcdIconDraw theILcdIconat the specified location.ILcdIconimplementations may use theComponentargument to get properties useful for painting, e.g. the foreground or background color.- Specified by:
paintIconin interfaceILcdIcon- Parameters:
c- a Component to retrieve properties from.g- the Graphics on which the icon will be painted.x- the x position where the icon will be painted. x is the first coordinate of the top left corner point of the icon.y- the y position where the icon will be painted. y is the second coordinate of the top left corner point of the icon.
-
getIconWidth
public int getIconWidth()Description copied from interface:ILcdIconReturns the fixed width of the icon.- Specified by:
getIconWidthin interfaceILcdIcon- Returns:
- the fixed width of the icon.
-
getIconHeight
public int getIconHeight()Description copied from interface:ILcdIconReturns the fixed height of the icon.- Specified by:
getIconHeightin interfaceILcdIcon- Returns:
- the fixed height of the icon.
-
clone
Description copied from interface:ILcdCloneableMakes
When for example extending fromObject.clone()public.java.lang.Object, it can be implemented like this:public Object clone() { try { return super.clone(); } catch ( CloneNotSupportedException e ) { // Cannot happen: extends from Object and implements Cloneable (see also Object.clone) throw new RuntimeException( e ); } }- Specified by:
clonein interfaceILcdCloneable- Overrides:
clonein classObject- See Also:
-