Class SliderComponent
Animated horizontal slider with optional value labels.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfillColor(int fillArgb) Deprecated.fillColor(RenderColor fillColor) protected booleanhandlesMouseClick(float mouseX, float mouseY, int button) protected booleanmax(double max) min(double min) protected booleanonKeyPressed(com.render.api.gui.GuiRenderContext context, int keyCode, int scanCode, int modifiers) protected booleanonMouseClicked(com.render.api.gui.GuiRenderContext context, float mouseX, float mouseY, int button) protected booleanonMouseDragged(com.render.api.gui.GuiRenderContext context, float mouseX, float mouseY, int button, double dragX, double dragY) protected booleanonMouseReleased(com.render.api.gui.GuiRenderContext context, float mouseX, float mouseY, int button) protected voidrenderSelf(com.render.api.gui.GuiRenderContext context) step(double step) thumbColor(int thumbArgb) Deprecated.thumbColor(RenderColor thumbColor) trackColor(int trackArgb) Deprecated.trackColor(RenderColor trackColor) doublevalue()value(double value) valueFormatter(DoubleFunction<String> formatter) valueLabelPosition(SliderValueLabelPosition labelPosition) Methods inherited from class GuiComponent
activeStateStyle, add, alignContent, alignItems, alignSelf, anchor, anchorName, anchorPlacement, animatedBorder, animation, applyStyle, aspectRatio, autoHeight, autoSize, autoWidth, backdropFilters, backfaceVisibility, backgroundColor, backgroundColor, backgroundLayer, backgroundLayers, backgroundLayers, border, borderCollapse, borderColor, borderColor, borderSpacing, borderWidth, boxDecorationBreak, boxGlow, boxShadow, boxShadows, boxShadows, boxSizing, breakAfter, breakBefore, breakInside, cancel, captionSide, caretStyle, centered, childGap, childLayout, childLayoutViewport, childOffsetX, childOffsetY, children, clearChildren, clipChildren, clipPath, clipsChildren, color, color, columnCount, columnFill, columnGap, columnRule, columnSpan, columnWidth, computedStyle, containsChildClipPoint, contextMenu, cornerRadius, defaultDisplay, dirtyCategories, disabled, display, emptyCells, enabled, enabled, filters, findById, findById, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, focused, focused, fragmentTree, glow, gradient, gridAutoFlow, gridPlacement, gridTemplate, handlesMouseScroll, height, height, height, hovered, id, id, indeterminate, indeterminate, inlineStyle, inset, inset, intrinsicSize, invalidateModernLayout, isClippingChildren, justifyContent, justifyItems, justifySelf, lastInvalidationReason, layoutChildren, layoutFragments, listStyleImage, listStylePosition, listStyleType, margin, margin, margin, marginBreak, markerGap, markerSide, maskLayers, maskLayers, matchesStyleState, maxHeight, maxWidth, minHeight, minWidth, motionPath, onCharTyped, onFocusChanged, onModernLayoutComplete, onMouseScrolled, opacity, order, orphans, outline, padding, padding, padding, pageName, paint, parent, pause, play, position, position, preferredHeight, preferredHeightForWidth, preferredWidth, pressed, pseudoElementBox, pseudoElementStyle, quotes, rangeState, rangeState, readOnly, readOnly, remove, removeStyleClass, renderChildren, renderClippedChildren, renderOverlay, requestFocus, required, required, resolveBaseProperties, resume, rowGap, scrollMargin, scrollMargin, scrollSnapStop, self, shadow, shouldRouteToChildren, size, size, startingStyle, stateProvider, styleAttribute, styleAttribute, styleClass, styleClasses, styledPseudoElements, styleOpen, styleState, styleState, tabIndex, tabIndex, tableLayout, tick, tooltip, transform, transformBox, transformOrigin, transformStyle, transition, transition, transition, transition, transition, transition, transitionAll, transitionAll, transitionAll, translate, translateX, translateY, validity, validity, verticalAlign, viewTransitionName, viewTransitionName, visible, visible, widows, width, width, width, writeModernInline, writeTextShadow, writingState, x, x, y, y, zIndex
-
Constructor Details
-
SliderComponent
public SliderComponent()
-
-
Method Details
-
min
-
max
-
step
-
value
-
value
public double value() -
onChange
-
valueFormatter
-
valueLabelPosition
-
trackColor
-
trackColor
Deprecated. -
fillColor
-
fillColor
Deprecated. -
thumbColor
-
thumbColor
Deprecated. -
isFocusable
protected boolean isFocusable()- Overrides:
isFocusablein classGuiComponent<SliderComponent>
-
handlesMouseClick
protected boolean handlesMouseClick(float mouseX, float mouseY, int button) - Overrides:
handlesMouseClickin classGuiComponent<SliderComponent>
-
onMouseClicked
protected boolean onMouseClicked(com.render.api.gui.GuiRenderContext context, float mouseX, float mouseY, int button) - Overrides:
onMouseClickedin classGuiComponent<SliderComponent>
-
onMouseDragged
protected boolean onMouseDragged(com.render.api.gui.GuiRenderContext context, float mouseX, float mouseY, int button, double dragX, double dragY) - Overrides:
onMouseDraggedin classGuiComponent<SliderComponent>
-
onMouseReleased
protected boolean onMouseReleased(com.render.api.gui.GuiRenderContext context, float mouseX, float mouseY, int button) - Overrides:
onMouseReleasedin classGuiComponent<SliderComponent>
-
onKeyPressed
protected boolean onKeyPressed(com.render.api.gui.GuiRenderContext context, int keyCode, int scanCode, int modifiers) - Overrides:
onKeyPressedin classGuiComponent<SliderComponent>
-
renderSelf
protected void renderSelf(com.render.api.gui.GuiRenderContext context) - Overrides:
renderSelfin classGuiComponent<SliderComponent>
-
fillColor(RenderColor).