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 Link icon

    • TLcdIconImageUtil Link icon

      @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 Link icon

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

      public TLcdIconImageUtil()
      Deprecated.
  • Method Details Link icon

    • setClassTraceOn Link icon

      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 Link icon

      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 Link icon

      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 Link icon

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

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

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

      @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 Link icon

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

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

      @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 Link icon

      @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 Link icon

      @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 Link icon

      @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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

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

      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 Link icon

      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 Link icon

      public String toString(short aImageIndex)
      Deprecated.