Package org.pepstock.charba.client.enums
Enum CapStyle
- java.lang.Object
-
- java.lang.Enum<CapStyle>
-
- org.pepstock.charba.client.enums.CapStyle
-
- All Implemented Interfaces:
Serializable
,Comparable<CapStyle>
,Key
public enum CapStyle extends Enum<CapStyle> implements Key
Determines how the end points of every line are drawn.
There are three possible values for this property and those are: butt, round and square. By default this property is set to butt.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
value()
Returns the name value of propertystatic CapStyle
valueOf(String name)
Returns the enum constant of this type with the specified name.static CapStyle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BUTT
public static final CapStyle BUTT
The ends of lines are squared off at the end points.
Default.
-
ROUND
public static final CapStyle ROUND
The ends of lines are rounded.
-
SQUARE
public static final CapStyle SQUARE
The ends of lines are squared off by adding a box with an equal width and half the height of the line's thickness.
-
-
Method Detail
-
values
public static CapStyle[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CapStyle c : CapStyle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CapStyle valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-