public class UISlider extends UICompoundParameterControl implements UIFocus
Modifier and Type | Class and Description |
---|---|
static class |
UISlider.Direction |
UIInputBox.FillStyle, UIInputBox.ProgressIndicator
UIContextActions.Action
enabled, keyEditable, LABEL_HEIGHT, LABEL_MARGIN, parameter, polarity, TEXT_MARGIN
editable, editBuffer, editing, fillStyle, hasFill, progressFillStyle, returnKeyEdit
DEFAULT_HEIGHT, useCommandEngine
bottomMargin, height, leftMargin, rightMargin, textAlignHorizontal, textAlignVertical, textOffsetX, textOffsetY, topMargin, width, x, y
children, hasFocus, mousePressContextMenu, visible
Constructor and Description |
---|
UISlider() |
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) |
Modifier and Type | Method and Description |
---|---|
protected void |
onDraw(UI ui,
PGraphics pg)
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 events
|
protected void |
onMousePressed(MouseEvent mouseEvent,
float mx,
float my)
Subclasses override to receive mouse events
|
protected void |
onMouseReleased(MouseEvent mouseEvent,
float mx,
float my)
Subclasses override to receive mouse events
|
protected void |
onResize()
Subclasses may override this method, invoked when the component is resized
|
UISlider |
resetFillColor() |
UISlider |
setFillColor(int color) |
getCompoundNormalized, registerModulation, setParameter
decrementValue, getControlTarget, getDescription, getDescription, getFocusColor, getModulatedValueColor, getModulationSource, getModulationTarget, getNormalized, getParameter, getValueString, incrementValue, isEnabled, isValidCharacter, onBlur, onCopy, onKeyPressed, onKeyReleased, onParameterChanged, onPaste, saveEditBuffer, setEditable, setEnabled, setLabel, setNormalized, setPolarity, setShowLabel
edit, enableImmediateEdit, enableMousePressEdit, enableReturnKeyEdit, getEditBufferValue, getFillWidthNormalized, incrementMouseValue, isEditable, setProgressColor, setProgressColor, setProgressFillStyle, setProgressIndicator, setValueCommand
getContextActions, getOscAddress, setNormalizedCommand, setUseCommandEngine
addToContainer, addToContainer, breakTextToWidth, clipTextToWidth, contains, drawBackground, drawBorder, drawFocus, drawFocusCorners, drawFocusCorners, getBackgroundColor, getBorderColor, getBorderRounding, getBorderWeight, getContainer, getFocusSize, getFont, getFontColor, getHeight, getNextSibling, getParent, getPrevSibling, getWidth, getX, getY, hasBackground, hasBorder, hasFont, hasFontColor, isMappable, redraw, removeFromContainer, setBackground, setBackgroundColor, setBorder, setBorderColor, setBorderRounding, setBorderWeight, setBottomMargin, setContainerIndex, setDescription, setFocusBackground, setFocusBackgroundColor, setFocusColor, setFocusCorners, setFont, setFontColor, setFontColor, setHeight, setLeftMargin, setMappable, setMargin, setMargin, setMargin, setPosition, setPosition, setPosition, setPosition, setRightMargin, setSize, setTextAlignment, setTextAlignment, setTextOffset, setTopMargin, setVisible, setWidth, setX, setY
addLoopTask, beginDraw, blur, bringToFront, consumeKeyEvent, consumeMousePress, consumeMouseWheelEvent, endDraw, focus, getFocusedChild, getLX, getUI, hasDirectFocus, hasFocus, isVisible, keyEventConsumed, loop, mousePressConsumed, onFocus, onUIResize, removeLoopTask, toggleVisible
onKeyTyped, onMouseClicked, onMouseMoved, onMouseOut, onMouseOver, onMouseWheel
public UISlider(float w, LXListenableNormalizedParameter parameter)
public UISlider(float w, float h, LXListenableNormalizedParameter parameter)
public UISlider(UISlider.Direction direction, float w, float h, LXListenableNormalizedParameter parameter)
public UISlider(UISlider.Direction direction, float x, float y, float w, float h, LXListenableNormalizedParameter parameter)
public UISlider()
public UISlider(float x, float y, float w, float h)
public UISlider(UISlider.Direction direction, float x, float y, float w, float h)
protected void onResize()
UI2dComponent
onResize
in class UI2dComponent
public UISlider resetFillColor()
public UISlider setFillColor(int color)
protected void onDraw(UI ui, PGraphics pg)
UIObject
onDraw
in class UIParameterControl
ui
- UI contextpg
- Graphics contextprotected void onMousePressed(MouseEvent mouseEvent, float mx, float my)
UIEventHandler
onMousePressed
in class UIParameterControl
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinateprotected void onMouseReleased(MouseEvent mouseEvent, float mx, float my)
UIEventHandler
onMouseReleased
in class UIParameterControl
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinateprotected void onMouseDragged(MouseEvent mouseEvent, float mx, float my, float dx, float dy)
UIEventHandler
onMouseDragged
in class UIInputBox
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinatedx
- movement in xdy
- movement in yLX library by Mark C. Slee. © 2012-2020