net.sourceforge.webcompmath.draw
Enum RationalLabel.VJust

java.lang.Object
  extended by java.lang.Enum<RationalLabel.VJust>
      extended by net.sourceforge.webcompmath.draw.RationalLabel.VJust
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RationalLabel.VJust>
Enclosing class:
RationalLabel

public static enum RationalLabel.VJust
extends java.lang.Enum<RationalLabel.VJust>

Specify the vertical justification for the rational label


Enum Constant Summary
BASELINE
          Align the baseline of the label with the point
BOTTOM
          Align the bottom of the label with the point
CENTER
          Center the label vertically on the point
TOP
          Align the top of the label with the point
 
Method Summary
static RationalLabel.VJust valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RationalLabel.VJust[] 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

CENTER

public static final RationalLabel.VJust CENTER
Center the label vertically on the point


TOP

public static final RationalLabel.VJust TOP
Align the top of the label with the point


BOTTOM

public static final RationalLabel.VJust BOTTOM
Align the bottom of the label with the point


BASELINE

public static final RationalLabel.VJust BASELINE
Align the baseline of the label with the point

Method Detail

values

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

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

valueOf

public static RationalLabel.VJust 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