Skip to main content
Package: com.phoenix_int.aserver.util Class Hierarchy

Declaration
This class provides utility functions for loading and creating an icon file.

Constructor Summary

Method Summary

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

PHXIcon

Creates an icon with values set to “unknown”.

PHXIcon

Parameters:
  • iconFileName - the file containing the icon
Throws:
  • java.io.IOException - thrown if there is a problem opening or reading the icon file

PHXIcon

Parameters:
  • iconData - the data making up the file
  • iconType - the data type (gif, jpg, etc)

Method Detail

getData

Retrieves the data for the image. Returns:
  • the data for the image

getType

Retrieves the type for the image. Returns:
  • the type for the image

toImage

Converts the icon to an Image. Returns:
  • an image based solely on the data.

getIconFileName

Gets the file name of the icon. This will return an empty String if the file name is not available. Returns:
  • the file name of the icon, or null if not specified

getIconURI

Gets the URI of the icon. If the URI is not available, this will return null. Returns:
  • the URI of the icon, or null if not available