Class IconDesc
- java.lang.Object
-
- net.adoptopenjdk.icedteaweb.jnlp.element.information.IconDesc
-
public class IconDesc extends java.lang.ObjectThe icon element.- Version:
- $Revision: 1.8 $
-
-
Field Summary
Fields Modifier and Type Field Description private intdepththe depth, or -1 if unknownstatic java.lang.StringDEPTH_ATTRIBUTEprivate intheightthe height, or -1 if unknownstatic java.lang.StringHEIGHT_ATTRIBUTEstatic java.lang.StringHREF_ATTRIBUTEstatic java.lang.StringICON_ELEMENTprivate IconKindkindUsed to indicate the use of the icon, such as default, selected, disabled, rollover, splash, and shortcut.static java.lang.StringKIND_ATTRIBUTEprivate java.net.URLlocationthe location of the iconprivate intsizethe size, or -1 if unknownstatic java.lang.StringSIZE_ATTRIBUTEprivate intwidththe width, or -1 if unknownstatic java.lang.StringWIDTH_ATTRIBUTE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDepth()intgetHeight()IconKindgetKind()java.net.URLgetLocation()intgetSize()intgetWidth()
-
-
-
Field Detail
-
ICON_ELEMENT
public static final java.lang.String ICON_ELEMENT
- See Also:
- Constant Field Values
-
KIND_ATTRIBUTE
public static final java.lang.String KIND_ATTRIBUTE
- See Also:
- Constant Field Values
-
WIDTH_ATTRIBUTE
public static final java.lang.String WIDTH_ATTRIBUTE
- See Also:
- Constant Field Values
-
HEIGHT_ATTRIBUTE
public static final java.lang.String HEIGHT_ATTRIBUTE
- See Also:
- Constant Field Values
-
SIZE_ATTRIBUTE
public static final java.lang.String SIZE_ATTRIBUTE
- See Also:
- Constant Field Values
-
DEPTH_ATTRIBUTE
public static final java.lang.String DEPTH_ATTRIBUTE
- See Also:
- Constant Field Values
-
HREF_ATTRIBUTE
public static final java.lang.String HREF_ATTRIBUTE
- See Also:
- Constant Field Values
-
location
private final java.net.URL location
the location of the icon
-
kind
private final IconKind kind
Used to indicate the use of the icon, such as default, selected, disabled, rollover, splash, and shortcut.
-
width
private final int width
the width, or -1 if unknown
-
height
private final int height
the height, or -1 if unknown
-
depth
private final int depth
the depth, or -1 if unknown
-
size
private final int size
the size, or -1 if unknown
-
-
Constructor Detail
-
IconDesc
public IconDesc(java.net.URL location, IconKind kind, int width, int height, int depth, int size)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 Detail
-
getLocation
public java.net.URL getLocation()
- Returns:
- the location of the icon.
-
getKind
public IconKind 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.
-
-