public abstract class AbstractDistance extends Object implements IDistance
Modifier and Type | Field and Description |
---|---|
static double |
EARTH_RADIUS |
protected Feature |
feature |
protected int |
numberOfRings |
Constructor and Description |
---|
AbstractDistance() |
Modifier and Type | Method and Description |
---|---|
protected double |
getInInternalUnits(double userEntryDistance,
IProjection proj,
int distanceUnits,
int mapUnits)
Converts a distance entered by user in the GUI in the same distance
in internal units (measure units)
|
void |
setFeature(Feature feature)
Sets the current feature
|
void |
setNumberOfRings(int n)
Sets the number of rings.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBufferDistance
public static final double EARTH_RADIUS
protected int numberOfRings
protected Feature feature
public void setFeature(Feature feature)
IDistance
setFeature
in interface IDistance
protected double getInInternalUnits(double userEntryDistance, IProjection proj, int distanceUnits, int mapUnits)
public void setNumberOfRings(int n)
IDistance
getBufferDistance
will give a value of 1000setNumberOfRings
in interface IDistance