public class ControlP5Base extends ControlP5Legacy implements ControlP5Constants
DEBUG
acceptClassList, ACTION_BROADCAST, ACTION_CLICK, ACTION_DOUBLE_PRESS, ACTION_DRAG, ACTION_END_DRAG, ACTION_ENTER, ACTION_EXIT, ACTION_LEAVE, ACTION_MOVE, ACTION_PRESS, ACTION_PRESSED, ACTION_RELEASE, ACTION_RELEASE_OUTSIDE, ACTION_RELEASED, ACTION_RELEASEDOUTSIDE, ACTION_START_DRAG, ACTION_WHEEL, ACTIVE, ALL, ALT, AQUA, ARC, ARRAY, BACKSPACE, BASELINE, BITFONT, BLACK, BLUE, BOOLEAN, BOTTOM, BOTTOM_OUTSIDE, CAPTIONLABEL, CENTER, CHECKBOX, COMMANDKEY, CONTROL, controlEventClass, CUSTOM, DECREASE, DEFAULT, DELETE, delimiter, DONE, DOWN, DROPDOWN, ELLIPSE, ENTER, ESCAPE, EVENT, eventMethod, FADEIN, FADEOUT, FIELD, FLOAT, FUCHSIA, GRAY, GREEN, grixel, HALF_PI, HIDE, HIGHLIGHT, HORIZONTAL, IDLE, IMAGE, INACTIVE, INCREASE, INTEGER, INVALID, J2D, JSON, KEYCONTROL, LEFT, LEFT_OUTSIDE, LIME, LINE, LIST, LOAD, MAROON, MENU, METHOD, MOVE, MULTI, MULTIPLES, NAVY, OLIVE, ORANGE, OVER, P2D, P3D, pathdelimiter, PI, PRESS, PRESSED, PRINT, PURPLE, RED, RELEASE, RELEASED, RESET, RIGHT, RIGHT_OUTSIDE, SAVE, SERIALIZED, SHIFT, SILVER, SINGLE, SINGLE_COLUMN, SINGLE_ROW, SPRITE, standard56, standard58, STRING, SWITCH, SWITCH_BACK, SWITCH_FORE, synt24, TAB, TEAL, THEME_A, THEME_CP52014, THEME_CP5BLUE, THEME_GREY, THEME_RED, THEME_RETRO, TOP, TOP_OUTSIDE, TRANSITION_WAIT_FADEIN, TREE, TWO_PI, UP, VALUELABEL, VERBOSE, VERTICAL, WAIT, WHITE, YELLOW
Constructor and Description |
---|
ControlP5Base() |
Modifier and Type | Method and Description |
---|---|
Accordion |
addAccordion(java.lang.Object theObject,
java.lang.String theName) |
Accordion |
addAccordion(java.lang.String theName) |
Bang |
addBang(java.lang.Object theObject,
java.lang.String theName) |
Bang |
addBang(java.lang.String theName)
A Bang triggers an event without passing a value.
|
Button |
addButton(java.lang.Object theObject,
java.lang.String theName) |
Button |
addButton(java.lang.String theName)
Triggers an event and passing a value.
|
ButtonBar |
addButtonBar(java.lang.Object theObject,
java.lang.String theName) |
ButtonBar |
addButtonBar(java.lang.String theName) |
Chart |
addChart(java.lang.String theName)
adds chart support to display float array based data.
|
CheckBox |
addCheckBox(java.lang.Object theObject,
java.lang.String theName) |
CheckBox |
addCheckBox(java.lang.String theName)
Use a checkbox for single choice options.
|
ColorPicker |
addColorPicker(java.lang.Object theObject,
java.lang.String theName) |
ColorPicker |
addColorPicker(java.lang.String theName)
adds a simple RGBA colorpicker.
|
ColorWheel |
addColorWheel(java.lang.Object theObject,
java.lang.String theName) |
ColorWheel |
addColorWheel(java.lang.String theName) |
Println |
addConsole(Textarea theTextarea) |
ControlP5Base |
addControllersFor(processing.core.PApplet theApplet) |
ControlP5Base |
addControllersFor(java.lang.String theAddressSpace,
java.lang.Object t)
Adds controllers for a specific object using
annotations.
|
FrameRate |
addFrameRate()
returns the current framerate of the running sketch.
|
Group |
addGroup(java.lang.Object theObject,
java.lang.String theName) |
Group |
addGroup(java.lang.String theName)
A controller group can be used to group controllers
for a better organization of single controllers.
|
Knob |
addKnob(java.lang.Object theObject,
java.lang.String theName) |
Knob |
addKnob(java.lang.String theName)
Knobs can use limited and endless revolutions, custom
angles and starting points.
|
Matrix |
addMatrix(java.lang.Object theObject,
java.lang.String theName) |
Matrix |
addMatrix(java.lang.String theName)
Matrix is a 2-D matrix controller using toggle
controllers in a rows and a columns setup.
|
MultiList |
addMultiList(java.lang.Object theObject,
java.lang.String theName) |
MultiList |
addMultiList(java.lang.String theName)
Multilist is a tree like menu.
|
Numberbox |
addNumberbox(java.lang.Object theObject,
java.lang.String theName) |
Numberbox |
addNumberbox(java.lang.String theName) |
RadioButton |
addRadioButton(java.lang.Object theObject,
java.lang.String theName) |
RadioButton |
addRadioButton(java.lang.String theName)
Use radio buttons for multiple choice options.
|
Range |
addRange(java.lang.Object theObject,
java.lang.String theName) |
Range |
addRange(java.lang.String theName)
A range controller, a slider that allows control on
both ends of the slider.
|
ScrollableList |
addScrollableList(java.lang.Object theObject,
java.lang.String theName) |
ScrollableList |
addScrollableList(java.lang.String theName)
the ScrollableList replaces the DropwdownList and
ListBox, the type for a ScrollableList can be set
with setType(ControlP5.DROPDOWN | ControlP5.LIST).
|
Slider |
addSlider(java.lang.Object theObject,
java.lang.String theName) |
Slider |
addSlider(java.lang.String theName)
Adds a default slider with a default width of 100 and
height of 10.
|
Slider2D |
addSlider2D(java.lang.Object theObject,
java.lang.String theName) |
Slider2D |
addSlider2D(java.lang.String theName)
Adds a 2D slider to controlP5.
|
Tab |
addTab(java.lang.String theName) |
Textarea |
addTextarea(java.lang.String theName)
A Textarea is a label without any controller
functionality and can be used to leave notes,
headlines, etc when extending the dedicated area of
the Textrea, a scrollbar is added on the right.
|
Textfield |
addTextfield(java.lang.Object theObject,
java.lang.String theIndex) |
Textfield |
addTextfield(java.lang.String theIndex)
A Textfield allows single line text input.
|
Textlabel |
addTextlabel(java.lang.String theName) |
Toggle |
addToggle(java.lang.Object theObject,
java.lang.String theName)
Toggles a boolean field or passes a value when
triggered.
|
Toggle |
addToggle(java.lang.String theName) |
Tab |
getDefaultTab() |
char |
getKey() |
int |
getKeyCode() |
controlP5.ControllerLayout |
getLayout() |
java.lang.Object |
getObjectForController(ControllerInterface theController) |
ControllerProperties |
getProperties() |
static java.util.Set<java.lang.String> |
getPublicMethodsFor(java.lang.Class<?> theClass) |
static java.util.Set<java.lang.String> |
getPublicMethodsFor(java.lang.Class<?> theClass,
boolean theFlag) |
static java.util.Set<java.lang.String> |
getPublicMethodsFor(java.lang.Class<?> theClass,
boolean isSuperclass,
java.lang.String... thePattern) |
static java.util.Set<java.lang.String> |
getPublicMethodsFor(java.lang.Class<?> theClass,
java.lang.String... thePattern) |
ControlP5Base |
hide(java.lang.Object theObject) |
boolean |
isAltDown() |
boolean |
isControlDown() |
boolean |
isMetaDown() |
boolean |
isShiftDown() |
ControlP5Base |
listenTo(java.lang.String theFieldName,
java.lang.Object theObject) |
ControlP5 |
mapKeyFor(ControlKey theKey,
java.lang.Object... os) |
ControlP5Base |
moveTo(ControllerGroup<?> theController,
java.lang.Object theObject) |
static void |
printPublicMethodsFor(java.lang.Class<?> theClass) |
static void |
printPublicMethodsFor(java.lang.Class<?> theClass,
java.lang.String... thePattern)
prints a list of public methods of requested class
into the console.
|
ControlP5Base |
remove(java.lang.Object theObject)
for internal use only.
|
ControlP5 |
removeKeyFor(ControlKey theKey,
char... theChar) |
ControlP5 |
removeKeyFor(ControlKey theKey,
int... theChar) |
ControlP5 |
removeKeysFor(char... theChar) |
ControlP5 |
removeKeysFor(int... theChar) |
void |
removeProperty(ControllerInterface<?> theController) |
void |
setAutoAddDirection(int theDirection) |
void |
setAutoSpacing() |
void |
setAutoSpacing(float theX,
float theY) |
void |
setAutoSpacing(float theX,
float theY,
float theZ) |
ControlP5Base |
setColor(CColor theColor,
java.lang.Object theObject) |
ControlP5Base |
setPosition(int theX,
int theY,
java.lang.Object o) |
ControlP5Base |
show(java.lang.Object theObject) |
ControlP5Base |
stopListeningTo(java.lang.String theFieldName,
java.lang.Object theObject) |
addAccordion, addAccordion, addBackground, addBackground, addBang, addBang, addBang, addBang, addButton, addButton, addButton, addButton, addButton, addButtonBar, addButtonBar, addChart, addCheckBox, addCheckBox, addColorPicker, addColorPicker, addColorWheel, addColorWheel, addController, addController, addControlWindow, addControlWindow, addControlWindow, addControlWindow, addControlWindow, addDropdownList, addDropdownList, addDropdownList, addGroup, addGroup, addGroup, addGroup, addGroup, addGroup, addIcon, addIcon, addIcon, addIcon, addKnob, addKnob, addKnob, addKnob, addKnob, addKnob, addKnob, addLabel, addLabel, addListBox, addListBox, addListBox, addMatrix, addMatrix, addMultiList, addMultiList, addNumberbox, addNumberbox, addNumberbox, addNumberbox, addNumberbox, addRadio, addRadio, addRadioButton, addRadioButton, addRange, addRange, addRange, addRange, addScrollableList, addScrollableList, addScrollableList, addSlider, addSlider, addSlider, addSlider, addSlider, addSlider, addSlider, addSlider2D, addSlider2D, addSlider2D, addSlider2D, addSpacer, addSpacer, addTab, addTab, addTextarea, addTextfield, addTextfield, addTextfield, addTextlabel, addTextlabel, addTextlabel, addTextlabel, addToggle, addToggle, addToggle, addToggle, addToggle, addToggle, addToggle, addTooltip, debug, getController, getTextlabel, getTextlabel, printerr, println
public Accordion addAccordion(java.lang.Object theObject, java.lang.String theName)
public Accordion addAccordion(java.lang.String theName)
public Bang addBang(java.lang.Object theObject, java.lang.String theName)
public Bang addBang(java.lang.String theName)
public Button addButton(java.lang.Object theObject, java.lang.String theName)
public Button addButton(java.lang.String theName)
public ButtonBar addButtonBar(java.lang.Object theObject, java.lang.String theName)
public ButtonBar addButtonBar(java.lang.String theName)
public Chart addChart(java.lang.String theName)
public CheckBox addCheckBox(java.lang.Object theObject, java.lang.String theName)
public CheckBox addCheckBox(java.lang.String theName)
public ColorPicker addColorPicker(java.lang.Object theObject, java.lang.String theName)
public ColorPicker addColorPicker(java.lang.String theName)
public ColorWheel addColorWheel(java.lang.Object theObject, java.lang.String theName)
public ColorWheel addColorWheel(java.lang.String theName)
public ControlP5Base addControllersFor(processing.core.PApplet theApplet)
public ControlP5Base addControllersFor(java.lang.String theAddressSpace, java.lang.Object t)
Uses a forward slash delimited address, for example:
lets say the theAddressSpace parameter is set to "hello", and the Object (second parameter) contains an annotated field "x", addControllersFor("hello", o); will add a controller for field x with address /hello/x This address can be used with getController("/hello/x") to access the controller of that particular Object and field.
public FrameRate addFrameRate()
public Group addGroup(java.lang.Object theObject, java.lang.String theName)
public Group addGroup(java.lang.String theName)
public Knob addKnob(java.lang.Object theObject, java.lang.String theName)
public Knob addKnob(java.lang.String theName)
public Matrix addMatrix(java.lang.Object theObject, java.lang.String theName)
public Matrix addMatrix(java.lang.String theName)
public MultiList addMultiList(java.lang.Object theObject, java.lang.String theName)
public MultiList addMultiList(java.lang.String theName)
public Numberbox addNumberbox(java.lang.Object theObject, java.lang.String theName)
public Numberbox addNumberbox(java.lang.String theName)
public RadioButton addRadioButton(java.lang.Object theObject, java.lang.String theName)
public RadioButton addRadioButton(java.lang.String theName)
public Range addRange(java.lang.Object theObject, java.lang.String theName)
public Range addRange(java.lang.String theName)
public ScrollableList addScrollableList(java.lang.Object theObject, java.lang.String theName)
public ScrollableList addScrollableList(java.lang.String theName)
public Slider addSlider(java.lang.Object theObject, java.lang.String theName)
public Slider addSlider(java.lang.String theName)
public Slider2D addSlider2D(java.lang.Object theObject, java.lang.String theName)
public Slider2D addSlider2D(java.lang.String theName)
public Tab addTab(java.lang.String theName)
public Textarea addTextarea(java.lang.String theName)
public Textfield addTextfield(java.lang.Object theObject, java.lang.String theIndex)
public Textfield addTextfield(java.lang.String theIndex)
public Textlabel addTextlabel(java.lang.String theName)
public Toggle addToggle(java.lang.Object theObject, java.lang.String theName)
public Toggle addToggle(java.lang.String theName)
public Tab getDefaultTab()
public char getKey()
public int getKeyCode()
public controlP5.ControllerLayout getLayout()
public java.lang.Object getObjectForController(ControllerInterface theController)
public ControllerProperties getProperties()
public static java.util.Set<java.lang.String> getPublicMethodsFor(java.lang.Class<?> theClass)
public static java.util.Set<java.lang.String> getPublicMethodsFor(java.lang.Class<?> theClass, boolean theFlag)
public static java.util.Set<java.lang.String> getPublicMethodsFor(java.lang.Class<?> theClass, boolean isSuperclass, java.lang.String... thePattern)
public static java.util.Set<java.lang.String> getPublicMethodsFor(java.lang.Class<?> theClass, java.lang.String... thePattern)
public ControlP5Base hide(java.lang.Object theObject)
public boolean isAltDown()
public boolean isControlDown()
public boolean isMetaDown()
public boolean isShiftDown()
public ControlP5Base listenTo(java.lang.String theFieldName, java.lang.Object theObject)
public ControlP5 mapKeyFor(ControlKey theKey, java.lang.Object... os)
public ControlP5Base moveTo(ControllerGroup<?> theController, java.lang.Object theObject)
public static void printPublicMethodsFor(java.lang.Class<?> theClass)
public static void printPublicMethodsFor(java.lang.Class<?> theClass, java.lang.String... thePattern)
printed Format: returnType methodName(parameter type)
public ControlP5Base remove(java.lang.Object theObject)
theObject
- public ControlP5 removeKeyFor(ControlKey theKey, char... theChar)
public ControlP5 removeKeyFor(ControlKey theKey, int... theChar)
public ControlP5 removeKeysFor(char... theChar)
public ControlP5 removeKeysFor(int... theChar)
public void removeProperty(ControllerInterface<?> theController)
public void setAutoAddDirection(int theDirection)
public void setAutoSpacing()
public void setAutoSpacing(float theX, float theY)
public void setAutoSpacing(float theX, float theY, float theZ)
public ControlP5Base setColor(CColor theColor, java.lang.Object theObject)
public ControlP5Base setPosition(int theX, int theY, java.lang.Object o)
public ControlP5Base show(java.lang.Object theObject)
public ControlP5Base stopListeningTo(java.lang.String theFieldName, java.lang.Object theObject)
processing library controlP5 by Andreas Schlegel. (c) 2006-2015