Class IconDesc
java.lang.Object
net.adoptopenjdk.icedteaweb.jnlp.element.information.IconDesc
The icon element.
- Version:
- $Revision: 1.8 $
- Author:
- Jon A. Maxwell (JAM) - initial author
-
Field Details
-
ICON_ELEMENT
- See Also:
-
KIND_ATTRIBUTE
- See Also:
-
WIDTH_ATTRIBUTE
- See Also:
-
HEIGHT_ATTRIBUTE
- See Also:
-
SIZE_ATTRIBUTE
- See Also:
-
DEPTH_ATTRIBUTE
- See Also:
-
HREF_ATTRIBUTE
- See Also:
-
-
Constructor Details
-
IconDesc
Creates an icon descriptor with the specified information.- Parameters:
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 unknown
-
-
Method Details
-
getLocation
- Returns:
- the location of the icon.
-
getKind
- Returns:
- the icon type.
-
getWidth
public int getWidth()- Returns:
- the icon width or -1 if not specified in the JNLPFile.
-
getHeight
public int getHeight()- Returns:
- the icon height or -1 if not specified in the JNLPFile.
-
getSize
public int getSize()- Returns:
- the icon size or -1 if not specified in the JNLPFile.
-
getDepth
public int getDepth()- Returns:
- the icon depth or -1 if not specified in the JNLPFile.
-