public class RadialButtonWidget extends AbstractButtonWidget
Modifier and Type | Class and Description |
---|---|
static class |
RadialButtonWidget.Factory |
static interface |
RadialButtonWidget.OnOrientationChangedListener |
static interface |
RadialButtonWidget.OnSizeChangedListener |
AbstractButtonWidget.OnBackgroundChangedListener, AbstractButtonWidget.OnIconChangedListener, AbstractButtonWidget.OnStateChangedListener, AbstractButtonWidget.OnTextChangedListener
MapWidget.OnClickListener, MapWidget.OnLongPressListener, MapWidget.OnMoveListener, MapWidget.OnPressListener, MapWidget.OnUnpressListener, MapWidget.OnVisibleChangedListener, MapWidget.OnWidgetPointChangedListener
STATE_DISABLED, STATE_PRESSED, STATE_SELECTED, TAG
Constructor and Description |
---|
RadialButtonWidget() |
Modifier and Type | Method and Description |
---|---|
void |
addOnOrientationChangedListener(IRadialButtonWidget.OnOrientationChangedListener l) |
void |
addOnSizeChangedListener(IRadialButtonWidget.OnSizeChangedListener l) |
float |
getButtonSpan() |
float |
getButtonWidth() |
float |
getOrientationAngle() |
float |
getOrientationRadius() |
protected void |
onOrientationChanged() |
protected void |
onSizeChanged() |
void |
removeOnOrientationChangedListener(IRadialButtonWidget.OnOrientationChangedListener l) |
void |
removeOnSizeChangedListener(IRadialButtonWidget.OnSizeChangedListener l) |
MapWidget |
seekWidgetHit(MotionEvent event,
float x,
float y) |
void |
setButtonSize(float span,
float width) |
void |
setOrientation(float angle,
float radius) |
addOnBackgroundChangedListener, addOnIconChangedListener, addOnStateChangedListener, addOnTextChangedListener, getBackground, getIcon, getState, getText, getWidgetBackground, getWidgetIcon, onBackgroundChanged, onClick, onIconChanged, onPress, onStateChanged, onTextChanged, onUnpress, removeOnBackgroundChangedListener, removeOnIconChangedListener, removeOnStateChangedListener, removeOnTextChangedListener, setBackground, setIcon, setSelectable, setState, setText, setWidgetBackground, setWidgetIcon
addOnClickListener, addOnHoverListener, addOnLongPressListener, addOnMoveListener, addOnPressListener, addOnUnpressListener, addOnVisibleChangedListener, addOnWidgetPointChangedListener, addOnWidgetSizeChangedListener, equals, getAbsolutePath, getAbsolutePosition, getAbsoluteWidgetPosition, getHeight, getMargins, getName, getPadding, getParent, getPointX, getPointY, getPropertyValue, getSize, getWidth, getZOrder, hashCode, isEnterable, isTouchable, isVisible, onHover, onLongPress, onMove, onMove, onPointChanged, onVisibleChanged, orientationChanged, registerForwardedListener, removeOnClickListener, removeOnHoverListener, removeOnLongPressListener, removeOnMoveListener, removeOnPressListener, removeOnUnpressListener, removeOnVisibleChangedListener, removeOnWidgetPointChangedListener, removeOnWidgetSizeChangedListener, seekHit, setHeight, setMargins, setName, setPadding, setPadding, setParent, setPoint, setSize, setTouchable, setVisible, setWidth, setZOrder, testHit, unregisterForwardedListener, visitPropertyInfos
public float getOrientationAngle()
public float getOrientationRadius()
public float getButtonSpan()
public float getButtonWidth()
public final void addOnSizeChangedListener(IRadialButtonWidget.OnSizeChangedListener l)
public final void removeOnSizeChangedListener(IRadialButtonWidget.OnSizeChangedListener l)
public final void addOnOrientationChangedListener(IRadialButtonWidget.OnOrientationChangedListener l)
public final void removeOnOrientationChangedListener(IRadialButtonWidget.OnOrientationChangedListener l)
public void setOrientation(float angle, float radius)
public MapWidget seekWidgetHit(MotionEvent event, float x, float y)
seekWidgetHit
in class MapWidget
public void setButtonSize(float span, float width)
protected void onSizeChanged()
onSizeChanged
in class MapWidget
protected void onOrientationChanged()