Enum Class LineStyle
- All Implemented Interfaces:
Serializable,Comparable<LineStyle>,Constable
SimpleShape中的线条风格枚举
- Since:
- Java 17+
- Author:
- Kimi Liu
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPS_DASHDOTDOT system dash styledash short dashPS_DASHDOT system dash styledash stylePS_DASH system dash stylesquare dot stylePS_DOT system dash stylelong dash short dash short dashlong dash short dashlong dash style无Solid (continuous) pen -
Method Summary
-
Enum Constant Details
-
SOLID
Solid (continuous) pen -
DASHSYS
PS_DASH system dash style -
DOTSYS
PS_DOT system dash style -
DASHDOTSYS
PS_DASHDOT system dash style -
DASHDOTDOTSYS
PS_DASHDOTDOT system dash style -
DOTGEL
square dot style -
DASHGEL
dash style -
LONGDASHGEL
long dash style -
DASHDOTGEL
dash short dash -
LONGDASHDOTGEL
long dash short dash -
LONGDASHDOTDOTGEL
long dash short dash short dash -
NONE
无
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()获取样式编码- Returns:
- 样式编码
-