public class DrawingToolsToolbar extends DropDownReceiver implements IToolbarExtension
Modifier and Type | Field and Description |
---|---|
protected TextWidget |
_text |
static java.lang.String |
TAG |
static java.lang.String |
TOOLBAR_IDENTIFIER |
DROPDOWN_STATE_FULLSCREEN, DROPDOWN_STATE_NONE, DROPDOWN_STATE_NORMAL, FIVE_EIGTHS_HEIGHT, FIVE_EIGTHS_WIDTH, FIVE_TWELFTHS_HEIGHT, FIVE_TWELFTHS_WIDTH, FULL_HEIGHT, FULL_WIDTH, HALF_HEIGHT, HALF_WIDTH, HANDLE_THICKNESS_LANDSCAPE, HANDLE_THICKNESS_PORTRAIT, NO_HEIGHT, NO_WIDTH, QUARTER_SCREEN, SEVEN_SIXTEENTH_WIDTH, THIRD_HEIGHT, THIRD_WIDTH, THREE_EIGHTHS_HEIGHT, THREE_EIGHTHS_WIDTH, TWO_THIRDS_HEIGHT, TWO_THIRDS_WIDTH
Constructor and Description |
---|
DrawingToolsToolbar(MapView mapView,
MapGroup drawingGroup,
android.content.Context context,
DrawingToolsMapReceiver RouteMapReceiver) |
Modifier and Type | Method and Description |
---|---|
void |
disposeImpl()
Any drop down specific disposal implementation that is performed during the
disposal of a drop down.
|
android.widget.Button |
getToggleEditButton()
Get the button used to toggle edit mode
|
ActionBarView |
getToolbarView()
Implement this method to return the view that should be placed in the toolbar drawer when
your component has control of it.
|
java.util.List<Tool> |
getTools()
Implement this method to return a set of tools to be managed by ToolbarLibrary.
|
android.widget.Button |
getUndoButton()
Get the undo button in the top-left toolbar
|
boolean |
hasToolbar()
Implement this method to tell ToolbarLibrary whether your component will sometimes take
control of the toolbar's contents or whether it only implements tools without implementing a
toolbar.
|
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
void |
onToolbarVisible(boolean vis) |
void |
setDefaultButtonsVisiblity(int vis)
Deprecated.
Use
toggleShapeButtons(boolean) instead |
void |
toggleEditButtons(boolean edit)
Shortcut for toggling edit mode buttons (undo and end)
|
void |
toggleShapeButtons(boolean show)
Set whether to show the shape tool buttons
|
_showDropDown, callResize, closeDropDown, dispose, dropDownAlreadyExists, getAssociationKey, getBackStackCount, getDropDown, getMapView, hideDropDown, isClosed, isPortrait, isRetained, isTablet, isTransient, isVisible, onBackButtonPressed, onStateRequested, resize, setAssociationKey, setRetain, setSelected, setSelected, setSelected, setTransient, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, unhideDropDown
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
public static final java.lang.String TAG
public static final java.lang.String TOOLBAR_IDENTIFIER
protected TextWidget _text
public DrawingToolsToolbar(MapView mapView, MapGroup drawingGroup, android.content.Context context, DrawingToolsMapReceiver RouteMapReceiver)
public android.widget.Button getUndoButton()
public android.widget.Button getToggleEditButton()
public void toggleShapeButtons(boolean show)
show
- True to showpublic void toggleEditButtons(boolean edit)
edit
- True to toggle edit buttons onpublic void disposeImpl()
DropDownReceiver
disposeImpl
in class DropDownReceiver
public void onReceive(android.content.Context context, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver
public java.util.List<Tool> getTools()
IToolbarExtension
getTools
in interface IToolbarExtension
public ActionBarView getToolbarView()
IToolbarExtension
getToolbarView
in interface IToolbarExtension
public boolean hasToolbar()
IToolbarExtension
hasToolbar
in interface IToolbarExtension
public void onToolbarVisible(boolean vis)
onToolbarVisible
in interface IToolbarExtension
@Deprecated public void setDefaultButtonsVisiblity(int vis)
toggleShapeButtons(boolean)
instead