IntegerSliderNode
abstract class IntegerSliderNode
Extends: SliderNode<Integer>
Package: dev.joid.lib.ui.node.impl.control.slider · Module: core · Source: IntegerSliderNode.java
A slider over a range of integers.
Description
Section titled “Description”A skin extends it and gives its parts as for any SliderNode.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| IntegerSliderNode(double x, double y, double width, double height) protected | Creates the slider at x, y with a width and a height in design pixels, from the constructor of a skin. |
Properties
Section titled “Properties”Inherited from SliderNode (3)
Inherited from BaseSliderNode (1)
Inherited from BaseChoiceNode (3)
values · value · valueIndex
Inherited from Node (24)
x · y · width · height · position · anchor · anchorX · anchorY · aspectRatio · zindex · zlevel · skeleton · visible · enabled · interactive · cursor · hoverDuration · hoverEquation · hover · overflow · scrollSpeed · scrollbar · label · draggable
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
this | range(int min, int max) fluent | Gives the options every integer from min to max, both included. |
this | range(int min, int max, int step) fluent | Gives the options from min to max by step; max is an option only when a step lands on it. |
For subclasses
Section titled “For subclasses”| Returns | Signature | Summary |
|---|---|---|
Integer | fallback(Integer value) hook protected | Returns the option nearest to the value asked for, the smaller one on a tie, whatever the order of the options. |
Inherited from BaseSliderNode (2)
Inherited from BaseChoiceNode (3)
Inherited from Node (128)
load · render · renderHover · updateScroll · updateScrollX · updateScrollY · append · attach · body · clearChildren · getChild · getChildren · getNodeListAt · getParent · isAttached · getAbsoluteX · getAbsoluteY · getAbsoluteDefaultX · getAbsoluteDefaultY · toDrawX · toDrawY · w · h · dw · dh · mw · mh · aw · ah · ax · ay · getDefaultWidth · getDefaultHeight · removeHover · clearHover · refreshHover · getResolvedCursor · hoverValue · getHoverAnimator · isHovered · handleMousePressed · handleMouseReleased · handleMouseDragged · handleMouseScroll · handleCharTyped · handleKeyPressed · handleKeyReleased · getLastClickTime · getLastClickButton · getLastKey · getLastKeyTime · scrollX · scrollY · scrollTo · beforeScroll · hasOverflowX · hasOverflowY · getOverflowArea · getScrollX · getScrollY · getTargetScrollX · getTargetScrollY · getMaxScrollX · getMaxScrollY · isScrollEndX · isScrollEndY · startDragging · stopDragging · beforeDragStart · beforeDragDrop · isDragging · getDragX · getDragY · isDragged · getDragSource · getDraggedNode · getStartDragX · getStartDragY · getTargetDragX · getTargetDragY · effect · removeEffect · clearEffects · hasEffect · getEffect · layer · clearLayers · animate · removeAnimator · wait · watch · hasListener · isVisibleProperty · isMounted · getIndex · getUi · getHierarchy · getMappedIndex · getTaskList · getShortcutList · toJson · toString · getEventBus · getBodyConsumer · getDefaultX · getDefaultY · getLayoutX · getLayoutY · getShiftX · getShiftY · isStepping · getLastCodepoint · getLoadCount · getRenderTime · remove · self · copy · useStore · addTask · removeTask · addShortcut · removeShortcut · layoutPosition · layoutSize · fit · move · beforeMove · hoverColor
Events
Section titled “Events”Inherited from BaseChoiceNode (1)
Inherited from Node (21)
onUpdate · onDetach · onInit · onRender · onDraw · onMount · onHoverStart · onHover · onHoverEnd · onScroll · onScrollToEnd · onScrollEndReached · onDragStart · onDrag · onDragDrop · onDragSnap · onMove · onChildAppend · onClick · onAnimate · onWatch
Creation details
Section titled “Creation details”IntegerSliderNode
Section titled “IntegerSliderNode”IntegerSliderNode(double x, double y, double width, double height) protected
Creates the slider at x, y with a width and a height in design pixels, from the constructor of a skin.
Method details
Section titled “Method details”this range(int min, int max) fluent
Gives the options every integer from min to max, both included.
Throws an IllegalArgumentException when min is above max, or when the range holds more values than Integer.MAX_VALUE, as range(0, Integer.MAX_VALUE) does.
this range(int min, int max, int step) fluent
Throws:
IllegalArgumentException: The step … of the slider range must be positive, pass a step of 1 or moreIllegalArgumentException: The min … of the slider range is above its max …, pass a min of at most …IllegalArgumentException: The slider range from … to … by … holds more than … values, pass a narrower range or a larger step
Gives the options from min to max by step; max is an option only when a step lands on it.
Throws an IllegalArgumentException when the step is not positive, when min is above max, or when the range holds more values than Integer.MAX_VALUE.
The options are computed on demand, so a large range costs nothing.
fallback
Section titled “fallback”Integer fallback(Integer value) hook protected
Returns the option nearest to the value asked for, the smaller one on a tie, whatever the order of the options.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
