Package com.luciad.ais.gui
Class TLcdAWTImageIcon
java.lang.Object
com.luciad.ais.gui.TLcdAWTImageIcon
- All Implemented Interfaces:
ILcdIcon,ILcdCloneable,Serializable,Cloneable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.TLcdAWTImageIcon(TLcdAWTImageIcon aAWTImageIcon) Copy constructor. -
Method Summary
-
Constructor Details
-
TLcdAWTImageIcon
public TLcdAWTImageIcon()Default constructor. -
TLcdAWTImageIcon
Copy constructor.- Parameters:
aAWTImageIcon- the AWTImageIcon to be copied into a new object
-
-
Method Details
-
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:
-
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.
-
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.
-
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:
aComponent- a Component to retrieve properties from.aGraphics- the Graphics on which the icon will be painted.aX- the x position where the icon will be painted. x is the first coordinate of the top left corner point of the icon.aY- the y position where the icon will be painted. y is the second coordinate of the top left corner point of the icon.
-
getImage
-
setImage
-