org.fuin.objects4j
Enum FontSizeUnit

java.lang.Object
  extended by java.lang.Enum<FontSizeUnit>
      extended by org.fuin.objects4j.FontSizeUnit
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FontSizeUnit>

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

Unit of a given font size. 1em = 12pt = 16px = 100%


Enum Constant Summary
EM
          Scalable unit that is used in web document media.
PERCENT
          The current font-size is equal to 100% (i.e. 12pt = 100%).
PIXEL
          Fixed-size units that are used in screen media.
POINT
          Traditionally used in print media - One point is equal to 1/72 of an inch.
 
Method Summary
static FontSizeUnit valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FontSizeUnit[] 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

POINT

public static final FontSizeUnit POINT
Traditionally used in print media - One point is equal to 1/72 of an inch.


PIXEL

public static final FontSizeUnit PIXEL
Fixed-size units that are used in screen media.


EM

public static final FontSizeUnit EM
Scalable unit that is used in web document media.


PERCENT

public static final FontSizeUnit PERCENT
The current font-size is equal to 100% (i.e. 12pt = 100%).

Method Detail

values

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

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

valueOf

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


Copyright © 2010 Future Invent Informationsmanagement GmbH. All Rights Reserved.