be.yildizgames.common.util.Registerable, ContainerChild, Element, ProgressBar, Widgetpublic final class SimpleProgressBar extends BaseProgressBar
Element.AlignmentMAX_OPACITY, virtualHeightemptyZones| Constructor | Description |
|---|---|
SimpleProgressBar(String name,
BaseCoordinate coordinates,
AbstractIconElement empty,
AbstractIconElement filled,
SimpleContainer container) |
Full constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
delete() |
Delete the widget.
|
protected void |
hideImpl() |
Implementation to set the widget invisible.
|
void |
setContentMaterial(Material mat) |
|
protected Element |
setPositionImpl(int newLeft,
int newTop) |
Implementation to update the widget position.
|
protected void |
showImpl() |
Implementation to set the widget visible.
|
protected void |
updateView(float progress) |
Update the progress bar.
|
addEmptyZoneImpl, detachFromParent, getParent, isContainer, setLeftFromParent, setLeftFromParent, setTopFromParent, setTopFromParent, setUnaffectedByZoom, updateSizeAfterZoomaddToLeft, addToPosition, addToTop, getBottom, getCoordinates, getHeight, getLeft, getOpacity, getRight, getTop, getWidth, hide, isVisible, multiplySize, resetVirtualHeight, setCoordinates, setHeight, setLeft, setLeft, setLeft, setLeft, setPosition, setPosition, setPosition, setSize, setSize, setTop, setTop, setTop, setTop, setVirtualHeight, setVisible, setWidth, show, updateAddPositionValuehighlightImpl, isFinished, reset, setProgress, setSizeImpladdEmptyZone, 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, waitaddEmptyZone, addKeyboardListener, addMouseDoubleLeftClickListener, addMouseDragListener, addMouseLeftClickListener, addMouseMoveListener, addMouseReleaseListener, addMouseWheelListener, addOnMouseOverListener, addSpecialKeyListener, align, contains, contains, focus, getAbsoluteLeft, getAbsoluteTop, highlight, isFocusable, playAnimation, registerAnimation, removeAllClickListeners, stopAnimationpublic SimpleProgressBar(String name, BaseCoordinate coordinates, AbstractIconElement empty, AbstractIconElement filled, SimpleContainer container)
name - Widget name, must be unique.coordinates - Widget coordinates, width value is used for a 100% completed
progress bar.empty - Icon element for the progress bar empty part.filled - Icon element for the progress bar filled part.container - Container holding this widget.public void delete()
BaseElementdelete in class BaseElementprotected void showImpl()
BaseElementshowImpl in class BaseElementprotected void hideImpl()
BaseElementhideImpl in class BaseElementprotected Element setPositionImpl(int newLeft, int newTop)
BaseElementsetPositionImpl in class BaseElementnewLeft - New widget x position.newTop - New widget y position.protected void updateView(float progress)
BaseProgressBarupdateView in class BaseProgressBarprogress - new progress value, in percent.public void setContentMaterial(Material mat)
Copyright © 2014–2018. All rights reserved.