|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.core.geometry.Unit
public abstract class Unit
| Nested Class Summary | |
|---|---|
static class |
Unit.UnitType
|
| Field Summary | |
|---|---|
protected double |
m_factor
|
| Constructor Summary | |
|---|---|
Unit()
|
|
| Method Summary | |
|---|---|
static void |
convertUnits(double[] valueIn,
int countIn,
Unit unitFrom,
Unit unitTo,
double[] valueOut)
Converts an array of values to new units of same UnitType. |
static double |
convertUnits(double valueIn,
Unit unitFrom,
Unit unitTo)
Converts input value to new units. |
static Unit |
create(int wkid)
Create a unit class from the well-known id(wkid). |
abstract String |
getAbbreviation()
Returns abbreviated name of the unit. |
abstract double |
getConversionFactor(Unit destinationUnit)
Returns a conversion factor from this unit to the destination unit. |
abstract String |
getDisplayName()
Returns display name of the unit. |
abstract int |
getID()
return The unit ID. |
abstract String |
getName()
Returns canonical name of the unit as defined in Projection Engine (ex. |
abstract String |
getPluralDisplayName()
Returns display name of the unit. |
double |
getUnitToBaseFactor()
Conversion factor from this unit to the base unit (to SI meter for linear units, to radian for angular, and to SI square meter for area units). |
abstract Unit.UnitType |
getUnitType()
Returns the unit type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double m_factor
| Constructor Detail |
|---|
public Unit()
| Method Detail |
|---|
public abstract Unit.UnitType getUnitType()
public static Unit create(int wkid)
AngularUnitCode
class and the LinearUnitCode class.
wkid -
public abstract String getName()
public abstract int getID()
public abstract String getDisplayName()
public abstract String getPluralDisplayName()
public abstract String getAbbreviation()
public abstract double getConversionFactor(Unit destinationUnit)
destinationUnit -
public static double convertUnits(double valueIn,
Unit unitFrom,
Unit unitTo)
valueIn - the value to be converted from unitFrom to unitTounitFrom - unitTo -
public static void convertUnits(double[] valueIn,
int countIn,
Unit unitFrom,
Unit unitTo,
double[] valueOut)
valueIn - countIn - unitFrom - unitTo - valueOut - public double getUnitToBaseFactor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||