public class LocalRangeFinderInput extends java.lang.Object implements java.lang.Runnable, RangeFinderAction, android.content.SharedPreferences.OnSharedPreferenceChangeListener
Constructor and Description |
---|
LocalRangeFinderInput(MapView mapView,
android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
static LocalRangeFinderInput |
getInstance()
Obtains the instance of the LocalRangeFinderInput.
|
void |
onRangeFinderInfo(java.lang.String uidPrefix,
double distance,
double azimuth,
double zAngle)
Copy of the implementation of onRangeFinderInfo from Dan Carpenter.
|
void |
onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences,
java.lang.String key) |
void |
process(java.lang.String input)
This is the primary mechanism for handling all laser range finder data into the system.
|
void |
registerAction(RangeFinderAction externalAction)
Allow for plugin's to override the action that occurs when a laser range finder is
used.
|
void |
run() |
void |
toastMessage(java.lang.String message,
int toast_length)
The original implementation utilized toasts to notify the user of an issue.
|
public LocalRangeFinderInput(MapView mapView, android.content.Context context)
public static LocalRangeFinderInput getInstance()
public void registerAction(RangeFinderAction externalAction)
public void run()
run
in interface java.lang.Runnable
public void process(java.lang.String input)
input
- the string in the above format.public void onRangeFinderInfo(java.lang.String uidPrefix, double distance, double azimuth, double zAngle)
onRangeFinderInfo
in interface RangeFinderAction
zAngle
- - angle from source to target in degreespublic void toastMessage(java.lang.String message, int toast_length)
public void onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences, java.lang.String key)
onSharedPreferenceChanged
in interface android.content.SharedPreferences.OnSharedPreferenceChangeListener
public void dispose()