public enum Images extends Enum<Images>
Enum Constant and Description |
---|
BLANK
The enum associated with a blank square.
|
COVER
The enum associated with a covered square.
|
FLAG
The enum associated with a flagged square.
|
MINE
The enum associated with a mined square.
|
NUMBER1
The enum associated with a square with 1 mine touching it.
|
NUMBER2
The enum associated with a square with 2 mines touching it.
|
NUMBER3
The enum associated with a square with 3 mines touching it.
|
NUMBER4
The enum associated with a square with 4 mines touching it.
|
NUMBER5
The enum associated with a square with 5 mines touching it.
|
NUMBER6
The enum associated with a square with 6 mines touching it.
|
NUMBER7
The enum associated with a square with 7 mines touching it.
|
NUMBER8
The enum associated with a square with 8 mines touching it.
|
Modifier and Type | Field and Description |
---|---|
private Image |
image
The
Image to be displayed. |
private String |
path
The pathname for
Image to be displayed. |
Modifier and Type | Method and Description |
---|---|
static Image |
getImage(String path)
Return
Image associated with path . |
Image |
image()
Return
Image to be displayed. |
String |
path()
Return pathname for
Image to be displayed. |
static Images |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Images[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Images NUMBER1
public static final Images NUMBER2
public static final Images NUMBER3
public static final Images NUMBER4
public static final Images NUMBER5
public static final Images NUMBER6
public static final Images NUMBER7
public static Images[] values()
for (Images c : Images.values()) System.out.println(c);
public static Images 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 String path()
Image
to be displayed.Image
to be displayedCopyright © 2018. All rights reserved.