be.yildizgames.common.util.Registerable, ContainerChild, Element, ProgressBar, Widgetpublic final class ComplexProgressBar extends BaseProgressBar
Element.AlignmentMAX_OPACITY, virtualHeightemptyZones| Constructor | Description |
|---|---|
ComplexProgressBar(String name,
BaseCoordinate coordinates,
AbstractIconElement left,
AbstractIconElement middle,
AbstractIconElement right,
AbstractIconElement middleEmpty,
AbstractIconElement rightEmpty,
SimpleContainer parent) |
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 x,
int y) |
Implementation to update the widget position.
|
protected void |
showImpl() |
Implementation to set the widget visible.
|
protected void |
updateView(float progress) |
Update the progress state.
|
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 ComplexProgressBar(String name, BaseCoordinate coordinates, AbstractIconElement left, AbstractIconElement middle, AbstractIconElement right, AbstractIconElement middleEmpty, AbstractIconElement rightEmpty, SimpleContainer parent)
name - Widget name, must be unique.coordinates - Widget coordinates, width value is used for a 100% completed
progress bar.left - Icon element for the progress bar left part.middle - Icon element for the progress bar middle part.right - Icon element for the progress bar right part.middleEmpty - Icon element for the progress bar middle part when empty.rightEmpty - Icon element for the progress bar right part when empty.parent - 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 x, int y)
BaseElementsetPositionImpl in class BaseElementx - New widget x position.y - New widget y position.protected void updateView(float progress)
updateView in class BaseProgressBarprogress - New progress value.public void setContentMaterial(Material mat)
Copyright © 2014–2018. All rights reserved.