net.sourceforge.webcompmath.draw
Enum RationalLabel.HJust

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

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

Specify the horizontal justification for the rational label


Enum Constant Summary
CENTER
          Center the label horizontally on the point
LEFT
          Align the left edge of the label with the point
RIGHT
          Align the right edge of the label with the point
 
Method Summary
static RationalLabel.HJust valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RationalLabel.HJust[] 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.HJust CENTER
Center the label horizontally on the point


LEFT

public static final RationalLabel.HJust LEFT
Align the left edge of the label with the point


RIGHT

public static final RationalLabel.HJust RIGHT
Align the right edge of the label with the point

Method Detail

values

public static RationalLabel.HJust[] 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.HJust c : RationalLabel.HJust.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.HJust 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