|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwindx.applications.worldwindow.core.ImageLibrary
public class ImageLibrary
| Constructor Summary | |
|---|---|
ImageLibrary()
|
|
| Method Summary | |
|---|---|
static ImageIcon |
getIcon(String iconName)
Retrun the icon associated with a specified name. |
static String |
getIconName(Icon icon)
Return the name associated with a specified icon. |
static BufferedImage |
getImage(String imageName)
Retrun the image associated with a specified name. |
static BufferedImage |
getImageForIcon(Icon icon)
Returns the image associated with a specified icon. |
static String |
getImageName(BufferedImage image)
Return the name associated with a specified image. |
static URL |
getImageURL(String imageName)
|
static Icon |
getWarningIcon(int size)
Returns a warning icon, an icon that can be used when a desired icon is not available. |
static BufferedImage |
getWarningImage(int size)
Returns a warning image, an image that can be used when a desired image is not available. |
protected void |
loadWarningImages()
|
static Object |
register(String name,
Object image)
Register an image with the library. |
static void |
setInstance(ImageLibrary library)
Specify the instance for this conceptual singleton. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageLibrary()
| Method Detail |
|---|
public static ImageIcon getIcon(String iconName)
iconName - the name of the desired icon.
public static String getIconName(Icon icon)
icon - the icon whose name to return.
public static BufferedImage getImage(String imageName)
imageName - the name of the desired image.
public static BufferedImage getImageForIcon(Icon icon)
icon - the icon whose image is desired.
public static String getImageName(BufferedImage image)
image - the image whose name to return.
public static URL getImageURL(String imageName)
public static Icon getWarningIcon(int size)
size - the desired icon size in pixels, either 16, 24, 32 or 64.
public static BufferedImage getWarningImage(int size)
size - the desired image size in pixels, either 16, 24, 32 or 64.
protected void loadWarningImages()
public static Object register(String name,
Object image)
name - the image name. If null the image is not registered.image - the image. If null the image is not registered.
image argument.public static void setInstance(ImageLibrary library)
library - the image library instance.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||