public enum LinearUnit extends java.lang.Enum<LinearUnit> implements NamedPattern
Copyright 2008 Partner Software, Inc.
| Enum Constant and Description |
|---|
CENTIMETER |
DECIMETER |
DEGREE
This is a rough approximation of a degree on the earth's surface as measured as 60 nautical miles.
|
KILOMETER |
METER |
MICRON |
MILLIMETER |
NAUTICAL_MILE |
POSTSCRIPT_INCH
Desktop publishing, or PostScript, inches are 6 PostScript picas or 72 PostScript points.
|
POSTSCRIPT_PICA
Desktop publishing, or PostScript, picas are 12 PostScript points, 1/6 of a Standard Inch.
|
POSTSCRIPT_POINT
Desktop publishing, or PostScript, points are 1/72 of a Standard inch.
|
STANDARD_FOOT
Standard, or international, feet, are much less common in the U.S.
|
STANDARD_INCH |
STANDARD_MILE |
US_SURVEY_FOOT
U.S.
|
US_SURVEY_INCH |
US_SURVEY_MILE |
| Modifier and Type | Method and Description |
|---|---|
static LinearUnit |
forName(java.lang.String name) |
double |
fromMeters(double meters) |
java.lang.String |
getAbbreviation() |
double |
getFromMetersFactor() |
java.lang.String |
getName() |
java.lang.String |
getPlural() |
double |
getToMetersFactor() |
double |
toMeters(double notMeters) |
java.lang.String |
toString() |
static LinearUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LinearUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LinearUnit MICRON
public static final LinearUnit MILLIMETER
public static final LinearUnit CENTIMETER
public static final LinearUnit DECIMETER
public static final LinearUnit METER
public static final LinearUnit KILOMETER
public static final LinearUnit US_SURVEY_FOOT
public static final LinearUnit US_SURVEY_INCH
public static final LinearUnit US_SURVEY_MILE
public static final LinearUnit STANDARD_FOOT
public static final LinearUnit STANDARD_INCH
public static final LinearUnit STANDARD_MILE
public static final LinearUnit POSTSCRIPT_POINT
public static final LinearUnit POSTSCRIPT_PICA
public static final LinearUnit POSTSCRIPT_INCH
public static final LinearUnit NAUTICAL_MILE
public static final LinearUnit DEGREE
public static LinearUnit[] values()
for (LinearUnit c : LinearUnit.values()) System.out.println(c);
public static LinearUnit valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static LinearUnit forName(java.lang.String name)
public double toMeters(double notMeters)
public double fromMeters(double meters)
public java.lang.String toString()
toString in class java.lang.Enum<LinearUnit>public double getFromMetersFactor()
public double getToMetersFactor()
public java.lang.String getName()
getName in interface NamedPatternpublic java.lang.String getPlural()
public java.lang.String getAbbreviation()