be.yildizgames.common.util.Registerable, ContainerChild, Element, ProgressBar, WidgetComplexProgressBar, RectangleProgressBar, SimpleProgressBarpublic abstract class BaseProgressBar extends BaseContainerChild implements ProgressBar
Element.AlignmentMAX_OPACITY, virtualHeightemptyZones| Modifier | Constructor | Description |
|---|---|---|
protected |
BaseProgressBar(String name,
BaseCoordinate coordinates,
SimpleContainer parent) |
Full constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
highlightImpl(boolean highlighted) |
Not highlightable, does nothing.
|
boolean |
isFinished() |
|
void |
reset() |
Set the value to 0.
|
void |
setProgress(float newProgressValue) |
Update the progress state.
|
protected void |
setSizeImpl(int w,
int h) |
Implementation to set the widget size.
|
protected abstract void |
updateView(float progress) |
Update the progress bar.
|
addEmptyZoneImpl, detachFromParent, getParent, isContainer, setLeftFromParent, setLeftFromParent, setTopFromParent, setTopFromParent, setUnaffectedByZoom, updateSizeAfterZoomaddToLeft, addToPosition, addToTop, delete, getBottom, getCoordinates, getHeight, getLeft, getOpacity, getRight, getTop, getWidth, hide, hideImpl, isVisible, multiplySize, resetVirtualHeight, setCoordinates, setHeight, setLeft, setLeft, setLeft, setLeft, setPosition, setPosition, setPosition, setPositionImpl, setSize, setSize, setTop, setTop, setTop, setTop, setVirtualHeight, setVisible, setWidth, show, showImpl, updateAddPositionValueaddEmptyZone, addKeyboardListener, addMouseDoubleLeftClickListener, addMouseDragListener, addMouseLeftClickListener, addMouseMoveListener, addMouseReleaseListener, addMouseWheelListener, addOnMouseOverListener, addSpecialKeyListener, align, contains, contains, deleteKeyPressed, disableEmptyZone, enableEmptyZone, enterKeyPressed, findParent, focus, forceContainsFalse, getAbsoluteLeft, getAbsolutePosition, getAbsoluteTop, highlight, isFocusable, isMouseOver, keyPressed, mouseLeftClick, playAnimation, registerAnimation, removeAllClickListeners, setFocusable, setHighlightable, setMouseClickActive, setMouseOver, setStatic, stopAnimation, toStringdetachFromParent, getParent, setLeftFromParent, setLeftFromParent, setTopFromParent, setTopFromParent, updateAddPositionValue, updateSizeAfterZoomaddToLeft, addToPosition, addToTop, getBottom, getCoordinates, getHeight, getLeft, getRight, getTop, getWidth, hide, isVisible, resetVirtualHeight, setCoordinates, setHeight, setLeft, setLeft, setLeft, setLeft, setPosition, setPosition, setPosition, setSize, setSize, setTop, setTop, setTop, setTop, setVirtualHeight, setVisible, setWidth, showclone, finalize, getClass, notify, notifyAll, wait, wait, waitsetContentMaterialaddEmptyZone, addKeyboardListener, addMouseDoubleLeftClickListener, addMouseDragListener, addMouseLeftClickListener, addMouseMoveListener, addMouseReleaseListener, addMouseWheelListener, addOnMouseOverListener, addSpecialKeyListener, align, contains, contains, focus, getAbsoluteLeft, getAbsoluteTop, highlight, isFocusable, playAnimation, registerAnimation, removeAllClickListeners, stopAnimationprotected BaseProgressBar(String name, BaseCoordinate coordinates, SimpleContainer parent)
name - Widget name, must be unique.coordinates - Widget coordinates, width value is used for a 100% completed progress bar.parent - Container holding this widget.public final boolean isFinished()
isFinished in interface ProgressBartrue if the progress state is 100%, false otherwise.public final void setProgress(float newProgressValue)
setProgress in interface ProgressBarnewProgressValue - New progress value.public final void reset()
reset in interface ProgressBarprotected final void highlightImpl(boolean highlighted)
highlightImpl in class BaseWidgethighlighted - Unused.protected final void setSizeImpl(int w,
int h)
BaseElementsetSizeImpl in class BaseElementw - New width.h - New height.protected abstract void updateView(float progress)
progress - new progress value, in percent.Copyright © 2014–2018. All rights reserved.