public class InstructionAdapter
extends java.lang.Object
Instruction
objects and retrieve the default
messages and images.Constructor and Description |
---|
InstructionAdapter() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getDistanceString(android.content.Context ctx,
int dist)
This method provides a human readable string for a specified distance.
|
static int |
getImageResource(Instruction inst)
This method provides a default image for each instruction.
|
static java.lang.String |
getString(android.content.Context ctx,
Instruction inst)
This method provides a human readable string for each instruction available.
|
public static java.lang.String getString(android.content.Context ctx, Instruction inst)
ctx
- Android contextinst
- Instruction to be processedpublic static java.lang.String getDistanceString(android.content.Context ctx, int dist)
ctx
- Android contextdist
- Instruction distancepublic static int getImageResource(Instruction inst)
inst
- Instruction to be processed