Class TLcdIconImageUtil

java.lang.Object
com.luciad.gui.TLcdIconImageUtil

@Deprecated public class TLcdIconImageUtil extends Object
Deprecated.
use TLcdImageIcon.getImage or ImageIO if you need to load Images.
Utility class to retrieve images. Used for internal purposes. It is not advised to use this class directly.
See Also:
  • Constructor Details

    • TLcdIconImageUtil

      @Deprecated public TLcdIconImageUtil(Class aClass, String[] aFilesNameArray)
      Deprecated.
      use TLcdIconImageUtil( String[] )
      Constructor with a predefined set of image data locations.
      Parameters:
      aClass - not used.
      aFilesNameArray - an array of locations of image data.
    • TLcdIconImageUtil

      public TLcdIconImageUtil(String[] aFilesNameArray)
      Deprecated.
      Constructor with a predefined set of image data locations.
      Parameters:
      aFilesNameArray - an array of locations of image data.
    • TLcdIconImageUtil

      public TLcdIconImageUtil()
      Deprecated.
  • Method Details

    • setClassTraceOn

      public static void setClassTraceOn(boolean aClassTraceOn)
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Enables tracing for all instances of this class. If the argument is true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
      Parameters:
      aClassTraceOn - if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
    • setTraceOn

      public void setTraceOn(boolean aTraceOn)
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Enables tracing for this class instance. Calling this method with either true or false as argument automatically turns off tracing for all other class instances for which setTraceOn has not been called. If the argument is false then only the informative, warning and error log messages are recorded.
      Parameters:
      aTraceOn - if true then all log messages are recorded for this instance. If false, then only the informative, warning and error log messages are recorded.
    • isTraceOn

      public boolean isTraceOn()
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Returns true if tracing is enabled for this class.
      Returns:
      true if tracing is enabled for this class, false otherwise.
    • setFilesNames

      @Deprecated public void setFilesNames(String[] aFilesNames)
      Deprecated.
    • getIconWidth

      public int getIconWidth(short aType)
      Deprecated.
      Returns:
      the fixed width of the icon.
    • getIconHeight

      @Deprecated public int getIconHeight(short aType)
      Deprecated.
      use Image#getHeight directly
      Returns:
      the fixed height of the icon.
    • paintIcon

      @Deprecated public void paintIcon(short aType, Component c, Graphics g)
      Deprecated.
      use Graphics#drawImage directly
      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.
    • paintIcon

      @Deprecated public void paintIcon(short aType, int aSize, Component c, Graphics g, int x, int y)
      Deprecated.
      use Graphics#drawImage
    • paintIcon

      @Deprecated public void paintIcon(short aType, int aWidth, int aHeight, Component c, Graphics g, int x, int y)
      Deprecated.
      use Graphics#drawImage
    • paintIcon

      @Deprecated public void paintIcon(short aType, Component c, Graphics g, int x, int y)
      Deprecated.
      use Graphics#drawImage
      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.
    • getImage

      @Deprecated public Image getImage(short aIndex, Class aClass)
      Deprecated.
      use getImage( String ).
      Returns and caches the image that is based on the data stored on the location of the entry aIndex in the file names set.
      Parameters:
      aIndex - the index in the file names array.
      aClass - not used.
      Returns:
      an image constructed from the data stored if the index is within the length of the file names array set.
    • getImage

      @Deprecated public Image getImage(short aIndex, Class aClass, Component aComponent)
      Deprecated.
      use getImage( String ).
      Returns and caches the image that is based on the data stored on the location of the entry aIndex in the file names set.
      Parameters:
      aIndex - the index in the file names array.
      aClass - not used.
      aComponent - not used.
      Returns:
      an image constructed from the data stored if the index is within the length of the file names array set.
    • getImage

      @Deprecated public Image getImage(short aIndex)
      Deprecated.
      use getImage( String ).
      Returns and caches the image that is based on the data stored on the location of the entry aIndex in the file names set.
      Parameters:
      aIndex - the index in the file names array.
      Returns:
      an image constructed from the data stored if the index is within the length of the file names array set.
    • getImage

      public Image getImage(String aImageName, Class aClass)
      Deprecated.
      use getImage( String )
      Creates an image from the data stored in the location parameter and caches it.
      Parameters:
      aImageName - the location where the image data is stored.
      aClass - not used.
      Returns:
      an image constructed from the data in the location passed.
    • getImage

      public Image getImage(String aImageName, Class aClass, Component aComponent)
      Deprecated.
      use getImage( String )
      Creates an image from the data stored in the location parameter and caches it.
      Parameters:
      aImageName - the location where the image data is stored.
      aClass - not used.
      aComponent - not used.
      Returns:
      an image constructed from the data in the location passed.
    • getImage

      public Image getImage(String aImageName)
      Deprecated.
      Creates an image from the data stored in the location parameter and caches it.
      Parameters:
      aImageName - the location where the image data is stored.
      Returns:
      an image constructed from the data in the location passed.
    • loadImage

      public Image loadImage(String resourceName, Class aClass)
      Deprecated.
    • loadImage

      public Image loadImage(String resourceName, Class aClass, Component aComponent)
      Deprecated.
      use loadImage(String) instead.
      Creates an image from the data stored in the given resource location.
      Parameters:
      resourceName - the location of the file to create an image from.
      aClass - not used.
      aComponent - not used.
      Returns:
      an Image created from the data stored in aResourceLocation.
    • loadImage

      public Image loadImage(String aResourceLocation)
      Deprecated.
      Creates an image from the data stored in the given resource location.
      Parameters:
      aResourceLocation - the location of the file to create an image from.
      Returns:
      an Image created from the data stored in aResourceLocation.
    • toString

      public String toString(short aImageIndex)
      Deprecated.