public enum RangeStyle extends Enum<RangeStyle>
Enum Constant and Description |
---|
BOUNCE
The turtle is bounced from the range border.
|
FENCE
The turtle is moved to the position inside the range nearest to the
target position.
|
WINDOW
Range is not considered.
|
WRAP
The turtle disappears on the border and appears on the opposite border
side.
|
Modifier and Type | Method and Description |
---|---|
static RangeStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RangeStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RangeStyle BOUNCE
public static final RangeStyle FENCE
public static final RangeStyle WINDOW
public static final RangeStyle WRAP
public static RangeStyle[] values()
for (RangeStyle c : RangeStyle.values()) System.out.println(c);
public static RangeStyle 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 nullCopyright © 2017. All rights reserved.