public class ScaleWidget extends ShapeWidget
Modifier and Type | Class and Description |
---|---|
static interface |
ScaleWidget.OnTextChangedListener |
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 |
---|
ScaleWidget(MapView mapView,
MapTextFormat mtf) |
Modifier and Type | Method and Description |
---|---|
void |
addOnDisplayChangedListener(OnDisplayChangedListener listener) |
void |
addOnTextChangedListener(IScaleWidget2.OnTextChangedListener l) |
float |
getMaxWidth() |
float |
getMinWidth() |
double |
getScale() |
java.lang.String |
getText() |
MapTextFormat |
getTextFormat() |
int |
getUnits() |
boolean |
isRounded() |
protected void |
onPointChanged() |
void |
removeOnDisplayChangedListener(OnDisplayChangedListener listener) |
void |
removeOnTextChangedListener(IScaleWidget2.OnTextChangedListener l) |
MapWidget |
seekHit(float x,
float y) |
void |
setMaxWidth(float maxWidth) |
void |
setRangeUnits(int units)
Important - See Span.ENGLISH, Span.METRIC, Span.NM
|
void |
setRounding(boolean enabled) |
boolean |
testHit(float x,
float y) |
void |
update(java.lang.String text,
double scale) |
addOnStrokeColorChangedListener, addOnStrokeWeightChangedListener, getStrokeColor, getStrokeWeight, removeOnStrokeColorChangedListener, removeOnStrokeWeightChangedListener, setStrokeColor, setStrokeWeight
addOnWidgetSizeChangedListener, getSize, onSizeChanged, removeOnWidgetSizeChangedListener, seekHit, seekWidgetHit
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, 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 ScaleWidget(MapView mapView, MapTextFormat mtf)
public boolean testHit(float x, float y)
testHit
in class MapWidget2
public MapWidget seekHit(float x, float y)
seekHit
in class MapWidget2
public java.lang.String getText()
public double getScale()
public int getUnits()
public boolean isRounded()
public float getMinWidth()
public float getMaxWidth()
public void update(java.lang.String text, double scale)
public MapTextFormat getTextFormat()
public void setRangeUnits(int units)
public void setRounding(boolean enabled)
public void setMaxWidth(float maxWidth)
protected void onPointChanged()
onPointChanged
in class MapWidget
public void removeOnDisplayChangedListener(OnDisplayChangedListener listener)
public void addOnDisplayChangedListener(OnDisplayChangedListener listener)
public final void addOnTextChangedListener(IScaleWidget2.OnTextChangedListener l)
public final void removeOnTextChangedListener(IScaleWidget2.OnTextChangedListener l)