netx.jnlp

Class IconDesc


public class IconDesc
extends java.lang.Object

The icon element.
Version:
$Revision: 1.8 $
Author:
Jon A. Maxwell (JAM) - initial author

Field Summary

static Object
DEFAULT
default icon
static Object
DISABLED
disabled icon
static Object
ROLLOVER
rollover icon
static Object
SELECTED
selected icon
static Object
SPLASH
splash icon

Constructor Summary

IconDesc(URL location, Object kind, int width, int height, int depth, int size)
Creates an icon descriptor with the specified information.

Method Summary

int
getDepth()
Returns the icon depth or -1 if not specified in the JNLPFile.
int
getHeight()
Returns the icon height or -1 if not specified in the JNLPFile.
Object
getKind()
Returns the icon type.
URL
getLocation()
Returns the location of the icon.
int
getSize()
Returns the icon size or -1 if not specified in the JNLPFile.
int
getWidth()
Returns the icon width or -1 if not specified in the JNLPFile.

Field Details

DEFAULT

public static final Object DEFAULT
default icon

DISABLED

public static final Object DISABLED
disabled icon

ROLLOVER

public static final Object ROLLOVER
rollover icon

SELECTED

public static final Object SELECTED
selected icon

SPLASH

public static final Object SPLASH
splash icon

Constructor Details

IconDesc

(package private)  IconDesc(URL location,
                            Object kind,
                            int width,
                            int height,
                            int depth,
                            int size)
Creates an icon descriptor with the specified information.
Parameters:
location - the location of the icon
kind - the type of icon
width - the width, or -1 if unknown
height - the height, or -1 if unknown
depth - the depth, or -1 if unknown
size - the size, or -1 if unknown

Method Details

getDepth

public int getDepth()
Returns the icon depth or -1 if not specified in the JNLPFile.

getHeight

public int getHeight()
Returns the icon height or -1 if not specified in the JNLPFile.

getKind

public Object getKind()
Returns the icon type.

getLocation

public URL getLocation()
Returns the location of the icon.

getSize

public int getSize()
Returns the icon size or -1 if not specified in the JNLPFile.

getWidth

public int getWidth()
Returns the icon width or -1 if not specified in the JNLPFile.