public class SidePane extends java.lang.Object implements android.view.View.OnTouchListener, android.content.SharedPreferences.OnSharedPreferenceChangeListener, android.view.View.OnLayoutChangeListener, NavButtonsVisibilityListener
Modifier and Type | Field and Description |
---|---|
protected android.view.View |
bottomHandle |
protected DropDown |
dd |
protected boolean |
layoutIsPortrait |
protected DropDown |
leftDD |
protected android.view.View |
sideHandle |
static java.lang.String |
TAG |
Constructor and Description |
---|
SidePane(MapView view)
A SidePane is what a dropdown needs to be open in order to display.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the pane and remove all views attached to it.
|
void |
dispose() |
double |
getHeight() |
double |
getWidth() |
void |
hide()
Close the pane without removing its attached views.
|
boolean |
isOpen()
Indicates whether the side pane is open.
|
void |
onLayoutChange(android.view.View v,
int l,
int t,
int r,
int b,
int ol,
int ot,
int or,
int ob) |
void |
onNavButtonsVisible(boolean visible)
Called when the top-left nav buttons have been turned on or off
|
void |
onSharedPreferenceChanged(android.content.SharedPreferences p,
java.lang.String key) |
boolean |
onTouch(android.view.View v,
android.view.MotionEvent event) |
void |
open()
Open the pane to the given fractions.
|
protected void |
showHandle() |
public static final java.lang.String TAG
protected final android.view.View sideHandle
protected final android.view.View bottomHandle
protected final boolean layoutIsPortrait
protected DropDown dd
protected DropDown leftDD
public SidePane(MapView view)
view
- ATAK's content view.public void dispose()
public void onSharedPreferenceChanged(android.content.SharedPreferences p, java.lang.String key)
onSharedPreferenceChanged
in interface android.content.SharedPreferences.OnSharedPreferenceChangeListener
public void onLayoutChange(android.view.View v, int l, int t, int r, int b, int ol, int ot, int or, int ob)
onLayoutChange
in interface android.view.View.OnLayoutChangeListener
public void onNavButtonsVisible(boolean visible)
NavButtonsVisibilityListener
onNavButtonsVisible
in interface NavButtonsVisibilityListener
visible
- True if buttons visiblepublic boolean onTouch(android.view.View v, android.view.MotionEvent event)
onTouch
in interface android.view.View.OnTouchListener
public void open()
public double getWidth()
public double getHeight()
public void close()
public void hide()
protected void showHandle()
public boolean isOpen()