com.partnersoft.formats.dxf
Enum DxfHorizontalJustification
java.lang.Object
java.lang.Enum<DxfHorizontalJustification>
com.partnersoft.formats.dxf.DxfHorizontalJustification
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<DxfHorizontalJustification>
public enum DxfHorizontalJustification
- extends java.lang.Enum<DxfHorizontalJustification>
Methods of justifying text horizontally (along X axis).
This appears as group code 72 in TEXT, ATTRIB, and other entities.
Copyright 2006 Partner Software, Inc.
- Version:
- $Id: DxfHorizontalJustification.java 1012 2007-11-24 18:30:02Z paul $
- Author:
- Paul Reavis
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
LEFT
public static final DxfHorizontalJustification LEFT
CENTER
public static final DxfHorizontalJustification CENTER
RIGHT
public static final DxfHorizontalJustification RIGHT
ALIGNED
public static final DxfHorizontalJustification ALIGNED
MIDDLE
public static final DxfHorizontalJustification MIDDLE
FIT
public static final DxfHorizontalJustification FIT
values
public static DxfHorizontalJustification[] 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 (DxfHorizontalJustification c : DxfHorizontalJustification.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static DxfHorizontalJustification 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
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Enum<DxfHorizontalJustification>
getName
public java.lang.String getName()
getCode
public int getCode()
valueNamed
public static DxfHorizontalJustification valueNamed(java.lang.String name)
valueForCode
public static DxfHorizontalJustification valueForCode(int code)