public class TimeProgressWidget extends LayoutWidget
LayoutWidget.Factory, LayoutWidget.OnBackingColorChangedListener, LayoutWidget.OnDragEnabledChangedListener
AbstractParentWidget.OnWidgetListChangedListener
MapWidget2.OnWidgetSizeChangedListener
MapWidget.OnClickListener, MapWidget.OnLongPressListener, MapWidget.OnMoveListener, MapWidget.OnPressListener, MapWidget.OnUnpressListener, MapWidget.OnVisibleChangedListener, MapWidget.OnWidgetPointChangedListener
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PROGRESS_BAR_COLOR |
Constructor and Description |
---|
TimeProgressWidget() |
Modifier and Type | Method and Description |
---|---|
boolean |
getDirection()
Get the current progress bar direction.
|
int |
getProgress()
Get the progress bar's current level of progress.
|
void |
setDirection(boolean forward)
Direction that the progress bar heads when the millis gets closer.
|
boolean |
setHeight(float height) |
void |
setMilliseconds(int millis)
Set time in millis that this TimeProgress widget runs to.
|
void |
setProgressBarColor(int color)
Sets the color of the progress bar.
|
boolean |
setWidth(float width) |
void |
start() |
void |
stop() |
addOnBackingColorChangedListener, addOnDragEnabledChangedListener, fadeAlpha, getAlpha, getBackingColor, getDragEnabled, getNinePatchBG, isFadingAlpha, onBackingColorChanged, onDragEnabledChanged, removeOnBackingColorChangedListener, removeOnDragEnabledChangedListener, setAlpha, setBackingColor, setDragEnabled, setNinePatchBG
addChildWidget, addChildWidgetAt, addOnWidgetListChangedListener, addWidget, addWidgetAt, findWidget, getChildAt, getChildCount, getChildren, getChildWidgetAt, getChildWidgetCount, getChildWidgets, getParent, getSortedChildrenWidgets, getSortedWidgets, onActionBarToggled, onChildWidgetCanBeAdded, onWidgetAdded, onWidgetAdded, onWidgetCanBeAdded, onWidgetRemoved, onWidgetRemoved, orientationChanged, removeChildWidget, removeChildWidgetAt, removeOnWidgetListChangedListener, removeWidget, removeWidgetAt, seekHit, seekWidgetHit, setZOrder
addOnWidgetSizeChangedListener, getSize, onSizeChanged, removeOnWidgetSizeChangedListener, seekHit, testHit
addOnClickListener, addOnHoverListener, addOnLongPressListener, addOnMoveListener, addOnPressListener, addOnUnpressListener, addOnVisibleChangedListener, addOnWidgetPointChangedListener, equals, getAbsolutePath, getAbsolutePosition, getAbsoluteWidgetPosition, getHeight, getMargins, getName, getPadding, 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, setMargins, setName, setPadding, setPadding, setParent, setPoint, setSize, setTouchable, setVisible, unregisterForwardedListener, visitPropertyInfos
public void setMilliseconds(int millis)
public int getProgress()
public void start()
public void stop()
public void setProgressBarColor(int color)
color
- the color to use.public void setDirection(boolean forward)
forward
- true if the progress bar increases in size, false if it decreases in size.public boolean getDirection()