Package heronarts.glx.ui.component
Class UINumberBox
java.lang.Object
heronarts.glx.ui.UIEventHandler
heronarts.glx.ui.UIObject
heronarts.glx.ui.UI2dComponent
heronarts.glx.ui.component.UIParameterComponent
heronarts.glx.ui.component.UIInputBox
heronarts.glx.ui.component.UINumberBox
- All Implemented Interfaces:
UIContextActions,UIFocus,UIKeyFocus,UIMouseFocus,UITabFocus,LXLoopTask
- Direct Known Subclasses:
UIDoubleBox,UIIntegerBox
-
Nested Class Summary
Nested classes/interfaces inherited from class heronarts.glx.ui.component.UIInputBox
UIInputBox.EditState, UIInputBox.FillStyle, UIInputBox.ProgressIndicatorNested classes/interfaces inherited from class heronarts.glx.ui.UI2dComponent
UI2dComponent.Scissor, UI2dComponent.Scissored, UI2dComponent.UIDragReorderNested classes/interfaces inherited from interface heronarts.glx.ui.UIContextActions
UIContextActions.Action, UIContextActions.ContextAction -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected floatFields inherited from class heronarts.glx.ui.component.UIInputBox
editable, editing, enabled, fillColor, fillStyle, hasFill, mouseEditable, returnKeyEditFields inherited from class heronarts.glx.ui.component.UIParameterComponent
DEFAULT_HEIGHT, useCommandEngineFields inherited from class heronarts.glx.ui.UI2dComponent
borderRoundingBottomLeft, borderRoundingBottomRight, borderRoundingTopLeft, borderRoundingTopRight, debug, debugName, hasBorderRounding, height, marginBottom, marginLeft, marginRight, marginTop, redraw, scissor, textAlignHorizontal, textAlignVertical, textOffsetX, textOffsetY, width, x, y -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedUINumberBox(float x, float y, float w, float h) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()voiddrawBorder(UI ui, VGraphics vg) Returns a list of context actions that should be shown for this itemprotected voidonMousePressed(MouseEvent mouseEvent, float mx, float my) Subclasses override to receive mouse eventssetFill(boolean hasFill) setFillColor(int fillColor) setFillStyle(UIInputBox.FillStyle fillStyle) protected voidsetModulationTarget(LXParameter parameter) setShiftMultiplier(float shiftMultiplier) Sets a multiplier by which the amount value changes are modulated when the shift key is down.Methods inherited from class heronarts.glx.ui.component.UIInputBox
decrementValue, disableImmediateAppend, disableImmediateEdit, disableReturnKeyEdit, edit, edit, editAppend, enableImmediateAppend, enableImmediateEdit, enableReturnKeyEdit, getEditBuffer, getEditRange, getFillWidthNormalized, getInitialEditBufferValue, getValueString, incrementMouseValue, incrementValue, isEditable, isEnabled, isValidCharacter, onBlur, onDraw, onDrawText, onEditChange, onEditFinished, onKeyPressed, onMouseDragged, onMouseReleased, saveEditBuffer, setEditable, setEnabled, setMouseEditable, setProgressColor, setProgressColor, setProgressColor, setProgressIndicator, setValueCommandMethods inherited from class heronarts.glx.ui.component.UIParameterComponent
getOscAddress, getParameter, setEnableContextActions, setModulationRangeCommand, setNormalizedCommand, setUseCommandEngineMethods inherited from class heronarts.glx.ui.UI2dComponent
addAfterSibling, addBeforeSibling, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, assertValidContainer, clipTextToWidth, clipTextToWidth, contains, dbch, drawBackground, drawComponentBackground, drawFocus, drawFocusCorners, drawFocusCorners, drawParentBackground, getAbsoluteX, getAbsoluteY, getBackgroundColor, getBorderColor, getBorderWeight, getBottomMargin, getContainer, getDebugClassHierarchy, getDebugClassHierarchy, getFocusColor, getFocusSize, getFont, getFontColor, getHeight, getLeftMargin, getMappableParameter, getNextSibling, getNextSibling, getParent, getPrevSibling, getPrevSibling, getRightMargin, getTopMargin, getWidth, getX, getY, hasBackground, hasBorder, hasFont, hasFontColor, isMappable, onResize, redraw, removeFromContainer, removeFromContainer, setBackground, setBackgroundColor, setBackgroundColor, setBorder, setBorderColor, setBorderColor, setBorderRounding, setBorderRounding, setBorderWeight, setBottomMargin, setContainerIndex, setContainerPosition, setDebug, setDebug, setDescription, setFocusBackground, setFocusBackgroundColor, setFocusBackgroundColor, setFocusColor, setFocusColor, setFocusCorners, setFont, setFontColor, setFontColor, setFontColor, setHeight, setLeftMargin, setMappable, setMargin, setMargin, setMargin, setPosition, setPosition, setPosition, setPosition, setRightMargin, setSize, setTextAlignment, setTextAlignment, setTextOffset, setTopMargin, setVisible, setWidth, setX, setY, vgRoundedRect, vgRoundedRect, vgRoundedRectMethods inherited from class heronarts.glx.ui.UIObject
addListener, addListener, addLoopTask, addLoopTask, blur, bringToFront, focus, getDescription, getFocusedChild, getLX, getUI, hasDirectFocus, hasFocus, isVisible, isVisible, loop, onFocus, onUIResize, removeLoopTask, requireUIThread, setConsumeMousePress, setDebugId, setMouseCursor, toggleVisible, toStringMethods inherited from class heronarts.glx.ui.UIEventHandler
onGamepadAxisChanged, onGamepadButtonPressed, onGamepadButtonReleased, onKeyReleased, onMouseMoved, onMouseOut, onMouseOver, onMouseScroll
-
Field Details
-
hasShiftMultiplier
protected boolean hasShiftMultiplier -
shiftMultiplier
protected float shiftMultiplier
-
-
Constructor Details
-
UINumberBox
protected UINumberBox() -
UINumberBox
protected UINumberBox(float x, float y, float w, float h)
-
-
Method Details
-
setFillStyle
-
setFill
-
setFillColor
-
setShiftMultiplier
Sets a multiplier by which the amount value changes are modulated when the shift key is down. Either for more precise control or larger jumps, depending on the component.- Parameters:
shiftMultiplier- Amount to multiply by- Returns:
- this
-
setModulationTarget
-
drawBorder
- Overrides:
drawBorderin classUI2dComponent
-
onMousePressed
Description copied from class:UIEventHandlerSubclasses override to receive mouse events- Overrides:
onMousePressedin classUIInputBox- Parameters:
mouseEvent- Mouse eventmx- x-coordinatemy- y-coordinate
-
getContextActions
Description copied from interface:UIContextActionsReturns a list of context actions that should be shown for this item- Specified by:
getContextActionsin interfaceUIContextActions- Overrides:
getContextActionsin classUIParameterComponent- Returns:
- List of context actions
-
dispose
public void dispose()
-