public class MarkerIconWidget extends MapWidget2
Modifier and Type | Class and Description |
---|---|
static interface |
MarkerIconWidget.OnMarkerWidgetIconChangedListener |
static interface |
MarkerIconWidget.OnMarkerWidgetIconRotationChangedListener |
static interface |
MarkerIconWidget.OnMarkerWidgetIconStateChangedListener |
MapWidget2.OnWidgetSizeChangedListener
MapWidget.Factory, MapWidget.OnClickListener, MapWidget.OnLongPressListener, MapWidget.OnMoveListener, MapWidget.OnPressListener, MapWidget.OnUnpressListener, MapWidget.OnVisibleChangedListener, MapWidget.OnWidgetPointChangedListener
Constructor and Description |
---|
MarkerIconWidget() |
Modifier and Type | Method and Description |
---|---|
void |
addOnMarkerWidgetIconChangedListener(IMarkerIconWidget.OnMarkerWidgetIconChangedListener l) |
void |
addOnMarkerWidgetIconRotationChangedListener(IMarkerIconWidget.OnMarkerWidgetIconRotationChangedListener l) |
void |
addOnMarkerWidgetIconStateChangedListener(IMarkerIconWidget.OnMarkerWidgetIconStateChangedListener l) |
Icon |
getIcon()
Retrieve the icon for the MarkerIconWidget
|
android.graphics.Rect |
getMarkerHitBounds()
Get the hitBounds property
|
android.graphics.Rect |
getMarkerHitBounds(android.graphics.Rect out)
Get the hitBounds property
|
float |
getRotation() |
int |
getState() |
IIcon |
getWidgetIcon() |
boolean |
isEnterable() |
void |
orientationChanged()
Subclass to allow for a new x,y,height,width to be computed when the orientation
has changed.
|
void |
removeOnMarkerWidgetIconChangedListener(IMarkerIconWidget.OnMarkerWidgetIconChangedListener l) |
void |
removeOnMarkerWidgetIconRotationChangedListener(IMarkerIconWidget.OnMarkerWidgetIconRotationChangedListener l) |
void |
removeOnMarkerWidgetIconStateChangedListener(IMarkerIconWidget.OnMarkerWidgetIconStateChangedListener l) |
MapWidget |
seekHit(float x,
float y) |
void |
setIcon(Icon icon)
Sets the icon for the MarkerIconWidget
|
void |
setIconSizePx(float width,
float height)
Set the size of the icon in pixels
|
void |
setMarkerHitBounds(int left,
int top,
int right,
int bottom)
Set the hitBounds property.
|
void |
setMarkerHitBounds(android.graphics.Rect hitBounds)
Set the hitBounds property.
|
void |
setRotation(float rotation) |
void |
setState(int state) |
addOnWidgetSizeChangedListener, getSize, onSizeChanged, removeOnWidgetSizeChangedListener, 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, isTouchable, isVisible, onClick, onClick, onHover, onLongPress, onMove, onMove, onPointChanged, onPress, onPress, onUnpress, onUnpress, onVisibleChanged, 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 setState(int state)
public boolean isEnterable()
isEnterable
in class MapWidget
public MapWidget seekHit(float x, float y)
seekHit
in class MapWidget2
public int getState()
public final void addOnMarkerWidgetIconStateChangedListener(IMarkerIconWidget.OnMarkerWidgetIconStateChangedListener l)
public void removeOnMarkerWidgetIconStateChangedListener(IMarkerIconWidget.OnMarkerWidgetIconStateChangedListener l)
public void setMarkerHitBounds(int left, int top, int right, int bottom)
left
- offset left of MapIcon anchortop
- offset above MapIcon anchorright
- offset right of MapIcon anchorbottom
- offset below MapIcon anchorpublic void setMarkerHitBounds(android.graphics.Rect hitBounds)
hitBounds
- offset values from MapIcon anchorpublic android.graphics.Rect getMarkerHitBounds()
public android.graphics.Rect getMarkerHitBounds(android.graphics.Rect out)
out
- the Rect to use (may be null)public void setIcon(Icon icon)
icon
- a valid iconpublic Icon getIcon()
public final IIcon getWidgetIcon()
public void setIconSizePx(float width, float height)
width
- Width in pixelsheight
- Height in pixelspublic void orientationChanged()
MapWidget
orientationChanged
in class MapWidget
public void setRotation(float rotation)
public float getRotation()
public final void addOnMarkerWidgetIconChangedListener(IMarkerIconWidget.OnMarkerWidgetIconChangedListener l)
public final void removeOnMarkerWidgetIconChangedListener(IMarkerIconWidget.OnMarkerWidgetIconChangedListener l)
public final void addOnMarkerWidgetIconRotationChangedListener(IMarkerIconWidget.OnMarkerWidgetIconRotationChangedListener l)
public final void removeOnMarkerWidgetIconRotationChangedListener(IMarkerIconWidget.OnMarkerWidgetIconRotationChangedListener l)