Package io.guise.framework.style
Enum LineStyle
- java.lang.Object
-
- java.lang.Enum<LineStyle>
-
- io.guise.framework.style.LineStyle
-
- All Implemented Interfaces:
com.globalmentor.lex.Identifier
,com.globalmentor.lex.Token
,java.io.Serializable
,java.lang.Comparable<LineStyle>
public enum LineStyle extends java.lang.Enum<LineStyle> implements com.globalmentor.lex.Identifier
The style of a line, such as used for a border or divider.- Author:
- Garret Wilson
- See Also:
- CSS3 Backgrounds and Borders Module: border-style
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DASHED
A series of dashes.DOT_DASH
Alternating dots and dashes.DOT_DOT_DASH
Two dots and a dash.DOTTED
A series of dots.DOUBLE
Two parallel solid lines with some spaces between them, the lines together with the space equalling any line width specified.GROOVE
Effect emulating carving on a canvas; typically achieved by using two colors slightly lighter and darker than the line color.INSET
Effect simulating a sunken canvas.RIDGE
Effect simulating a line coming out of the canvas.SOLID
A single line segment.WAVE
A wavy line.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LineStyle
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LineStyle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOTTED
public static final LineStyle DOTTED
A series of dots.
-
DASHED
public static final LineStyle DASHED
A series of dashes.
-
SOLID
public static final LineStyle SOLID
A single line segment.
-
DOUBLE
public static final LineStyle DOUBLE
Two parallel solid lines with some spaces between them, the lines together with the space equalling any line width specified.
-
DOT_DASH
public static final LineStyle DOT_DASH
Alternating dots and dashes.
-
DOT_DOT_DASH
public static final LineStyle DOT_DOT_DASH
Two dots and a dash.
-
WAVE
public static final LineStyle WAVE
A wavy line.
-
GROOVE
public static final LineStyle GROOVE
Effect emulating carving on a canvas; typically achieved by using two colors slightly lighter and darker than the line color.
-
RIDGE
public static final LineStyle RIDGE
Effect simulating a line coming out of the canvas.
-
INSET
public static final LineStyle INSET
Effect simulating a sunken canvas.
-
-
Method Detail
-
values
public static LineStyle[] 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 (LineStyle c : LineStyle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LineStyle valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-