Package com.luciad.format.s52
Class TLcdS52CombinedIcon
java.lang.Object
com.luciad.format.s52.TLcdS52CombinedIcon
- All Implemented Interfaces:
ILcdIcon
,ILcdCloneable
,Serializable
,Cloneable
This ILcdIcon combines of one or more ILcdIcon instances. They are painted in the order in which
they are listed.
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a new TLcdS52CombinedIcon.TLcdS52CombinedIcon
(ILcdIcon[] aIcons) Creates a new TLcdS52CombinedIcon with the given icons. -
Method Summary
Modifier and TypeMethodDescriptionclone()
MakesObject.clone()
public.boolean
int
Returns the fixed height of the icon.ILcdIcon[]
getIcons()
Returns the list of icons defining this combined icon.int
Returns the fixed width of the icon.int
hashCode()
void
Draw theILcdIcon
at the specified location.void
Sets the icons.
-
Constructor Details
-
TLcdS52CombinedIcon
public TLcdS52CombinedIcon()Creates a new TLcdS52CombinedIcon. -
TLcdS52CombinedIcon
Creates a new TLcdS52CombinedIcon with the given icons.
-
-
Method Details
-
setIcons
Sets the icons. -
getIcons
Returns the list of icons defining this combined icon.- Returns:
- the list of icons defining this combined icon.
-
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.
-
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.
-
equals
-
hashCode
public int hashCode() -
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:
-