public static enum Paint.Cap extends Enum<Paint.Cap>
Enum Constant and Description |
---|
BUTT
The stroke ends with the path, and does not project beyond it.
|
ROUND
The stroke projects out as a semicircle, with the center at the
end of the path.
|
SQUARE
The stroke projects out as a square, with the center at the end
of the path.
|
Modifier and Type | Method and Description |
---|---|
static Paint.Cap |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Paint.Cap[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Paint.Cap BUTT
public static final Paint.Cap ROUND
public static final Paint.Cap SQUARE
public static Paint.Cap[] values()
for (Paint.Cap c : Paint.Cap.values()) System.out.println(c);
public static Paint.Cap 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 null