|
||||||||||
| 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
A base class for units.
| Nested Class Summary | |
|---|---|
static class |
Unit.UnitType
Unit type (linear, angular, or area) |
| 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 an input value to new units. |
static Unit |
create(int wkid)
Create a unit class from the well-known id(wkid). |
boolean |
equals(Object other)
Indicates if this unit is the same type (linear, angular, or area) and the same unit(meter, degree, acre, etc.)as another. |
abstract String |
getAbbreviation()
Returns the abbreviated name of this unit. |
abstract double |
getConversionFactor(Unit destinationUnit)
Returns a conversion factor from this unit to the destination unit. |
abstract String |
getDisplayName()
Returns the display name of this unit. |
abstract int |
getID()
Returns the unit well-known ID. |
abstract String |
getName()
Returns the canonical name of the unit as defined in Projection Engine. |
abstract String |
getPluralDisplayName()
Returns the display name of this unit. |
double |
getUnitToBaseFactor()
the conversion factor from this unit to the base unit. |
abstract Unit.UnitType |
getUnitType()
Returns the unit type. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Unit()
| Method Detail |
|---|
public abstract Unit.UnitType getUnitType()
public static Unit create(int wkid)
AngularUnit.Code interface, the LinearUnit.Code interface, and the AreaUnit.Code interface.
wkid - The well known ID.
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 - The destination unit.
public static double convertUnits(double valueIn,
Unit unitFrom,
Unit unitTo)
valueIn - The value to be converted from unitFrom to unitTo.unitFrom - The units to convert from.unitTo - The units to convert to.
public static void convertUnits(double[] valueIn,
int countIn,
Unit unitFrom,
Unit unitTo,
double[] valueOut)
valueIn - The value to converted from.countIn - The count for the to converted values.unitFrom - The unit to convert from.unitTo - The unit to convert to.valueOut - the value to convert to.public double getUnitToBaseFactor()
public boolean equals(Object other)
equals in class Objectother - The other object.public int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||