Enum Class CheckerVectorGraphics

java.lang.Object
java.lang.Enum<CheckerVectorGraphics>
org.refcodes.data.ext.checkers.CheckerVectorGraphics
All Implemented Interfaces:
Serializable, Comparable<CheckerVectorGraphics>, Constable, org.refcodes.data.DataLocator

public enum CheckerVectorGraphics extends Enum<CheckerVectorGraphics> implements org.refcodes.data.DataLocator
The CheckerVectorGraphics defines the pixmaps which can be retrieved by the according CheckerVectorGraphicsUrlFactory and CheckerVectorGraphicsInputStreamFactory.
Author:
steiner
  • Enum Constant Details

  • Method Details

    • values

      public static CheckerVectorGraphics[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CheckerVectorGraphics valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getDataUrl

      public URL getDataUrl()
      Specified by:
      getDataUrl in interface org.refcodes.data.DataLocator
    • getDataInputStream

      public InputStream getDataInputStream()
      Specified by:
      getDataInputStream in interface org.refcodes.data.DataLocator
    • fromName

      public static CheckerVectorGraphics fromName(String aPixmapName)
      Retrieves the enumeration element representing the given vector graphics name (ignoring the case) or null if none was found.
      Parameters:
      aPixmapName - The pixmap name for which to get the enumeration element.
      Returns:
      The enumeration element determined or null if none matching was found.