com.osbcp.css.constants
Enum FontWeight

java.lang.Object
  extended by java.lang.Enum<FontWeight>
      extended by com.osbcp.css.constants.FontWeight
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FontWeight>

public enum FontWeight
extends java.lang.Enum<FontWeight>
implements java.io.Serializable

Values for the font-weight property.

Author:
Christoffer Pettersson
See Also:
CSS font-weight Property

Enum Constant Summary
BOLD
          Defines thick characters.
BOLDER
          Defines thicker characters.
LIGHTER
          Defines lighter characters.
NORMAL
          Defines normal characters.
W100
          Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold.
W200
          Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold.
W300
          Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold.
W400
          Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold.
W500
           
W600
          Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold.
W700
          Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold.
W800
          Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold.
W900
          Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold.
 
Method Summary
 java.lang.String toString()
           
static FontWeight valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FontWeight[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NORMAL

public static final FontWeight NORMAL
Defines normal characters. This is default.


BOLD

public static final FontWeight BOLD
Defines thick characters.


BOLDER

public static final FontWeight BOLDER
Defines thicker characters.


LIGHTER

public static final FontWeight LIGHTER
Defines lighter characters.


W100

public static final FontWeight W100
Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold.


W200

public static final FontWeight W200
Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold.


W300

public static final FontWeight W300
Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold.


W400

public static final FontWeight W400
Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold.


W500

public static final FontWeight W500

W600

public static final FontWeight W600
Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold.


W700

public static final FontWeight W700
Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold.


W800

public static final FontWeight W800
Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold.


W900

public static final FontWeight W900
Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold.

Method Detail

values

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

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

valueOf

public static FontWeight 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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<FontWeight>