Class IconDesc

java.lang.Object
net.adoptopenjdk.icedteaweb.jnlp.element.information.IconDesc

public class IconDesc extends Object
The icon element.
Version:
$Revision: 1.8 $
  • Field Details

    • ICON_ELEMENT

      public static final String ICON_ELEMENT
      See Also:
    • KIND_ATTRIBUTE

      public static final String KIND_ATTRIBUTE
      See Also:
    • WIDTH_ATTRIBUTE

      public static final String WIDTH_ATTRIBUTE
      See Also:
    • HEIGHT_ATTRIBUTE

      public static final String HEIGHT_ATTRIBUTE
      See Also:
    • SIZE_ATTRIBUTE

      public static final String SIZE_ATTRIBUTE
      See Also:
    • DEPTH_ATTRIBUTE

      public static final String DEPTH_ATTRIBUTE
      See Also:
    • HREF_ATTRIBUTE

      public static final String HREF_ATTRIBUTE
      See Also:
    • location

      private final 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 Details

    • IconDesc

      public IconDesc(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 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

    • getLocation

      public 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.