controlP5
Class ControlP5Base

java.lang.Object
  extended by controlP5.ControlP5Base
All Implemented Interfaces:
ControlP5Constants
Direct Known Subclasses:
ControlP5

public class ControlP5Base
extends java.lang.Object
implements ControlP5Constants


Field Summary
 
Fields inherited from interface controlP5.ControlP5Constants
acceptClassList, ACTIVE, ALT, ARC, ARRAY, BACKSPACE, BOOLEAN, BOTTOM, CENTER, CONTROL, controlEventClass, CUSTOM, DECREASE, DEFAULT, DELETE, DOWN, ELLIPSE, ENTER, ESCAPE, EVENT, eventMethod, FIELD, FLOAT, HALF_PI, HIDE, HIGHLIGHT, HORIZONTAL, IMAGE, INCREASE, INTEGER, INVALID, KEYCONTROL, LEFT, LINE, LOAD, MENU, METHOD, MOVE, OVER, PI, PRESSED, PRINT, RELEASE, RESET, RIGHT, SAVE, SHIFT, SPRITE, STRING, SWITCH, SWITCH_BACK, SWITCH_FORE, TAB, TOP, TWO_PI, UP, VERBOSE, VERTICAL
 
Constructor Summary
ControlP5Base()
           
 
Method Summary
 Bang addBang(java.lang.String theName, int theX, int theY, int theWidth, int theHeight)
          add a bang to controlP5.
 Button addButton(java.lang.String theName)
           
 Button addButton(java.lang.String theName, float theValue)
           
 Button addButton(java.lang.String theName, float theValue, int theX, int theY, int theW, int theH)
          a button to controlP5.
 Chart addChart(java.lang.String theName, int theX, int theY, int theW, int theH)
           
 CheckBox addCheckBox(java.lang.String theName, int theX, int theY)
           
 ColorPicker addColorPicker(java.lang.String theName, int theX, int theY, int theW, int theH)
          add a simple RGB colorpicker.
 ControlWindow addControlWindow(java.lang.String theName)
           
 ControlWindow addControlWindow(java.lang.String theWindowName, int theWidth, int theHeight)
          create a new ControlWindow.
 ControlWindow addControlWindow(java.lang.String theWindowName, int theX, int theY, int theWidth, int theHeight)
           
 ControlWindow addControlWindow(java.lang.String theWindowName, int theX, int theY, int theWidth, int theHeight, int theFrameRate)
           
 ControlWindow addControlWindow(java.lang.String theWindowName, int theX, int theY, int theWidth, int theHeight, java.lang.String theRenderer, int theFrameRate)
          create a new ControlWindow.
 DropdownList addDropdownList(java.lang.String theName, int theX, int theY, int theW, int theH)
          adds a pulldown-menu.
 ControlGroup addGroup(java.lang.String theName, int theX, int theY)
           
 ControlGroup addGroup(java.lang.String theName, int theX, int theY, int theW)
          add a group to controlP5.
 Knob addKnob(java.lang.String theName, float theMin, float theMax, float theDefaultValue, int theX, int theY, int theDiameter)
          add a knob to controlP5.
 Knob addKnob(java.lang.String theName, float theMin, float theMax, int theX, int theY, int theDiameter)
          add a knob to your controlP5 setup.
 ListBox addListBox(java.lang.String theName, int theX, int theY, int theW, int theH)
          adds a ListBox.
 Matrix addMatrix(java.lang.String theName, int theCellX, int theCellY, int theX, int theY, int theWidth, int theHeight)
           
 MultiList addMultiList(java.lang.String theName, int theX, int theY, int theWidth, int theHeight)
           
 Numberbox addNumberbox(java.lang.String theName)
           
 Numberbox addNumberbox(java.lang.String theName, float theDefaultValue, int theX, int theY, int theWidth, int theHeight)
          add a numberbox to controlP5.
 Numberbox addNumberbox(java.lang.String theName, int theX, int theY, int theWidth, int theHeight)
          add a numberbox to controlP5.
 Radio addRadio(java.lang.String theName, int theX, int theY)
          add a radio list to controlP5.
 Radio addRadio(java.lang.String theName, int theX, int theY, int theWidth, int theHeight, int theLineSpacing)
           
 RadioButton addRadioButton(java.lang.String theName, int theX, int theY)
           
 Range addRange(java.lang.String theName, float theMin, float theMax, float theDefaultMinValue, float theDefaultMaxValue, int theX, int theY, int theW, int theH)
           
 Range addRange(java.lang.String theName, float theMin, float theMax, int theX, int theY, int theWidth, int theHeight)
          add a slider to controlP5.
 ScrollList addScrollList(java.lang.String theName, int theX, int theY, int theW, int theH)
          add a scroll list to controlP5.
 Slider addSlider(java.lang.String theName, float theMin, float theMax)
           
 Slider addSlider(java.lang.String theName, float theMin, float theMax, float theDefaultValue, int theX, int theY, int theW, int theH)
          add a slider to controlP5.
 Slider addSlider(java.lang.String theName, float theMin, float theMax, int theX, int theY, int theWidth, int theHeight)
          add a slider to controlP5.
 Slider2D addSlider2D(java.lang.String theName, float theMinX, float theMaxX, float theMinY, float theMaxY, float theDefaultValueX, float theDefaultValueY, int theX, int theY, int theW, int theH)
           
 Slider2D addSlider2D(java.lang.String theName, int theX, int theY, int theW, int theH)
          add a 2D slider to controlP5.
 Tab addTab(ControlWindow theWindow, java.lang.String theName)
           
 Tab addTab(processing.core.PApplet theWindow, java.lang.String theName)
           
 Tab addTab(java.lang.String theName)
          add a tab to controlP5.
 Textarea addTextarea(java.lang.String theName, java.lang.String theText, int theX, int theY, int theW, int theH)
          add a textlabel to controlP5.
 Textfield addTextfield(java.lang.String theName, int theX, int theY, int theW, int theH)
          add a textfield to controlP5.
 Textlabel addTextlabel(java.lang.String theName, java.lang.String theText, int theX, int theY)
           
 Toggle addToggle(java.lang.String theName)
           
 Toggle addToggle(java.lang.String theName, boolean theDefaultValue, float theX, float theY, int theWidth, int theHeight)
          add a toggle to controlP5.
 Toggle addToggle(java.lang.String theName, float theX, float theY, int theWidth, int theHeight)
          add a toggle to controlP5.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlP5Base

public ControlP5Base()
Method Detail

addTab

public Tab addTab(java.lang.String theName)
add a tab to controlP5. by default the tab will be added to the main window.

Parameters:
theName - String
Returns:
Tasaveb

addTab

public Tab addTab(processing.core.PApplet theWindow,
                  java.lang.String theName)

addTab

public Tab addTab(ControlWindow theWindow,
                  java.lang.String theName)

addButton

public Button addButton(java.lang.String theName,
                        float theValue,
                        int theX,
                        int theY,
                        int theW,
                        int theH)
a button to controlP5. by default it will be added to the default tab of the main window.

Parameters:
theName - String
theValue - float
theX - int
theY - int
theW - int
theH - int
Returns:
Button

addBang

public Bang addBang(java.lang.String theName,
                    int theX,
                    int theY,
                    int theWidth,
                    int theHeight)
add a bang to controlP5. by default it will be added to the default tab of the main window.

Parameters:
theName - String
theX - int
theY - int
theWidth - int
theHeight - int
Returns:
Bang

addToggle

public Toggle addToggle(java.lang.String theName,
                        boolean theDefaultValue,
                        float theX,
                        float theY,
                        int theWidth,
                        int theHeight)
add a toggle to controlP5. by default it will be added to the default tab of the main window.

Parameters:
theName - String
theDefaultValue - boolean
theX - float
theY - float
theWidth - int
theHeight - int
Returns:
Toggle

addToggle

public Toggle addToggle(java.lang.String theName,
                        float theX,
                        float theY,
                        int theWidth,
                        int theHeight)
add a toggle to controlP5. by default it will be added to the default tab of the main window.

Parameters:
theName - String
theDefaultValue - boolean
theX - float
theY - float
theWidth - int
theHeight - int
Returns:
Toggle Toggle

addMatrix

public Matrix addMatrix(java.lang.String theName,
                        int theCellX,
                        int theCellY,
                        int theX,
                        int theY,
                        int theWidth,
                        int theHeight)

addSlider2D

public Slider2D addSlider2D(java.lang.String theName,
                            int theX,
                            int theY,
                            int theW,
                            int theH)
add a 2D slider to controlP5.

Parameters:
theName -
theX -
theY -
theW -
theH -
Returns:

addSlider2D

public Slider2D addSlider2D(java.lang.String theName,
                            float theMinX,
                            float theMaxX,
                            float theMinY,
                            float theMaxY,
                            float theDefaultValueX,
                            float theDefaultValueY,
                            int theX,
                            int theY,
                            int theW,
                            int theH)

addSlider

public Slider addSlider(java.lang.String theName,
                        float theMin,
                        float theMax,
                        float theDefaultValue,
                        int theX,
                        int theY,
                        int theW,
                        int theH)
add a slider to controlP5. by default it will be added to the default tab of the main window.

Parameters:
theName - String
theMin - float
theMax - float
theDefaultValue - float
theX - int
theY - int
theW - int
theH - int
Returns:
Slider

addSlider

public Slider addSlider(java.lang.String theName,
                        float theMin,
                        float theMax,
                        int theX,
                        int theY,
                        int theWidth,
                        int theHeight)
add a slider to controlP5. by default a slider will be added to the default tab of the main window.

Parameters:
theName - String
theMin - float
theMax - float
theX - int
theY - int
theWidth - int
theHeight - int
Returns:
Slider

addRange

public Range addRange(java.lang.String theName,
                      float theMin,
                      float theMax,
                      float theDefaultMinValue,
                      float theDefaultMaxValue,
                      int theX,
                      int theY,
                      int theW,
                      int theH)

addRange

public Range addRange(java.lang.String theName,
                      float theMin,
                      float theMax,
                      int theX,
                      int theY,
                      int theWidth,
                      int theHeight)
add a slider to controlP5. by default it will be added to the default tab of the main window.

Parameters:
theName - String
theMin - float
theMax - float
theX - int
theY - int
theWidth - int
theHeight - int
Returns:
Slider

addNumberbox

public Numberbox addNumberbox(java.lang.String theName,
                              int theX,
                              int theY,
                              int theWidth,
                              int theHeight)
add a numberbox to controlP5. by default it will be added to the default tab of the main window.

Parameters:
theName - String
theX - float
theY - float
theWidth - int
theHeight - int
Returns:
Numberbox Numberbox

addNumberbox

public Numberbox addNumberbox(java.lang.String theName,
                              float theDefaultValue,
                              int theX,
                              int theY,
                              int theWidth,
                              int theHeight)
add a numberbox to controlP5. by default it will be added to the default tab of the main window.

Parameters:
theName - String
theDefaultValue - int
theX - float
theY - float
theWidth - int
theHeight - int
Returns:
Numberbox Numberbox

addKnob

public Knob addKnob(java.lang.String theName,
                    float theMin,
                    float theMax,
                    int theX,
                    int theY,
                    int theDiameter)
add a knob to your controlP5 setup.

Parameters:
theName - String
theMin - float
theMax - float
theX - float
theY - float
theDiameter - int
Returns:
Knob Knob

addMultiList

public MultiList addMultiList(java.lang.String theName,
                              int theX,
                              int theY,
                              int theWidth,
                              int theHeight)

addKnob

public Knob addKnob(java.lang.String theName,
                    float theMin,
                    float theMax,
                    float theDefaultValue,
                    int theX,
                    int theY,
                    int theDiameter)
add a knob to controlP5. by default it will be added to the default tab of the main window.

Parameters:
theName - String
theMin - float
theMax - float
theDefaultValue - float
theX - float
theY - float
theDiameter - int
Returns:
Knob Knob

addTextarea

public Textarea addTextarea(java.lang.String theName,
                            java.lang.String theText,
                            int theX,
                            int theY,
                            int theW,
                            int theH)
add a textlabel to controlP5. by default it will be added to the default tab of the main window.

Parameters:
theName - String
theText - String
theX - int
theY - int
theW - int
theH - int
Returns:
Textlabel

addTextlabel

public Textlabel addTextlabel(java.lang.String theName,
                              java.lang.String theText,
                              int theX,
                              int theY)

addTextfield

public Textfield addTextfield(java.lang.String theName,
                              int theX,
                              int theY,
                              int theW,
                              int theH)
add a textfield to controlP5. by default it will be added to the default tab of the main window.

Parameters:
theName - String
theX - int
theY - int
theW - int
theH - int
Returns:
Textfield

addRadio

public Radio addRadio(java.lang.String theName,
                      int theX,
                      int theY)
add a radio list to controlP5. by default it will be added to the default tab of the main window.

Parameters:
theName - String
theX - int
theY - int
Returns:
Radio

addRadio

public Radio addRadio(java.lang.String theName,
                      int theX,
                      int theY,
                      int theWidth,
                      int theHeight,
                      int theLineSpacing)

addRadioButton

public RadioButton addRadioButton(java.lang.String theName,
                                  int theX,
                                  int theY)

addCheckBox

public CheckBox addCheckBox(java.lang.String theName,
                            int theX,
                            int theY)

addScrollList

public ScrollList addScrollList(java.lang.String theName,
                                int theX,
                                int theY,
                                int theW,
                                int theH)
add a scroll list to controlP5. by default it will be added to the default tab of the main window.

Parameters:
theName - String
theX - int
theY - int
theW - int
theH - int
Returns:
ScrollList

addListBox

public ListBox addListBox(java.lang.String theName,
                          int theX,
                          int theY,
                          int theW,
                          int theH)
adds a ListBox.

Parameters:
theName -
theX -
theY -
theW -
theH -
Returns:
ListBox

addDropdownList

public DropdownList addDropdownList(java.lang.String theName,
                                    int theX,
                                    int theY,
                                    int theW,
                                    int theH)
adds a pulldown-menu.

Parameters:
theName -
theX -
theY -
theW -
theH -
Returns:
PulldownMenu

addColorPicker

public ColorPicker addColorPicker(java.lang.String theName,
                                  int theX,
                                  int theY,
                                  int theW,
                                  int theH)
add a simple RGB colorpicker.

Parameters:
theName -
theX -
theY -
theW -
theH -
Returns:

addChart

public Chart addChart(java.lang.String theName,
                      int theX,
                      int theY,
                      int theW,
                      int theH)

addGroup

public ControlGroup addGroup(java.lang.String theName,
                             int theX,
                             int theY,
                             int theW)
add a group to controlP5. by default it will be added to the default tab of the main window.

Parameters:
theName - String
theX - int
theY - int
Returns:
ControlGroup

addGroup

public ControlGroup addGroup(java.lang.String theName,
                             int theX,
                             int theY)

addControlWindow

public ControlWindow addControlWindow(java.lang.String theWindowName,
                                      int theWidth,
                                      int theHeight)
create a new ControlWindow.

Parameters:
theWindowName - String
theWidth - int
theHeight - int
Returns:
ControlWindow ControlWindow

addControlWindow

public ControlWindow addControlWindow(java.lang.String theWindowName,
                                      int theX,
                                      int theY,
                                      int theWidth,
                                      int theHeight)

addControlWindow

public ControlWindow addControlWindow(java.lang.String theWindowName,
                                      int theX,
                                      int theY,
                                      int theWidth,
                                      int theHeight,
                                      int theFrameRate)

addControlWindow

public ControlWindow addControlWindow(java.lang.String theWindowName,
                                      int theX,
                                      int theY,
                                      int theWidth,
                                      int theHeight,
                                      java.lang.String theRenderer,
                                      int theFrameRate)
create a new ControlWindow.

Parameters:
theWindowName - String
theX - int
theY - int
theWidth - int
theHeight - int
Returns:
ControlWindow ControlWindow

addSlider

public Slider addSlider(java.lang.String theName,
                        float theMin,
                        float theMax)

addButton

public Button addButton(java.lang.String theName)

addButton

public Button addButton(java.lang.String theName,
                        float theValue)

addToggle

public Toggle addToggle(java.lang.String theName)

addNumberbox

public Numberbox addNumberbox(java.lang.String theName)

addControlWindow

public ControlWindow addControlWindow(java.lang.String theName)


processing library controlP5 by Andreas Schlegel. (c) 2010