public class IsoKeyWidget extends MapWidget2
MapWidget2.OnWidgetSizeChangedListener
MapWidget.Factory, MapWidget.OnClickListener, MapWidget.OnLongPressListener, MapWidget.OnMoveListener, MapWidget.OnPressListener, MapWidget.OnUnpressListener, MapWidget.OnVisibleChangedListener, MapWidget.OnWidgetPointChangedListener
Modifier and Type | Field and Description |
---|---|
static int |
NUM_LABELS |
Constructor and Description |
---|
IsoKeyWidget() |
Modifier and Type | Method and Description |
---|---|
float[] |
getBarSize() |
static java.lang.String[] |
getTopLabels() |
void |
orientationChanged()
Subclass to allow for a new x,y,height,width to be computed when the orientation
has changed.
|
protected void |
recalcSize() |
void |
setBarSize(float barWidth,
float barHeight)
Set the size of the color bar
|
boolean |
setPadding(float left,
float top,
float right,
float bottom) |
boolean |
testHit(float x,
float y) |
addOnWidgetSizeChangedListener, getSize, onSizeChanged, removeOnWidgetSizeChangedListener, seekHit, 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, onPointChanged, onPress, onPress, onUnpress, onUnpress, onVisibleChanged, registerForwardedListener, removeOnClickListener, removeOnHoverListener, removeOnLongPressListener, removeOnMoveListener, removeOnPressListener, removeOnUnpressListener, removeOnVisibleChangedListener, removeOnWidgetPointChangedListener, setHeight, setMargins, setName, setPadding, setParent, setPoint, setSize, setTouchable, setVisible, setWidth, setZOrder, unregisterForwardedListener, visitPropertyInfos
public static final int NUM_LABELS
public void setBarSize(float barWidth, float barHeight)
barWidth
- Bar width in pixelsbarHeight
- Bar height in pixelspublic float[] getBarSize()
public boolean setPadding(float left, float top, float right, float bottom)
setPadding
in class MapWidget
public void orientationChanged()
MapWidget
orientationChanged
in class MapWidget
protected void recalcSize()
public static java.lang.String[] getTopLabels()
public boolean testHit(float x, float y)
testHit
in class MapWidget2