public class ArcWidget extends ShapeWidget
Modifier and Type | Class and Description |
---|---|
static interface |
ArcWidget.OnCentralAngleChangedListener |
static interface |
ArcWidget.OnOffsetAngleChangedListener |
static interface |
ArcWidget.OnRadiusChangedListener |
ShapeWidget.OnStrokeColorChangedListener, ShapeWidget.OnStrokeWeightChangedListener
MapWidget2.OnWidgetSizeChangedListener
MapWidget.Factory, MapWidget.OnClickListener, MapWidget.OnLongPressListener, MapWidget.OnMoveListener, MapWidget.OnPressListener, MapWidget.OnUnpressListener, MapWidget.OnVisibleChangedListener, MapWidget.OnWidgetPointChangedListener
Constructor and Description |
---|
ArcWidget() |
Modifier and Type | Method and Description |
---|---|
void |
addOnCentralAngleChangedListener(ArcWidget.OnCentralAngleChangedListener l) |
void |
addOnOffsetAngleChangedListener(ArcWidget.OnOffsetAngleChangedListener l) |
void |
addOnRadiusChangedListener(ArcWidget.OnRadiusChangedListener l) |
float |
getCentralAngle() |
float |
getOffsetAngle() |
float |
getRadius() |
protected void |
onCentralAngleChanged() |
protected void |
onOffsetAngleChanged() |
protected void |
onRadiusChanged() |
void |
removeOnCentralAngleChangedListener(ArcWidget.OnCentralAngleChangedListener l) |
void |
removeOnOffsetAngleChangedListener(ArcWidget.OnOffsetAngleChangedListener l) |
void |
removeOnRadiusChangedListener(ArcWidget.OnRadiusChangedListener l) |
void |
setCentralAngle(float centralAngle)
Set the angle that determines the arch length
|
void |
setOffsetAngle(float offsetAngle) |
void |
setRadius(float radius) |
addOnStrokeColorChangedListener, addOnStrokeWeightChangedListener, getStrokeColor, getStrokeWeight, removeOnStrokeColorChangedListener, removeOnStrokeWeightChangedListener, setStrokeColor, setStrokeWeight
addOnWidgetSizeChangedListener, getSize, onSizeChanged, removeOnWidgetSizeChangedListener, seekHit, seekHit, seekWidgetHit, testHit
addOnClickListener, addOnHoverListener, addOnLongPressListener, addOnMoveListener, addOnPressListener, addOnUnpressListener, addOnVisibleChangedListener, addOnWidgetPointChangedListener, equals, getAbsolutePath, getAbsolutePosition, getAbsoluteWidgetPosition, getHeight, getMargins, getName, getPadding, getParent, getPointX, getPointY, getPropertyValue, getSize, getWidth, getZOrder, hashCode, isEnterable, isTouchable, isVisible, onClick, onClick, onHover, onLongPress, onMove, onMove, onPointChanged, onPress, onPress, onUnpress, onUnpress, onVisibleChanged, orientationChanged, registerForwardedListener, removeOnClickListener, removeOnHoverListener, removeOnLongPressListener, removeOnMoveListener, removeOnPressListener, removeOnUnpressListener, removeOnVisibleChangedListener, removeOnWidgetPointChangedListener, setHeight, setMargins, setName, setPadding, setPadding, setParent, setPoint, setSize, setTouchable, setVisible, setWidth, setZOrder, unregisterForwardedListener, visitPropertyInfos
public void addOnOffsetAngleChangedListener(ArcWidget.OnOffsetAngleChangedListener l)
public void removeOnOffsetAngleChangedListener(ArcWidget.OnOffsetAngleChangedListener l)
public void addOnCentralAngleChangedListener(ArcWidget.OnCentralAngleChangedListener l)
public void removeOnCentralAngleChangedListener(ArcWidget.OnCentralAngleChangedListener l)
public void addOnRadiusChangedListener(ArcWidget.OnRadiusChangedListener l)
public void removeOnRadiusChangedListener(ArcWidget.OnRadiusChangedListener l)
public void setRadius(float radius)
public float getRadius()
public void setCentralAngle(float centralAngle)
centralAngle
- angle in degrees [0, 360]public float getCentralAngle()
public void setOffsetAngle(float offsetAngle)
offsetAngle
- the offset to the arc widget.public float getOffsetAngle()
protected void onRadiusChanged()
protected void onOffsetAngleChanged()
protected void onCentralAngleChanged()