public abstract class AbstractPluginTool extends Tool implements ToolDescriptor
Tool.ToolCallback
Constructor and Description |
---|
AbstractPluginTool(android.content.Context context,
java.lang.String shortDescription,
java.lang.String description,
android.graphics.drawable.Drawable icon,
java.lang.String action)
Construct an abstract PluginTool
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription() |
Group[] |
getGroups()
Unused in ATAK, will always return just GENERAL.
|
android.graphics.drawable.Drawable |
getIcon() |
java.lang.String |
getShortDescription() |
Tool |
getTool() |
void |
onActivate(android.app.Activity arg0,
MapView arg1,
android.view.ViewGroup arg2,
android.os.Bundle arg3,
Tool.ToolCallback arg4) |
void |
onDeactivate(Tool.ToolCallback arg0) |
public AbstractPluginTool(android.content.Context context, java.lang.String shortDescription, java.lang.String description, android.graphics.drawable.Drawable icon, java.lang.String action)
context
- the context to useshortDescription
- the short dscriptiondescription
- the descriptionicon
- the iconaction
- the actionpublic final java.lang.String getDescription()
getDescription
in interface ToolDescriptor
public final android.graphics.drawable.Drawable getIcon()
getIcon
in interface ToolDescriptor
getIcon
in class Tool
public final Group[] getGroups()
ToolDescriptor
getGroups
in interface ToolDescriptor
getGroups
in class Tool
public final java.lang.String getShortDescription()
getShortDescription
in interface ToolDescriptor
public final Tool getTool()
getTool
in interface ToolDescriptor
getTool
in class Tool
public final void onActivate(android.app.Activity arg0, MapView arg1, android.view.ViewGroup arg2, android.os.Bundle arg3, Tool.ToolCallback arg4)
onActivate
in class Tool
public final void onDeactivate(Tool.ToolCallback arg0)
onDeactivate
in class Tool