public class UIKnob extends UICompoundParameterControl implements UIFocus
UIInputBox.FillStyle, UIInputBox.ProgressIndicator
UIContextActions.Action
Modifier and Type | Field and Description |
---|---|
static int |
HEIGHT |
static int |
KNOB_MARGIN |
static int |
KNOB_SIZE |
static int |
WIDTH |
enabled, keyEditable, LABEL_HEIGHT, LABEL_MARGIN, parameter, polarity, TEXT_MARGIN
editable, editBuffer, editing, fillColor, 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 |
---|
UIKnob() |
UIKnob(float x,
float y) |
UIKnob(float x,
float y,
float w,
float h) |
UIKnob(float x,
float y,
LXListenableNormalizedParameter parameter) |
UIKnob(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
|
getCompoundNormalized, registerModulation, setParameter
decrementValue, getControlTarget, getDescription, getDescription, getFocusColor, getModulatedValueColor, getModulationSource, getModulationTarget, getNormalized, getParameter, getValueString, incrementValue, isEnabled, isValidCharacter, onBlur, onCopy, onKeyPressed, onKeyReleased, onMouseReleased, 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, onResize, 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 static final int KNOB_MARGIN
public static final int KNOB_SIZE
public static final int WIDTH
public static final int HEIGHT
public UIKnob(LXListenableNormalizedParameter parameter)
public UIKnob(float x, float y, LXListenableNormalizedParameter parameter)
public UIKnob()
public UIKnob(float x, float y)
public UIKnob(float x, float y, float w, float h)
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 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