- All Implemented Interfaces:
Serializable
,Comparable<BasicStrokeParm.Cap>
- Enclosing class:
- BasicStrokeParm
End cap class.
This provides an enum corresponding to integer-valued
constants defined by java.awt.BasicStroke. The constants
define the type of decoration at the end of a line.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEnds enclosed subpaths and dash segments with no added decoration.Dash segments and enclosed subpaths end with a round decoration that has a radius equal to half the width of the pen.Ends enclosed subpaths and dash segments with a square projection that extends beyond the end of the segment by a distance equal to half of the line width. -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Get the integer constant matching a Cap enum constant.static BasicStrokeParm.Cap
Returns the enum constant of this type with the specified name.static BasicStrokeParm.Cap[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BUTT
Ends enclosed subpaths and dash segments with no added decoration. -
ROUND
Dash segments and enclosed subpaths end with a round decoration that has a radius equal to half the width of the pen. -
SQUARE
Ends enclosed subpaths and dash segments with a square projection that extends beyond the end of the segment by a distance equal to half of the line width.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getValue
public int getValue()Get the integer constant matching a Cap enum constant.- Returns:
- the integer constant defined by
BasicStroke
-