Class TLcdCompositeIcon

java.lang.Object
com.luciad.gui.TLcdCompositeIcon
All Implemented Interfaces:
ILcdIcon, ILcdResizeableIcon, ILcdCloneable, Serializable, Cloneable
Direct Known Subclasses:
TLcdVectorIcon

public class TLcdCompositeIcon extends Object implements ILcdResizeableIcon, Cloneable
An ILcdResizeableIcon composed from multiple ILcdResizeableIcons.
See Also:
  • Constructor Details

    • TLcdCompositeIcon

      public TLcdCompositeIcon()
  • Method Details

    • addIcon

      public void addIcon(ILcdResizeableIcon aIcon)
      Add an icon.
      Parameters:
      aIcon - an ILcdResizeableIcon.
    • removeIcon

      public void removeIcon(ILcdResizeableIcon aIcon)
      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

      public ILcdResizeableIcon getIcon(int aIndex)
      Get the sub icon at the given index.
      Parameters:
      aIndex - the index.
      Returns:
      the ILcdResizeableIcon at the given index.
    • clone

      public Object clone()
      Description copied from interface: ILcdCloneable

      Makes Object.clone() public.

      When for example extending from 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 interface ILcdCloneable
      Overrides:
      clone in class Object
      See Also:
    • getIconHeight

      public int getIconHeight()
      Description copied from interface: ILcdIcon
      Returns the fixed height of the icon.
      Specified by:
      getIconHeight in interface ILcdIcon
      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 interface ILcdIcon
      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 interface ILcdResizeableIcon
      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 interface ILcdResizeableIcon
      Parameters:
      aHeight - the new height.
    • paintIcon

      public void paintIcon(Component aComponent, Graphics aGraphics, int aX, int aY)
      Description copied from interface: ILcdIcon
      Draw the ILcdIcon at the specified location. ILcdIcon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color.
      Specified by:
      paintIcon in interface ILcdIcon
      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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object