com.alee.extended.label
Enum CustomStyle

java.lang.Object
  extended by java.lang.Enum<CustomStyle>
      extended by com.alee.extended.label.CustomStyle
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CustomStyle>

public enum CustomStyle
extends java.lang.Enum<CustomStyle>

Custom styling that can be applied to WebStyledLabel text.

Author:
Mikle Garin
See Also:
WebStyledLabel, StyleRange

Enum Constant Summary
doubleStrikeThrough
          Double strike-through text.
strikeThrough
          Single strike-through text.
subscript
          Subscript text.
superscript
          Superscript text.
underlined
          Underlined text.
waved
          Underlined with wave text.
 
Method Summary
static CustomStyle valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CustomStyle[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

underlined

public static final CustomStyle underlined
Underlined text.


waved

public static final CustomStyle waved
Underlined with wave text.


strikeThrough

public static final CustomStyle strikeThrough
Single strike-through text.


doubleStrikeThrough

public static final CustomStyle doubleStrikeThrough
Double strike-through text.


superscript

public static final CustomStyle superscript
Superscript text.


subscript

public static final CustomStyle subscript
Subscript text.

Method Detail

values

public static CustomStyle[] 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 (CustomStyle c : CustomStyle.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CustomStyle 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 name
java.lang.NullPointerException - if the argument is null