SourceForge.net Logo
aXSL API 0.2

org.axsl.common.value
Enum Baseline

java.lang.Object
  extended by java.lang.Enum<Baseline>
      extended by org.axsl.common.value.Baseline
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Baseline>

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

An enumeration of the possible baseline values.


Enum Constant Summary
ALPHABETIC
          Constant indicating an alphabetic baseline.
CENTRAL
          Constant indicating a central baseline.
HANGING
          Constant indicating a hanging baseline.
IDEOGRAPHIC
          Constant indicating an ideographic baseline.
MATHEMATICAL
          Constant indicating a mathematical baseline.
MIDDLE
          Constant indicating a middle baseline.
TEXT_AFTER_EDGE
          Constant indicating a text-after-edge baseline.
TEXT_BEFORE_EDGE
          Constant indicating a text-before-edge baseline.
 
Method Summary
static Baseline valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Baseline[] values()
          Returns an array containing the constants of this enum type, in the order they're 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

ALPHABETIC

public static final Baseline ALPHABETIC
Constant indicating an alphabetic baseline.


IDEOGRAPHIC

public static final Baseline IDEOGRAPHIC
Constant indicating an ideographic baseline.


HANGING

public static final Baseline HANGING
Constant indicating a hanging baseline.


MATHEMATICAL

public static final Baseline MATHEMATICAL
Constant indicating a mathematical baseline.


CENTRAL

public static final Baseline CENTRAL
Constant indicating a central baseline.


MIDDLE

public static final Baseline MIDDLE
Constant indicating a middle baseline.


TEXT_BEFORE_EDGE

public static final Baseline TEXT_BEFORE_EDGE
Constant indicating a text-before-edge baseline.


TEXT_AFTER_EDGE

public static final Baseline TEXT_AFTER_EDGE
Constant indicating a text-after-edge baseline.

Method Detail

values

public static final Baseline[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Baseline c : Baseline.values())
        System.out.println(c);

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

valueOf

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

SourceForge.net Logo
aXSL API 0.2

This documentation was created August 8 2007 by The aXSL Group and may be freely copied. See license for details.