public class RubberSheetEditTool extends RectangleEditTool implements MapEventDispatcher.MapEventDispatchListener, MapItem.OnGroupChangedListener, android.view.View.OnClickListener
Modifier and Type | Class and Description |
---|---|
protected static class |
RubberSheetEditTool.RotateAction |
RectangleEditTool.ManualRectangleEditReceiver
Modifier and Type | Field and Description |
---|---|
protected ActionBarReceiver |
_abReceiver |
protected android.view.View[] |
_buttons |
protected GeoPointMetaData |
_center |
protected TextContainer |
_cont |
protected android.content.Context |
_context |
protected MapGroup |
_group |
protected GeoPointMetaData[] |
_oldPoints |
protected double[] |
_p0 |
protected double[] |
_p1 |
protected double[] |
_p2 |
protected double[] |
_p3 |
protected UnitPreferences |
_prefs |
protected AbstractSheet |
_sheet |
protected double |
_startAngle |
protected TextWidget |
_subText |
protected ActionBarView |
_toolbar |
protected LinearLayoutWidget |
_topEdge |
protected static int |
DRAG |
protected static int |
ELEV |
protected static int |
HEADING |
protected static int |
PITCH |
protected static int |
ROLL |
static java.lang.String |
TOOL_NAME |
_rectangle, _undoButton, TOOL_IDENTIFIER
_button, _imageButton
_identifier, _mapListenerCount, _mapView
Constructor and Description |
---|
RubberSheetEditTool(MapView mapView,
MapGroup group) |
Modifier and Type | Method and Description |
---|---|
protected void |
displayPrompt()
Display the help tooltip
|
void |
dispose()
Called only by the parent during final cleanup activities.
|
protected int |
getMode()
Get the selected mode
|
void |
onClick(android.view.View v) |
void |
onItemAdded(MapItem item,
MapGroup group) |
void |
onItemRemoved(MapItem item,
MapGroup group) |
void |
onMapEvent(MapEvent event) |
boolean |
onToolBegin(android.os.Bundle extras)
Called when this tool has been asked to start (and after the last tool has cleaned up)
|
void |
onToolEnd()
Called when this tool has been asked to end, either directly or by the user selecting a new
tool or possibly a new toolbar.
|
protected void |
reset() |
protected void |
rotate(double ang) |
void |
undo() |
protected void |
unregisterListeners() |
protected void |
updateSubText() |
onConflict, onMoved, run
initButton, onButtonClicked, setActive
clearExtraListeners, endTool, findPoint, getActive, getIdentifier, onKey, popAllMapListeners, popMapListeners, pushMapListeners, requestBeginTool, requestEndTool, shouldEndOnBack
public static final java.lang.String TOOL_NAME
protected static final int DRAG
protected static final int PITCH
protected static final int HEADING
protected static final int ROLL
protected static final int ELEV
protected final ActionBarReceiver _abReceiver
protected final ActionBarView _toolbar
protected final android.view.View[] _buttons
protected final android.content.Context _context
protected final UnitPreferences _prefs
protected final MapGroup _group
protected final TextContainer _cont
protected final TextWidget _subText
protected final LinearLayoutWidget _topEdge
protected AbstractSheet _sheet
protected double[] _p0
protected double[] _p1
protected double[] _p2
protected double[] _p3
protected GeoPointMetaData[] _oldPoints
protected GeoPointMetaData _center
protected double _startAngle
public void dispose()
Tool
dispose
in class ButtonTool
public boolean onToolBegin(android.os.Bundle extras)
Tool
onToolBegin
in class RectangleEditTool
extras
- extra params that were passed by the GUIpublic void onToolEnd()
Tool
onToolEnd
in class RectangleEditTool
protected void unregisterListeners()
protected int getMode()
protected void displayPrompt()
protected void updateSubText()
public void onMapEvent(MapEvent event)
onMapEvent
in interface MapEventDispatcher.MapEventDispatchListener
protected void rotate(double ang)
protected void reset()
public void onItemAdded(MapItem item, MapGroup group)
onItemAdded
in interface MapItem.OnGroupChangedListener
onItemAdded
in class RectangleEditTool
public void onItemRemoved(MapItem item, MapGroup group)
onItemRemoved
in interface MapItem.OnGroupChangedListener
onItemRemoved
in class RectangleEditTool
public void onClick(android.view.View v)
onClick
in interface android.view.View.OnClickListener
public void undo()
undo
in interface Undoable
undo
in class RectangleEditTool