Class IconDesc
java.lang.Object
net.adoptopenjdk.icedteaweb.jnlp.element.information.IconDesc
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intthe depth, or -1 if unknownstatic final Stringprivate final intthe height, or -1 if unknownstatic final Stringstatic final Stringstatic final Stringprivate final IconKindUsed to indicate the use of the icon, such as default, selected, disabled, rollover, splash, and shortcut.static final Stringprivate final URLthe location of the iconprivate final intthe size, or -1 if unknownstatic final Stringprivate final intthe width, or -1 if unknownstatic final String -
Constructor Summary
Constructors -
Method Summary
-
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:
-
location
the location of the icon -
kind
Used to indicate the use of the icon, such as default, selected, disabled, rollover, splash, and shortcut. -
width
private final int widththe width, or -1 if unknown -
height
private final int heightthe height, or -1 if unknown -
depth
private final int depththe depth, or -1 if unknown -
size
private final int sizethe size, or -1 if unknown
-
-
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.
-