Enum Class ColorHighlightPainter.TextDecoration
java.lang.Object
java.lang.Enum<ColorHighlightPainter.TextDecoration>
ro.sync.ecss.extensions.api.highlights.ColorHighlightPainter.TextDecoration
- All Implemented Interfaces:
Serializable
,Comparable<ColorHighlightPainter.TextDecoration>
,Constable
- Enclosing class:
- ColorHighlightPainter
public static enum ColorHighlightPainter.TextDecoration
extends Enum<ColorHighlightPainter.TextDecoration>
The decoration added to text.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ColorHighlightPainter.TextDecoration[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Normal text. No decoration. -
UNDERLINE
A line is drawn below the text. -
STRIKEOUT
A line is drawn through the text. -
BOTTOM
Similar to theUNDERLINE
decoration, except that the line is drawn a bit lower, in the lower part of the highlight rectangle.
-
-
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
-