|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.generic.util.metric.MetricConstants
The MetricConstants class provides the constants and
conversion methods that are needed to work with metric expressions.
| Field Summary | |
static int |
CENTIMETER
Constants defining one of the supported measuring units |
static java.lang.String |
CENTIMETER_ABBR
Constants defining the here used abbreviation for the used units |
static int |
INCH
Constants defining one of the supported measuring units |
static java.lang.String |
INCH_ABBR
Constants defining the here used abbreviation for the used units |
static int |
INTERN
Constants defining one of the supported measuring units |
static java.lang.String |
INTERN_ABBR
Constants defining the here used abbreviation for the used units |
static int |
MILLIMETER
Constants defining one of the supported measuring units |
static int |
MILLIMETER_10
Constants defining one of the supported measuring units |
static java.lang.String |
MILLIMETER_10_ABBR
Constants defining the here used abbreviation for the used units |
static int |
MILLIMETER_100
Constants defining one of the supported measuring units |
static java.lang.String |
MILLIMETER_100_ABBR
Constants defining the here used abbreviation for the used units |
static java.lang.String |
MILLIMETER_ABBR
Constants defining the here used abbreviation for the used units |
| Method Summary | |
static java.lang.String[] |
getUnitAbbreviations()
Returns all the unit abbreviations as an array of String. |
static int |
unit2Constant(java.lang.String abbr)
Returns the corresponding constant for the given abbreviation. |
static java.lang.String |
unit2String(int unit)
Returns a human readable abbreviation of the measuring unit of the given metric constant. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int CENTIMETER
public static final int MILLIMETER
public static final int MILLIMETER_10
public static final int MILLIMETER_100
public static final int INCH
public static final int INTERN
public static final java.lang.String CENTIMETER_ABBR
public static final java.lang.String MILLIMETER_ABBR
public static final java.lang.String MILLIMETER_10_ABBR
public static final java.lang.String MILLIMETER_100_ABBR
public static final java.lang.String INCH_ABBR
public static final java.lang.String INTERN_ABBR
| Method Detail |
public static final java.lang.String unit2String(int unit)
unit - the unit constant to translate
InvalidArgumentException - if the given measuring unit is unknownpublic static final int unit2Constant(java.lang.String abbr)
abbr - the abbreviation to look up the constant for
public static java.lang.String[] getUnitAbbreviations()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||