com.esri.core.geometry
Class AreaUnit

java.lang.Object
  extended by com.esri.core.geometry.Unit
      extended by com.esri.core.geometry.AreaUnit
All Implemented Interfaces:
Serializable

public class AreaUnit
extends Unit

The units to measure for areas.

See Also:
Serialized Form

Nested Class Summary
static interface AreaUnit.Code
          Area unit codes.
 
Nested classes/interfaces inherited from class com.esri.core.geometry.Unit
Unit.UnitType
 
Method Summary
 double convertFromSquareMeters(double squareMeters)
          Converts square meters to the area units of the object.
 double convertToSquareMeters(double thisUnitValue)
          Converts the area units to square meters of the object.
 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.
 String getAbbreviation()
          Returns the abbreviated name of this unit.
 double getConversionFactor(Unit dstUnit)
          Returns a conversion factor from this unit to the destination unit.
 String getDisplayName()
          Returns the display name of this unit.
 int getID()
          Returns the unit well-known ID.
 String getName()
          Returns the canonical name of the unit as defined in Projection Engine.
 String getPluralDisplayName()
          Returns the display name of this unit.
 Unit.UnitType getUnitType()
          Returns the unit type.
 
Methods inherited from class com.esri.core.geometry.Unit
convertUnits, convertUnits, create, getUnitToBaseFactor, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public String getName()
Description copied from class: Unit
Returns the canonical name of the unit as defined in Projection Engine. (ex. for German Meter the projection engine canonical string value is METER_GERMAN)

Specified by:
getName in class Unit
Returns:
A string representation of Projection Engine unit name.

getDisplayName

public String getDisplayName()
Description copied from class: Unit
Returns the display name of this unit.

Specified by:
getDisplayName in class Unit
Returns:
A string value of unit display name.

getPluralDisplayName

public String getPluralDisplayName()
Description copied from class: Unit
Returns the display name of this unit.

Specified by:
getPluralDisplayName in class Unit
Returns:
string value of plural display name

getAbbreviation

public String getAbbreviation()
Description copied from class: Unit
Returns the abbreviated name of this unit.

Specified by:
getAbbreviation in class Unit
Returns:
A string value of abbreviation for unit.

getID

public int getID()
Description copied from class: Unit
Returns the unit well-known ID. The ID value is a positive number for the units with well known IDs, and 0 for the custom and area units.

Specified by:
getID in class Unit
Returns:
Integer value for wkid.

getConversionFactor

public double getConversionFactor(Unit dstUnit)
Description copied from class: Unit
Returns a conversion factor from this unit to the destination unit. To convert a value V from this units to the dst units.

Specified by:
getConversionFactor in class Unit
Parameters:
dstUnit - The destination unit.
Returns:
A double conversion factor.

equals

public boolean equals(Object other)
Description copied from class: Unit
Indicates if this unit is the same type (linear, angular, or area) and the same unit(meter, degree, acre, etc.)as another.

Overrides:
equals in class Unit
Parameters:
other - The other object.

getUnitType

public Unit.UnitType getUnitType()
Description copied from class: Unit
Returns the unit type.

Specified by:
getUnitType in class Unit

convertFromSquareMeters

public double convertFromSquareMeters(double squareMeters)
Converts square meters to the area units of the object.

Parameters:
squareMeters - The value in square meters.
Returns:
The area unit value corresponding to the input parameter.

convertToSquareMeters

public double convertToSquareMeters(double thisUnitValue)
Converts the area units to square meters of the object.

Parameters:
thisUnitValue - The value in this area units to convert.
Returns:
The value in square meters corresponding to the input parameter.


Copyright © 2012. All Rights Reserved.