Serializable
, Comparable<CheckerVectorGraphics>
, org.refcodes.data.DataLocator
public enum CheckerVectorGraphics extends Enum<CheckerVectorGraphics> implements org.refcodes.data.DataLocator
CheckerVectorGraphics
defines the pixmaps which can be retrieved
by the according CheckerVectorGraphicsUrlFactory
and
CheckerVectorGraphicsInputStreamFactory
.Enum Constant | Description |
---|---|
FXML_PIECE_GRAY |
|
FXML_PIECE_RED |
|
FXML_PIECE_WHITE |
|
SVG_PIECE_GRAY |
|
SVG_PIECE_RED |
|
SVG_PIECE_WHITE |
Modifier and Type | Method | Description |
---|---|---|
static CheckerVectorGraphics |
fromName(String aPixmapName) |
Retrieves the enumeration element representing the given vector graphics
name (ignoring the case) or null if none was found.
|
InputStream |
getDataInputStream() |
|
URL |
getDataUrl() |
|
static CheckerVectorGraphics |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static CheckerVectorGraphics[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CheckerVectorGraphics SVG_PIECE_GRAY
public static final CheckerVectorGraphics FXML_PIECE_GRAY
public static final CheckerVectorGraphics SVG_PIECE_RED
public static final CheckerVectorGraphics FXML_PIECE_RED
public static final CheckerVectorGraphics SVG_PIECE_WHITE
public static final CheckerVectorGraphics FXML_PIECE_WHITE
public static CheckerVectorGraphics[] values()
for (CheckerVectorGraphics c : CheckerVectorGraphics.values()) System.out.println(c);
public static CheckerVectorGraphics valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic URL getDataUrl()
getDataUrl
in interface org.refcodes.data.DataLocator
public InputStream getDataInputStream()
getDataInputStream
in interface org.refcodes.data.DataLocator
public static CheckerVectorGraphics fromName(String aPixmapName)
aPixmapName
- The pixmap name for which to get the enumeration
element.Copyright © 2021. All rights reserved.