Interface ILcdIcon

All Superinterfaces:
Cloneable, ILcdCloneable, Serializable
All Known Subinterfaces:
ILcdAnchoredIcon, ILcdResizeableIcon, ILcdS52Icon, ILcdS52Text
All Known Implementing Classes:
ALcdScaleIndicator, TLcdAnchoredIcon, TLcdAWTImageIcon, TLcdBingMapsCopyrightIcon, TLcdBingMapsGXYCopyrightIcon, TLcdBingMapsLogoIcon, TLcdBoxIcon, TLcdCGMIcon, TLcdCompositeIcon, TLcdContrastIcon, TLcdGreyIcon, TLcdGUIIcon, TLcdGXYScaleIndicator, TLcdHaloIcon, TLcdImageIcon, TLcdMessageIcon, TLcdResizeableIcon, TLcdRotatingIcon, TLcdS52CombinedIcon, TLcdS52Symbol, TLcdS52Text, TLcdShapeIcon, TLcdSingleIconProvider, TLcdSVGIcon, TLcdSymbol, TLcdTextIcon, TLcdTranslatedIcon, TLcdTTFIcon, TLcdVectorIcon, TLspBingMapsCopyrightIcon, TLspFXScaleIndicator, TLspScaleIndicator

public interface ILcdIcon extends Serializable, ILcdCloneable
A small fixed size picture, typically used to decorate components.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the fixed height of the icon.
    int
    Returns the fixed width of the icon.
    void
    paintIcon(Component aComponent, Graphics aGraphics, int aX, int aY)
    Draw the ILcdIcon at the specified location.

    Methods inherited from interface com.luciad.util.ILcdCloneable

    clone
  • Method Details

    • paintIcon

      void paintIcon(Component aComponent, Graphics aGraphics, int aX, int aY)
      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.
      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.
    • getIconWidth

      int getIconWidth()
      Returns the fixed width of the icon.
      Returns:
      the fixed width of the icon.
    • getIconHeight

      int getIconHeight()
      Returns the fixed height of the icon.
      Returns:
      the fixed height of the icon.