public class UIKnob extends UICompoundParameterControl implements UIFocus
UIInputBox.FillStyle, UIInputBox.ProgressIndicatorUIContextActions.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_MARGINeditable, editBuffer, editing, fillColor, fillStyle, hasFill, progressFillStyle, returnKeyEditDEFAULT_HEIGHT, useCommandEnginebottomMargin, height, leftMargin, rightMargin, textAlignHorizontal, textAlignVertical, textOffsetX, textOffsetY, topMargin, width, x, ychildren, 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, setParameterdecrementValue, 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, setShowLabeledit, enableImmediateEdit, enableMousePressEdit, enableReturnKeyEdit, getEditBufferValue, getFillWidthNormalized, incrementMouseValue, isEditable, setProgressColor, setProgressColor, setProgressFillStyle, setProgressIndicator, setValueCommandgetContextActions, getOscAddress, setNormalizedCommand, setUseCommandEngineaddToContainer, 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, setYaddLoopTask, beginDraw, blur, bringToFront, consumeKeyEvent, consumeMousePress, consumeMouseWheelEvent, endDraw, focus, getFocusedChild, getLX, getUI, hasDirectFocus, hasFocus, isVisible, keyEventConsumed, loop, mousePressConsumed, onFocus, onUIResize, removeLoopTask, toggleVisibleonKeyTyped, onMouseClicked, onMouseMoved, onMouseOut, onMouseOver, onMouseWheelpublic 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)
UIObjectonDraw in class UIParameterControlui - UI contextpg - Graphics contextprotected void onMousePressed(MouseEvent mouseEvent, float mx, float my)
UIEventHandleronMousePressed in class UIParameterControlmouseEvent - Mouse eventmx - x-coordinatemy - y-coordinateprotected void onMouseDragged(MouseEvent mouseEvent, float mx, float my, float dx, float dy)
UIEventHandleronMouseDragged in class UIInputBoxmouseEvent - Mouse eventmx - x-coordinatemy - y-coordinatedx - movement in xdy - movement in yLX library by Mark C. Slee. © 2012-2020