|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<LinearUnit>
com.partnersoft.geometry.measurement.LinearUnit
public enum LinearUnit
Known linear units that can be converted by multiplication to and from meters.
Copyright 2008 Partner Software, Inc.
| Enum Constant Summary | |
|---|---|
CENTIMETER
|
|
DECIMETER
|
|
KILOMETER
|
|
METER
|
|
MICRON
|
|
MILLIMETER
|
|
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
|
|
| Method Summary | |
|---|---|
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)
|
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. |
| 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 |
|---|
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
| Method Detail |
|---|
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 name
java.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 double getFromMetersFactor()
public double getToMetersFactor()
public java.lang.String getName()
public java.lang.String getPlural()
public java.lang.String getAbbreviation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||