Chart FX 7 for Java Server

com.softwarefx
Enum FontStyle

java.lang.Object
  extended by java.lang.Enum<FontStyle>
      extended by com.softwarefx.FontStyle
All Implemented Interfaces:
Serializable, Comparable<FontStyle>

public enum FontStyle
extends Enum<FontStyle>

Specifies style information applied to text.


Enum Constant Summary
BOLD
          Bold text.
ITALIC
          Italic text.
REGULAR
          Regular text.
STRIKEOUT
          Text with a line through the middle.
UNDERLINE
          Underline text.
 
Method Summary
static EnumSet<FontStyle> getEnumSetValue(int value)
          Returns a EnumSet that represents the given numeric value.
static FontStyle getEnumValue(int value)
          Returns a Enum Item that represents the given numeric value.
static int getUnderlyingValue(EnumSet<FontStyle> value)
          Returns a numeric value that represents the given EnumSet or Enum item.
static int getUnderlyingValue(FontStyle value)
          Returns a numeric value that represents the given EnumSet or Enum item.
static FontStyle valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FontStyle[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

REGULAR

public static final FontStyle REGULAR
Regular text.


STRIKEOUT

public static final FontStyle STRIKEOUT
Text with a line through the middle.


ITALIC

public static final FontStyle ITALIC
Italic text.


BOLD

public static final FontStyle BOLD
Bold text.


UNDERLINE

public static final FontStyle UNDERLINE
Underline text.

Method Detail

values

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

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

valueOf

public static FontStyle valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getEnumSetValue

public static EnumSet<FontStyle> getEnumSetValue(int value)

Returns a EnumSet that represents the given numeric value.

Parameters:
value - numeric representation of the Enumset.

getEnumValue

public static FontStyle getEnumValue(int value)

Returns a Enum Item that represents the given numeric value.

Parameters:
value - numeric representation of the Enum item.

getUnderlyingValue

public static int getUnderlyingValue(FontStyle value)

Returns a numeric value that represents the given EnumSet or Enum item.

Parameters:
value - A Enum Item or EnumSet.

getUnderlyingValue

public static int getUnderlyingValue(EnumSet<FontStyle> value)

Returns a numeric value that represents the given EnumSet or Enum item.

Parameters:
value - A Enum Item or EnumSet.

http://www.softwarefx.com

2008 Software FX, Inc. All Rights Reserved. Chart FX is a registered trademark of Software FX, Inc
All other names are trademarks or registered trademarks of their respective owners.