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 ILcdResizeableIcon
s.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addIcon
(ILcdResizeableIcon aIcon) Add an icon.clone()
MakesObject.clone()
public.boolean
getIcon
(int aIndex) Get the sub icon at the given index.int
Get number of sub icons.int
Returns the fixed height of the icon.int
Returns the fixed width of the icon.int
hashCode()
void
Draw theILcdIcon
at the specified location.void
Remove all icons.void
removeIcon
(ILcdResizeableIcon aIcon) Remove an icon.void
setIconHeight
(int aHeight) Set the height of the icon.void
setIconWidth
(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:ILcdCloneable
Makes
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:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classObject
- See Also:
-
getIconHeight
public int getIconHeight()Description copied from interface:ILcdIcon
Returns the fixed height of the icon.- Specified by:
getIconHeight
in interfaceILcdIcon
- Returns:
- the fixed height of the icon.
-
getIconWidth
public int getIconWidth()Description copied from interface:ILcdIcon
Returns the fixed width of the icon.- Specified by:
getIconWidth
in interfaceILcdIcon
- Returns:
- the fixed width of the icon.
-
setIconWidth
public void setIconWidth(int aWidth) Description copied from interface:ILcdResizeableIcon
Set the width of the icon.- Specified by:
setIconWidth
in interfaceILcdResizeableIcon
- Parameters:
aWidth
- the new width.
-
setIconHeight
public void setIconHeight(int aHeight) Description copied from interface:ILcdResizeableIcon
Set the height of the icon.- Specified by:
setIconHeight
in interfaceILcdResizeableIcon
- Parameters:
aHeight
- the new height.
-
paintIcon
Description copied from interface:ILcdIcon
Draw theILcdIcon
at the specified location.ILcdIcon
implementations may use theComponent
argument to get properties useful for painting, e.g. the foreground or background color.- Specified by:
paintIcon
in 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()
-