Package heronarts.glx.ui.component
Class UISlider
- All Implemented Interfaces:
UIContextActions
,UIControlTarget
,UICopy
,UIFocus
,UIKeyFocus
,UIModulationSource
,UIModulationTarget
,UIMouseFocus
,UIPaste
,UITabFocus
,LXLoopTask
,LXParameterListener
-
Nested Class Summary
Nested classes/interfaces inherited from class heronarts.glx.ui.component.UIInputBox
UIInputBox.EditState, UIInputBox.FillStyle, UIInputBox.ProgressIndicator
Nested classes/interfaces inherited from class heronarts.glx.ui.UI2dComponent
UI2dComponent.Scissor, UI2dComponent.Scissored, UI2dComponent.UIDragReorder
Nested classes/interfaces inherited from interface heronarts.glx.ui.UIContextActions
UIContextActions.Action
-
Field Summary
Fields inherited from class heronarts.glx.ui.component.UIParameterControl
enabled, keyEditable, LABEL_HEIGHT, LABEL_MARGIN, parameter, polarity, TEXT_MARGIN
Fields inherited from class heronarts.glx.ui.component.UIInputBox
editable, editing, fillStyle, hasFill, mouseEditable, returnKeyEdit
Fields inherited from class heronarts.glx.ui.component.UIParameterComponent
DEFAULT_HEIGHT, useCommandEngine
Fields inherited from class heronarts.glx.ui.UI2dComponent
debug, debugName, height, marginBottom, marginLeft, marginRight, marginTop, redraw, scissor, textAlignHorizontal, textAlignVertical, textOffsetX, textOffsetY, width, x, y
-
Constructor Summary
ConstructorDescriptionUISlider()
UISlider
(float x, float y, float w, float h) UISlider
(float w, float h, LXListenableNormalizedParameter parameter) UISlider
(float w, LXListenableNormalizedParameter parameter) UISlider
(UISlider.Direction direction, float x, float y, float w, float h) UISlider
(UISlider.Direction direction, float x, float y, float w, float h, LXListenableNormalizedParameter parameter) UISlider
(UISlider.Direction direction, float w, float h, LXListenableNormalizedParameter parameter) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Subclasses should override this method to perform their drawing functions.protected void
onMouseDragged
(MouseEvent mouseEvent, float mx, float my, float dx, float dy) Subclasses override to receive mouse eventsprotected void
onMousePressed
(MouseEvent mouseEvent, float mx, float my) Subclasses override to receive mouse eventsprotected void
onMouseReleased
(MouseEvent mouseEvent, float mx, float my) Subclasses override to receive mouse eventsprotected void
onResize()
Subclasses may override this method, invoked when the component is resizedsetFillColor
(int fillColor) setFillColor
(UIColor fillColor) Methods inherited from class heronarts.glx.ui.component.UICompoundParameterControl
addModulationContextActions, dispose, getCompoundNormalized, getContextActions, registerModulation, setParameter
Methods inherited from class heronarts.glx.ui.component.UIParameterControl
decrementValue, drawParameterLabel, getBaseNormalized, getControlTarget, getDescription, getDescription, getFocusColor, getModulatedValueColor, getModulationSource, getModulationTarget, getParameter, getValueString, incrementValue, isEnabled, isShowLabel, isValidCharacter, isWrappable, onBlur, onCopy, onKeyPressed, onKeyReleased, onParameterChanged, onPaste, saveEditBuffer, setEditable, setEnabled, setLabel, setNormalized, setPolarity, setShowLabel
Methods inherited from class heronarts.glx.ui.component.UIInputBox
disableImmediateAppend, disableImmediateEdit, disableReturnKeyEdit, edit, edit, editAppend, enableImmediateAppend, enableImmediateEdit, enableReturnKeyEdit, getEditBuffer, getEditRange, getFillWidthNormalized, getInitialEditBufferValue, incrementMouseValue, isEditable, onDrawText, onEditChange, onEditFinished, setMouseEditable, setProgressColor, setProgressColor, setProgressColor, setProgressIndicator, setValueCommand
Methods inherited from class heronarts.glx.ui.component.UIParameterComponent
getOscAddress, setEnableContextActions, setModulationRangeCommand, setNormalizedCommand, setUseCommandEngine
Methods inherited from class heronarts.glx.ui.UI2dComponent
addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, assertValidContainer, clipTextToWidth, clipTextToWidth, contains, dbch, drawBackground, drawBorder, drawFocus, drawFocusCorners, drawFocusCorners, drawParentBackground, getAbsoluteX, getAbsoluteY, getBackgroundColor, getBorderColor, getBorderWeight, getContainer, getDebugClassHierarchy, getDebugClassHierarchy, getFocusSize, getFont, getFontColor, getHeight, getMappableParameter, getNextSibling, getParent, getPrevSibling, getWidth, getX, getY, hasBackground, hasBorder, hasFont, hasFontColor, isMappable, 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, vgRoundedRect
Methods inherited from class heronarts.glx.ui.UIObject
addListener, addListener, addLoopTask, blur, bringToFront, focus, getFocusedChild, getLX, getUI, hasDirectFocus, hasFocus, isVisible, loop, onFocus, onUIResize, removeLoopTask, requireUIThread, setConsumeMousePress, setDebugId, toggleVisible, toString
Methods inherited from class heronarts.glx.ui.UIEventHandler
onMouseMoved, onMouseOut, onMouseOver, onMouseScroll
-
Constructor Details
-
UISlider
-
UISlider
-
UISlider
public UISlider(UISlider.Direction direction, float w, float h, LXListenableNormalizedParameter parameter) -
UISlider
public UISlider(UISlider.Direction direction, float x, float y, float w, float h, LXListenableNormalizedParameter parameter) -
UISlider
public UISlider() -
UISlider
public UISlider(float x, float y, float w, float h) -
UISlider
-
-
Method Details
-
onResize
protected void onResize()Description copied from class:UI2dComponent
Subclasses may override this method, invoked when the component is resized- Overrides:
onResize
in classUI2dComponent
-
resetFillColor
-
setFillColor
-
setFillColor
-
onDraw
Description copied from class:UI2dComponent
Subclasses should override this method to perform their drawing functions.- Overrides:
onDraw
in classUIParameterControl
- Parameters:
ui
- UI contextvg
- Graphics context
-
onMousePressed
Description copied from class:UIEventHandler
Subclasses override to receive mouse events- Overrides:
onMousePressed
in classUIParameterControl
- Parameters:
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinate
-
onMouseReleased
Description copied from class:UIEventHandler
Subclasses override to receive mouse events- Overrides:
onMouseReleased
in classUIParameterControl
- Parameters:
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinate
-
onMouseDragged
Description copied from class:UIEventHandler
Subclasses override to receive mouse events- Overrides:
onMouseDragged
in classUIInputBox
- Parameters:
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinatedx
- movement in xdy
- movement in y
-