public class IconDesc
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.Object |
DEFAULT
default icon
|
static java.lang.Object |
DISABLED
disabled icon
|
static java.lang.Object |
ROLLOVER
rollover icon
|
static java.lang.Object |
SELECTED
selected icon
|
static java.lang.Object |
SPLASH
splash icon
|
Constructor and Description |
---|
IconDesc(java.net.URL location,
java.lang.Object kind,
int width,
int height,
int depth,
int size)
Creates an icon descriptor with the specified information.
|
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.Object |
getKind()
Returns the icon type.
|
java.net.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.
|
public static final java.lang.Object DEFAULT
public static final java.lang.Object SELECTED
public static final java.lang.Object DISABLED
public static final java.lang.Object ROLLOVER
public static final java.lang.Object SPLASH
IconDesc(java.net.URL location, java.lang.Object kind, int width, int height, int depth, int size)
location
- the location of the iconkind
- the type of iconwidth
- the width, or -1 if unknownheight
- the height, or -1 if unknowndepth
- the depth, or -1 if unknownsize
- the size, or -1 if unknownpublic java.net.URL getLocation()
public java.lang.Object getKind()
public int getWidth()
public int getHeight()
public int getSize()
public int getDepth()