Package com.luciad.gui
Class TLcdCompositeIcon
java.lang.Object
com.luciad.gui.TLcdCompositeIcon
- All Implemented Interfaces:
ILcdIcon,ILcdResizeableIcon,ILcdCloneable,Serializable,Cloneable
- Direct Known Subclasses:
TLcdVectorIcon
An
ILcdResizeableIcon composed from multiple ILcdResizeableIcons.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIcon(ILcdResizeableIcon aIcon) Add an icon.clone()MakesObject.clone()public.booleangetIcon(int aIndex) Get the sub icon at the given index.intGet number of sub icons.intReturns the fixed height of the icon.intReturns the fixed width of the icon.inthashCode()voidDraw theILcdIconat the specified location.voidRemove all icons.voidremoveIcon(ILcdResizeableIcon aIcon) Remove an icon.voidsetIconHeight(int aHeight) Set the height of the icon.voidsetIconWidth(int aWidth) Set the width of the icon.
-
Constructor Details
-
TLcdCompositeIcon
public TLcdCompositeIcon()
-
-
Method Details
-
addIcon
Add an icon.- Parameters:
aIcon- an ILcdResizeableIcon.
-
removeIcon
Remove an icon.- Parameters:
aIcon- an ILcdResizeableIcon.
-
removeAll
public void removeAll()Remove all icons. -
getIconCount
public int getIconCount()Get number of sub icons.- Returns:
- number of sub icons.
-
getIcon
Get the sub icon at the given index.- Parameters:
aIndex- the index.- Returns:
- the ILcdResizeableIcon at the given index.
-
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.
-
setIconWidth
public void setIconWidth(int aWidth) Description copied from interface:ILcdResizeableIconSet the width of the icon.- Specified by:
setIconWidthin interfaceILcdResizeableIcon- Parameters:
aWidth- the new width.
-
setIconHeight
public void setIconHeight(int aHeight) Description copied from interface:ILcdResizeableIconSet the height of the icon.- Specified by:
setIconHeightin interfaceILcdResizeableIcon- Parameters:
aHeight- the new height.
-
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.
-
equals
-
hashCode
public int hashCode()
-