Package com.prineside.tdi2.ui.actors
Class HorizontalSlider
java.lang.Object
com.badlogic.gdx.scenes.scene2d.Actor
com.badlogic.gdx.scenes.scene2d.Group
com.prineside.tdi2.ui.actors.HorizontalSlider
- All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.utils.Cullable
public class HorizontalSlider
extends com.badlogic.gdx.scenes.scene2d.Group
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHorizontalSlider
(float width, double value, double minValue, double maxValue, ObjectRetriever<Double> listener) -
Method Summary
Modifier and TypeMethodDescriptiondouble
getValue()
void
setNotifyOnDrag
(boolean notifyOnDrag) void
setValue
(double value, boolean notifyListener) Methods inherited from class com.badlogic.gdx.scenes.scene2d.Group
act, addActor, addActorAfter, addActorAt, addActorBefore, applyTransform, applyTransform, childrenChanged, clear, clear, clearChildren, clearChildren, computeTransform, debugAll, draw, drawChildren, drawDebug, drawDebugChildren, findActor, getChild, getChildren, getCullingArea, hasChildren, hit, isTransform, localToDescendantCoordinates, removeActor, removeActor, removeActorAt, resetTransform, resetTransform, setCullingArea, setDebug, setStage, setTransform, swapActor, swapActor, toString
Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor
addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebugBounds, fire, firstAscendant, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getWidth, getX, getX, getY, getY, getZIndex, hasActions, hasKeyboardFocus, hasParent, hasScrollFocus, isAscendantOf, isDescendantOf, isTouchable, isTouchFocusListener, isTouchFocusTarget, isVisible, localToActorCoordinates, localToAscendantCoordinates, localToParentCoordinates, localToScreenCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, positionChanged, remove, removeAction, removeCaptureListener, removeListener, rotateBy, rotationChanged, scaleBy, scaleBy, scaleChanged, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setParent, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setTouchable, setUserObject, setVisible, setWidth, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, sizeChanged, stageToLocalCoordinates, toBack, toFront
-
Field Details
-
HEIGHT
public static final float HEIGHT- See Also:
-
HANDLE_WIDTH
public static final float HANDLE_WIDTH- See Also:
-
-
Constructor Details
-
HorizontalSlider
public HorizontalSlider(float width, double value, double minValue, double maxValue, ObjectRetriever<Double> listener)
-
-
Method Details
-
setNotifyOnDrag
public void setNotifyOnDrag(boolean notifyOnDrag) -
setValue
public void setValue(double value, boolean notifyListener) -
getValue
public double getValue()
-