From b4ac76712bc4382a097768c38a61a20495077e56 Mon Sep 17 00:00:00 2001 From: sojamo Date: Fri, 15 Aug 2014 11:13:52 +0800 Subject: [PATCH] ignoring and removing folder reference --- reference/allclasses-frame.html | 85 - reference/allclasses-noframe.html | 85 - reference/constant-values.html | 1189 ---- reference/controlP5/Accordion.html | 994 ---- reference/controlP5/Bang.html | 817 --- reference/controlP5/BitFont.html | 378 -- reference/controlP5/BoundingBox.html | 337 -- reference/controlP5/Button.html | 1026 ---- reference/controlP5/CColor.html | 486 -- reference/controlP5/CDrawable.html | 206 - reference/controlP5/CP.html | 481 -- reference/controlP5/CallbackEvent.html | 438 -- reference/controlP5/CallbackListener.html | 402 -- reference/controlP5/Canvas.html | 526 -- reference/controlP5/Chart.ChartViewArea.html | 272 - reference/controlP5/Chart.ChartViewBar.html | 272 - .../controlP5/Chart.ChartViewBarCentered.html | 272 - reference/controlP5/Chart.ChartViewLine.html | 272 - reference/controlP5/Chart.ChartViewPie.html | 272 - reference/controlP5/Chart.html | 1529 ----- reference/controlP5/ChartData.html | 331 -- reference/controlP5/ChartDataSet.html | 378 -- reference/controlP5/CheckBox.html | 1321 ----- reference/controlP5/ColorPicker.html | 764 --- reference/controlP5/ColorWheel.html | 688 --- reference/controlP5/ControlBehavior.html | 501 -- reference/controlP5/ControlBroadcaster.html | 452 -- reference/controlP5/ControlElement.html | 423 -- reference/controlP5/ControlEvent.html | 749 --- reference/controlP5/ControlFont.html | 590 -- reference/controlP5/ControlGroup.html | 997 ---- reference/controlP5/ControlKey.html | 201 - reference/controlP5/ControlListener.html | 269 - reference/controlP5/ControlP5.html | 2326 -------- reference/controlP5/ControlP5Base.html | 1502 ----- reference/controlP5/ControlP5Constants.html | 1975 ------- reference/controlP5/ControlP5Legacy.html | 2411 -------- reference/controlP5/ControlTimer.html | 446 -- .../controlP5/ControlWindow.Pointer.html | 430 -- reference/controlP5/ControlWindow.html | 1286 ---- reference/controlP5/Controller.html | 3089 ---------- reference/controlP5/ControllerGroup.html | 2422 -------- reference/controlP5/ControllerInterface.html | 1043 ---- reference/controlP5/ControllerList.html | 330 -- reference/controlP5/ControllerPlug.html | 401 -- reference/controlP5/ControllerProperties.html | 1040 ---- reference/controlP5/ControllerProperty.html | 456 -- reference/controlP5/ControllerStyle.html | 784 --- reference/controlP5/ControllerView.html | 218 - reference/controlP5/DropdownList.html | 1130 ---- reference/controlP5/FrameRate.html | 301 - reference/controlP5/Group.html | 464 -- reference/controlP5/Knob.html | 1403 ----- reference/controlP5/Label.html | 1211 ---- reference/controlP5/ListBox.html | 1353 ----- reference/controlP5/ListBoxItem.html | 455 -- reference/controlP5/Matrix.html | 1228 ---- reference/controlP5/MultiList.html | 921 --- reference/controlP5/MultiListButton.html | 614 -- reference/controlP5/Numberbox.html | 1057 ---- reference/controlP5/Pointer.html | 305 - reference/controlP5/Println.html | 290 - reference/controlP5/Radio.html | 286 - reference/controlP5/RadioButton.html | 1370 ----- reference/controlP5/Range.html | 1370 ----- .../ScrollableList.ScrollableListView.html | 272 - reference/controlP5/ScrollableList.html | 842 --- reference/controlP5/Slider.html | 1453 ----- reference/controlP5/Slider2D.html | 1058 ---- reference/controlP5/Tab.html | 833 --- reference/controlP5/Textarea.html | 1229 ---- .../controlP5/Textfield.InputFilter.html | 344 -- reference/controlP5/Textfield.html | 1114 ---- reference/controlP5/Textlabel.html | 948 --- reference/controlP5/TickMark.html | 315 - reference/controlP5/Toggle.html | 970 ---- reference/controlP5/Tooltip.html | 684 --- reference/controlP5/package-frame.html | 95 - reference/controlP5/package-summary.html | 567 -- reference/controlP5/package-tree.html | 249 - reference/help-doc.html | 203 - reference/index-all.html | 5165 ----------------- reference/index.html | 64 - reference/overview-tree.html | 253 - reference/package-list | 1 - reference/resources/background.gif | Bin 2313 -> 0 bytes reference/resources/tab.gif | Bin 291 -> 0 bytes reference/resources/titlebar.gif | Bin 10701 -> 0 bytes reference/resources/titlebar_end.gif | Bin 849 -> 0 bytes reference/serialized-form.html | 330 -- reference/stylesheet.css | 561 -- 91 files changed, 69470 deletions(-) delete mode 100644 reference/allclasses-frame.html delete mode 100644 reference/allclasses-noframe.html delete mode 100644 reference/constant-values.html delete mode 100644 reference/controlP5/Accordion.html delete mode 100644 reference/controlP5/Bang.html delete mode 100644 reference/controlP5/BitFont.html delete mode 100644 reference/controlP5/BoundingBox.html delete mode 100644 reference/controlP5/Button.html delete mode 100644 reference/controlP5/CColor.html delete mode 100644 reference/controlP5/CDrawable.html delete mode 100644 reference/controlP5/CP.html delete mode 100644 reference/controlP5/CallbackEvent.html delete mode 100644 reference/controlP5/CallbackListener.html delete mode 100644 reference/controlP5/Canvas.html delete mode 100644 reference/controlP5/Chart.ChartViewArea.html delete mode 100644 reference/controlP5/Chart.ChartViewBar.html delete mode 100644 reference/controlP5/Chart.ChartViewBarCentered.html delete mode 100644 reference/controlP5/Chart.ChartViewLine.html delete mode 100644 reference/controlP5/Chart.ChartViewPie.html delete mode 100644 reference/controlP5/Chart.html delete mode 100644 reference/controlP5/ChartData.html delete mode 100644 reference/controlP5/ChartDataSet.html delete mode 100644 reference/controlP5/CheckBox.html delete mode 100644 reference/controlP5/ColorPicker.html delete mode 100644 reference/controlP5/ColorWheel.html delete mode 100644 reference/controlP5/ControlBehavior.html delete mode 100644 reference/controlP5/ControlBroadcaster.html delete mode 100644 reference/controlP5/ControlElement.html delete mode 100644 reference/controlP5/ControlEvent.html delete mode 100644 reference/controlP5/ControlFont.html delete mode 100644 reference/controlP5/ControlGroup.html delete mode 100644 reference/controlP5/ControlKey.html delete mode 100644 reference/controlP5/ControlListener.html delete mode 100644 reference/controlP5/ControlP5.html delete mode 100644 reference/controlP5/ControlP5Base.html delete mode 100644 reference/controlP5/ControlP5Constants.html delete mode 100644 reference/controlP5/ControlP5Legacy.html delete mode 100644 reference/controlP5/ControlTimer.html delete mode 100644 reference/controlP5/ControlWindow.Pointer.html delete mode 100644 reference/controlP5/ControlWindow.html delete mode 100644 reference/controlP5/Controller.html delete mode 100644 reference/controlP5/ControllerGroup.html delete mode 100644 reference/controlP5/ControllerInterface.html delete mode 100644 reference/controlP5/ControllerList.html delete mode 100644 reference/controlP5/ControllerPlug.html delete mode 100644 reference/controlP5/ControllerProperties.html delete mode 100644 reference/controlP5/ControllerProperty.html delete mode 100644 reference/controlP5/ControllerStyle.html delete mode 100644 reference/controlP5/ControllerView.html delete mode 100644 reference/controlP5/DropdownList.html delete mode 100644 reference/controlP5/FrameRate.html delete mode 100644 reference/controlP5/Group.html delete mode 100644 reference/controlP5/Knob.html delete mode 100644 reference/controlP5/Label.html delete mode 100644 reference/controlP5/ListBox.html delete mode 100644 reference/controlP5/ListBoxItem.html delete mode 100644 reference/controlP5/Matrix.html delete mode 100644 reference/controlP5/MultiList.html delete mode 100644 reference/controlP5/MultiListButton.html delete mode 100644 reference/controlP5/Numberbox.html delete mode 100644 reference/controlP5/Pointer.html delete mode 100644 reference/controlP5/Println.html delete mode 100644 reference/controlP5/Radio.html delete mode 100644 reference/controlP5/RadioButton.html delete mode 100644 reference/controlP5/Range.html delete mode 100644 reference/controlP5/ScrollableList.ScrollableListView.html delete mode 100644 reference/controlP5/ScrollableList.html delete mode 100644 reference/controlP5/Slider.html delete mode 100644 reference/controlP5/Slider2D.html delete mode 100644 reference/controlP5/Tab.html delete mode 100644 reference/controlP5/Textarea.html delete mode 100644 reference/controlP5/Textfield.InputFilter.html delete mode 100644 reference/controlP5/Textfield.html delete mode 100644 reference/controlP5/Textlabel.html delete mode 100644 reference/controlP5/TickMark.html delete mode 100644 reference/controlP5/Toggle.html delete mode 100644 reference/controlP5/Tooltip.html delete mode 100644 reference/controlP5/package-frame.html delete mode 100644 reference/controlP5/package-summary.html delete mode 100644 reference/controlP5/package-tree.html delete mode 100644 reference/help-doc.html delete mode 100644 reference/index-all.html delete mode 100644 reference/index.html delete mode 100644 reference/overview-tree.html delete mode 100644 reference/package-list delete mode 100644 reference/resources/background.gif delete mode 100644 reference/resources/tab.gif delete mode 100644 reference/resources/titlebar.gif delete mode 100644 reference/resources/titlebar_end.gif delete mode 100644 reference/serialized-form.html delete mode 100644 reference/stylesheet.css diff --git a/reference/allclasses-frame.html b/reference/allclasses-frame.html deleted file mode 100644 index e479b91..0000000 --- a/reference/allclasses-frame.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - - -All Classes (Javadocs: controlP5) - - - - -

All Classes

-
- -
- - diff --git a/reference/allclasses-noframe.html b/reference/allclasses-noframe.html deleted file mode 100644 index b680a62..0000000 --- a/reference/allclasses-noframe.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - - -All Classes (Javadocs: controlP5) - - - - -

All Classes

-
- -
- - diff --git a/reference/constant-values.html b/reference/constant-values.html deleted file mode 100644 index ffe6217..0000000 --- a/reference/constant-values.html +++ /dev/null @@ -1,1189 +0,0 @@ - - - - - -Constant Field Values (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - -
-

Constant Field Values

-

Contents

- -
-
- - -

controlP5.*

- -
- -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Accordion.html b/reference/controlP5/Accordion.html deleted file mode 100644 index 1561add..0000000 --- a/reference/controlP5/Accordion.html +++ /dev/null @@ -1,994 +0,0 @@ - - - - - -Accordion (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Accordion

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    ControllerInterface<Accordion>, ControlListener, ControlP5Constants
    -
    -
    -
    -
    public class Accordion
    -extends ControlGroup<Accordion>
    -

    - The Accordion is a list of ControlGroups which can be expanded and collapsed. Only one item can - be open at a time. -

    -
    See Also:
    ControllerGroup, -ControlGroup
    -
    +Example
    /**
    - * ControlP5 Accordion
    - * arrange controller groups in an accordion like style.
    - *
    - * find a list of public methods available for the Accordion Controller 
    - * at the bottom of this sketch. In the example below 3 groups with controllers
    - * are created and added to an accordion controller. Furthermore several key 
    - * combinations are mapped to control individual settings of the accordion.
    - * An accordion comes in 2 modes, Accordion.SINGLE and Accordion.MULTI where the 
    - * latter allows to open multiple groups of an accordion and the SINGLE mode only
    - * allows 1 group to be opened at a time.  
    - *
    - * by Andreas Schlegel, 2012
    - * www.sojamo.de/libraries/controlp5
    - *
    - */
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -Accordion accordion;
    -
    -color c = color(0, 160, 100);
    -
    -void setup() {
    -  size(400, 600);
    -  noStroke();
    -  smooth();
    -  gui();
    -}
    -
    -void gui() {
    -  
    -  cp5 = new ControlP5(this);
    -  
    -  // group number 1, contains 2 bangs
    -  Group g1 = cp5.addGroup("myGroup1")
    -                .setBackgroundColor(color(0, 64))
    -                .setBackgroundHeight(150)
    -                ;
    -  
    -  cp5.addBang("bang")
    -     .setPosition(10,20)
    -     .setSize(100,100)
    -     .moveTo(g1)
    -     .plugTo(this,"shuffle");
    -     ;
    -     
    -  // group number 2, contains a radiobutton
    -  Group g2 = cp5.addGroup("myGroup2")
    -                .setBackgroundColor(color(0, 64))
    -                .setBackgroundHeight(150)
    -                ;
    -  
    -  cp5.addRadioButton("radio")
    -     .setPosition(10,20)
    -     .setItemWidth(20)
    -     .setItemHeight(20)
    -     .addItem("black", 0)
    -     .addItem("red", 1)
    -     .addItem("green", 2)
    -     .addItem("blue", 3)
    -     .addItem("grey", 4)
    -     .setColorLabel(color(255))
    -     .activate(2)
    -     .moveTo(g2)
    -     ;
    -
    -  // group number 3, contains a bang and a slider
    -  Group g3 = cp5.addGroup("myGroup3")
    -                .setBackgroundColor(color(0, 64))
    -                .setBackgroundHeight(150)
    -                ;
    -  
    -  cp5.addBang("shuffle")
    -     .setPosition(10,20)
    -     .setSize(40,50)
    -     .moveTo(g3)
    -     ;
    -     
    -  cp5.addSlider("hello")
    -     .setPosition(60,20)
    -     .setSize(100,20)
    -     .setRange(100,500)
    -     .setValue(100)
    -     .moveTo(g3)
    -     ;
    -     
    -  cp5.addSlider("world")
    -     .setPosition(60,50)
    -     .setSize(100,20)
    -     .setRange(100,500)
    -     .setValue(200)
    -     .moveTo(g3)
    -     ;
    -
    -  // create a new accordion
    -  // add g1, g2, and g3 to the accordion.
    -  accordion = cp5.addAccordion("acc")
    -                 .setPosition(40,40)
    -                 .setWidth(200)
    -                 .addItem(g1)
    -                 .addItem(g2)
    -                 .addItem(g3)
    -                 ;
    -                 
    -  cp5.mapKeyFor(new ControlKey() {public void keyEvent() {accordion.open(0,1,2);}}, 'o');
    -  cp5.mapKeyFor(new ControlKey() {public void keyEvent() {accordion.close(0,1,2);}}, 'c');
    -  cp5.mapKeyFor(new ControlKey() {public void keyEvent() {accordion.setWidth(300);}}, '1');
    -  cp5.mapKeyFor(new ControlKey() {public void keyEvent() {accordion.setPosition(0,0);accordion.setItemHeight(190);}}, '2'); 
    -  cp5.mapKeyFor(new ControlKey() {public void keyEvent() {accordion.setCollapseMode(ControlP5.ALL);}}, '3');
    -  cp5.mapKeyFor(new ControlKey() {public void keyEvent() {accordion.setCollapseMode(ControlP5.SINGLE);}}, '4');
    -  cp5.mapKeyFor(new ControlKey() {public void keyEvent() {cp5.remove("myGroup1");}}, '0');
    -  
    -  accordion.open(0,1,2);
    -  
    -  // use Accordion.MULTI to allow multiple group 
    -  // to be open at a time.
    -  accordion.setCollapseMode(Accordion.MULTI);
    -  
    -  // when in SINGLE mode, only 1 accordion  
    -  // group can be open at a time.  
    -  // accordion.setCollapseMode(Accordion.SINGLE);
    -}
    -  
    -
    -void radio(int theC) {
    -  switch(theC) {
    -    case(0):c=color(0,200);break;
    -    case(1):c=color(255,0,0,200);break;
    -    case(2):c=color(0, 200, 140,200);break;
    -    case(3):c=color(0, 128, 255,200);break;
    -    case(4):c=color(50,128);break;
    -  }
    -} 
    -
    -
    -void shuffle() {
    -  c = color(random(255),random(255),random(255),random(128,255));
    -}
    -
    -
    -void draw() {
    -  background(220);
    -  
    -  fill(c);
    -  
    -  float s1 = cp5.getController("hello").getValue();
    -  ellipse(200,400,s1,s1);
    -  
    -  float s2 = cp5.getController("world").getValue();
    -  ellipse(300,100,s2,s2);
    -}
    -
    -
    -
    -
    -
    -/*
    -a list of all methods available for the Accordion Controller
    -use ControlP5.printPublicMethodsFor(Accordion.class);
    -to print the following list into the console.
    -
    -You can find further details about class Accordion in the javadoc.
    -
    -Format:
    -ClassName : returnType methodName(parameter type)
    -
    -
    -controlP5.Accordion : Accordion addItem(ControlGroup) 
    -controlP5.Accordion : Accordion remove(ControllerInterface) 
    -controlP5.Accordion : Accordion removeItem(ControlGroup) 
    -controlP5.Accordion : Accordion setItemHeight(int) 
    -controlP5.Accordion : Accordion setMinItemHeight(int) 
    -controlP5.Accordion : Accordion setWidth(int) 
    -controlP5.Accordion : Accordion updateItems() 
    -controlP5.Accordion : int getItemHeight() 
    -controlP5.Accordion : int getMinItemHeight() 
    -controlP5.ControlGroup : Accordion activateEvent(boolean) 
    -controlP5.ControlGroup : Accordion addListener(ControlListener) 
    -controlP5.ControlGroup : Accordion hideBar() 
    -controlP5.ControlGroup : Accordion removeListener(ControlListener) 
    -controlP5.ControlGroup : Accordion setBackgroundColor(int) 
    -controlP5.ControlGroup : Accordion setBackgroundHeight(int) 
    -controlP5.ControlGroup : Accordion setBarHeight(int) 
    -controlP5.ControlGroup : Accordion showBar() 
    -controlP5.ControlGroup : Accordion updateInternalEvents(PApplet) 
    -controlP5.ControlGroup : String getInfo() 
    -controlP5.ControlGroup : String toString() 
    -controlP5.ControlGroup : boolean isBarVisible() 
    -controlP5.ControlGroup : int getBackgroundHeight() 
    -controlP5.ControlGroup : int getBarHeight() 
    -controlP5.ControlGroup : int listenerSize() 
    -controlP5.ControllerGroup : Accordion add(ControllerInterface) 
    -controlP5.ControllerGroup : Accordion bringToFront() 
    -controlP5.ControllerGroup : Accordion bringToFront(ControllerInterface) 
    -controlP5.ControllerGroup : Accordion close() 
    -controlP5.ControllerGroup : Accordion disableCollapse() 
    -controlP5.ControllerGroup : Accordion enableCollapse() 
    -controlP5.ControllerGroup : Accordion hide() 
    -controlP5.ControllerGroup : Accordion moveTo(ControlWindow) 
    -controlP5.ControllerGroup : Accordion moveTo(PApplet) 
    -controlP5.ControllerGroup : Accordion open() 
    -controlP5.ControllerGroup : Accordion registerProperty(String) 
    -controlP5.ControllerGroup : Accordion registerProperty(String, String) 
    -controlP5.ControllerGroup : Accordion remove(CDrawable) 
    -controlP5.ControllerGroup : Accordion remove(ControllerInterface) 
    -controlP5.ControllerGroup : Accordion removeCanvas(ControlWindowCanvas) 
    -controlP5.ControllerGroup : Accordion removeProperty(String) 
    -controlP5.ControllerGroup : Accordion removeProperty(String, String) 
    -controlP5.ControllerGroup : Accordion setAddress(String) 
    -controlP5.ControllerGroup : Accordion setArrayValue(float[]) 
    -controlP5.ControllerGroup : Accordion setColor(CColor) 
    -controlP5.ControllerGroup : Accordion setColorActive(int) 
    -controlP5.ControllerGroup : Accordion setColorBackground(int) 
    -controlP5.ControllerGroup : Accordion setColorForeground(int) 
    -controlP5.ControllerGroup : Accordion setColorLabel(int) 
    -controlP5.ControllerGroup : Accordion setColorValue(int) 
    -controlP5.ControllerGroup : Accordion setHeight(int) 
    -controlP5.ControllerGroup : Accordion setId(int) 
    -controlP5.ControllerGroup : Accordion setLabel(String) 
    -controlP5.ControllerGroup : Accordion setMouseOver(boolean) 
    -controlP5.ControllerGroup : Accordion setMoveable(boolean) 
    -controlP5.ControllerGroup : Accordion setOpen(boolean) 
    -controlP5.ControllerGroup : Accordion setPosition(PVector) 
    -controlP5.ControllerGroup : Accordion setPosition(float, float) 
    -controlP5.ControllerGroup : Accordion setStringValue(String) 
    -controlP5.ControllerGroup : Accordion setUpdate(boolean) 
    -controlP5.ControllerGroup : Accordion setValue(float) 
    -controlP5.ControllerGroup : Accordion setVisible(boolean) 
    -controlP5.ControllerGroup : Accordion setWidth(int) 
    -controlP5.ControllerGroup : Accordion show() 
    -controlP5.ControllerGroup : Accordion update() 
    -controlP5.ControllerGroup : Accordion updateAbsolutePosition() 
    -controlP5.ControllerGroup : CColor getColor() 
    -controlP5.ControllerGroup : ControlWindow getWindow() 
    -controlP5.ControllerGroup : ControlWindowCanvas addCanvas(ControlWindowCanvas) 
    -controlP5.ControllerGroup : Controller getController(String) 
    -controlP5.ControllerGroup : ControllerProperty getProperty(String) 
    -controlP5.ControllerGroup : ControllerProperty getProperty(String, String) 
    -controlP5.ControllerGroup : Label getCaptionLabel() 
    -controlP5.ControllerGroup : Label getValueLabel() 
    -controlP5.ControllerGroup : PVector getPosition() 
    -controlP5.ControllerGroup : String getAddress() 
    -controlP5.ControllerGroup : String getInfo() 
    -controlP5.ControllerGroup : String getName() 
    -controlP5.ControllerGroup : String getStringValue() 
    -controlP5.ControllerGroup : String toString() 
    -controlP5.ControllerGroup : Tab getTab() 
    -controlP5.ControllerGroup : boolean isCollapse() 
    -controlP5.ControllerGroup : boolean isMouseOver() 
    -controlP5.ControllerGroup : boolean isMoveable() 
    -controlP5.ControllerGroup : boolean isOpen() 
    -controlP5.ControllerGroup : boolean isUpdate() 
    -controlP5.ControllerGroup : boolean isVisible() 
    -controlP5.ControllerGroup : boolean setMousePressed(boolean) 
    -controlP5.ControllerGroup : float getValue() 
    -controlP5.ControllerGroup : float[] getArrayValue() 
    -controlP5.ControllerGroup : int getHeight() 
    -controlP5.ControllerGroup : int getId() 
    -controlP5.ControllerGroup : int getWidth() 
    -controlP5.ControllerGroup : void remove() 
    -java.lang.Object : String toString() 
    -java.lang.Object : boolean equals(Object) 
    -
    -
    -*/
    -
    -
    -
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Accordion

        -
        public Accordion(ControlP5 theControlP5,
        -         java.lang.String theName)
        -
        Convenience constructor to extend Accordion.
        -
        Parameters:
        theControlP5 -
        theName -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        addItem

        -
        public Accordion addItem(ControlGroup<?> theGroup)
        -
        Adds items of type ControlGroup to the Accordion, only ControlGroups can be added.
        -
        Parameters:
        theGroup -
        -
        Returns:
        Accordion
        -
      • -
      - - - - - - - -
        -
      • -

        close

        -
        public Accordion close(int... theId)
        -
      • -
      - - - - - - - -
        -
      • -

        getItemHeight

        -
        public int getItemHeight()
        -
      • -
      - - - -
        -
      • -

        getMinItemHeight

        -
        public int getMinItemHeight()
        -
      • -
      - - - - - - - -
        -
      • -

        open

        -
        public Accordion open(int... theId)
        -
      • -
      - - - - - - - -
        -
      • -

        removeItem

        -
        public Accordion removeItem(ControlGroup<?> theGroup)
        -
        Removes a ControlGroup from the accordion and puts it back into the default tab of controlP5. - if you dont have access to a ControlGroup via a variable, use - controlP5.group("theNameOfTheGroup") which will return a
        -
        Returns:
        Accordion
        -
      • -
      - - - -
        -
      • -

        setCollapseMode

        -
        public Accordion setCollapseMode(int theMode)
        -
      • -
      - - - -
        -
      • -

        setItemHeight

        -
        public Accordion setItemHeight(int theHeight)
        -
      • -
      - - - -
        -
      • -

        setMinItemHeight

        -
        public Accordion setMinItemHeight(int theHeight)
        -
        Sets the minimum height of a collapsed item, default value is 100.
        -
        Parameters:
        theHeight -
        -
        Returns:
        Accordion
        -
      • -
      - - - - - - - -
        -
      • -

        updateItems

        -
        public Accordion updateItems()
        -
        UpdateItems is called when changes such as remove, change of height is performed on an - accordion. updateItems() is called automatically for such cases, but by calling updateItems - manually an update will be forced.
        -
        Returns:
        Accordion
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Bang.html b/reference/controlP5/Bang.html deleted file mode 100644 index cf15b45..0000000 --- a/reference/controlP5/Bang.html +++ /dev/null @@ -1,817 +0,0 @@ - - - - - -Bang (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Bang

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    CDrawable, ControllerInterface<Bang>, ControlP5Constants
    -
    -
    -
    -
    public class Bang
    -extends Controller<Bang>
    -

    - The Bang controller triggers an event when pressed. A bang can only be assigned to a function in - your program but not to a field like other controllers. Bang extends superclass Controller, for a - full documentation see the Controller reference. -

    -
    -
    +Example
    /**
    - * ControlP5 Bang
    - * A bang triggers an event that can be received by a function named after the bang.
    - * By default a bang is triggered when pressed, this can be changed to 'release' 
    - * using theBang.setTriggerEvent(Bang.RELEASE).
    - *
    - * find a list of public methods available for the Bang Controller 
    - * at the bottom of this sketch.
    - *
    - * by Andreas Schlegel, 2012
    - * www.sojamo.de/libraries/controlp5
    - * 
    - */
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -int myColorBackground = color(0, 0, 0);
    -
    -color[] col = new color[] {
    -  color(100), color(150), color(200), color(250)
    -};
    -
    -
    -void setup() {
    -  size(400, 600);
    -  noStroke();
    -  cp5 = new ControlP5(this);
    -  for (int i=0;i
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Bang

        -
        public Bang(ControlP5 theControlP5,
        -    java.lang.String theName)
        -
        Convenience constructor to extend Bang.
        -
        Parameters:
        theControlP5 -
        theName -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        getInfo

        -
        public java.lang.String getInfo()
        -
        -
        Overrides:
        -
        getInfo in class Controller<Bang>
        -
        Returns:
        String
        -
      • -
      - - - -
        -
      • -

        getTriggerEvent

        -
        public int getTriggerEvent()
        -
      • -
      - - - -
        -
      • -

        setTriggerEvent

        -
        public Bang setTriggerEvent(int theEventID)
        -
        By default a bang is triggered when the mouse is pressed. use setTriggerEvent(Bang.PRESSED) - or setTriggerEvent(Bang.RELEASE) to define the action for triggering a bang. currently only - Bang.PRESSED and Bang.RELEASE are supported.
        -
        Parameters:
        theEventID -
        -
        Returns:
        Bang
        -
      • -
      - - - -
        -
      • -

        setValue

        -
        public Bang setValue(float theValue)
        -
        Sets the value of the bang controller. since bang can be true or false, false=0 and true=1
        -
        -
        Specified by:
        -
        setValue in interface ControllerInterface<Bang>
        -
        Overrides:
        -
        setValue in class Controller<Bang>
        -
        Parameters:
        theValue - float
        -
        Returns:
        Bang
        -
      • -
      - - - - - - - - - - - -
        -
      • -

        updateDisplayMode

        -
        public Bang updateDisplayMode(int theMode)
        -
      • -
      - - - -
        -
      • -

        updateViewMode

        -
        public Bang updateViewMode(int theMode)
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/BitFont.html b/reference/controlP5/BitFont.html deleted file mode 100644 index 8b7a7af..0000000 --- a/reference/controlP5/BitFont.html +++ /dev/null @@ -1,378 +0,0 @@ - - - - - -BitFont (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class BitFont

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    processing.core.PConstants
    -
    -
    -
    -
    public class BitFont
    -extends processing.core.PFont
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Nested Class Summary

      -
        -
      • - - -

        Nested classes/interfaces inherited from class processing.core.PFont

        -processing.core.PFont.Glyph
      • -
      -
    • -
    - -
      -
    • - - -

      Field Summary

      - - - - - - - - - - - - - - - - - - - - - - -
      Fields 
      Modifier and TypeField and Description
      static intdefaultChar 
      static java.lang.Stringgrixelbase64 
      static java.lang.Stringstandard56base64 
      static java.lang.Stringstandard58base64 
      -
        -
      • - - -

        Fields inherited from class processing.core.PFont

        -CHARSET
      • -
      -
        -
      • - - -

        Fields inherited from interface processing.core.PConstants

        -ADD, ALPHA, ALT, AMBIENT, ARC, ARGB, ARROW, BACKSPACE, BASELINE, BEVEL, BEZIER_VERTEX, BLEND, BLUR, BOTTOM, BOX, BREAK, BURN, CENTER, CHATTER, CHORD, CLAMP, CLOSE, CODED, COMPLAINT, CONTROL, CORNER, CORNERS, CROSS, CURVE_VERTEX, CUSTOM, DARKEST, DEG_TO_RAD, DELETE, DIAMETER, DIFFERENCE, DILATE, DIRECTIONAL, DISABLE_DEPTH_MASK, DISABLE_DEPTH_SORT, DISABLE_DEPTH_TEST, DISABLE_NATIVE_FONTS, DISABLE_OPENGL_ERRORS, DISABLE_OPTIMIZED_STROKE, DISABLE_RETINA_PIXELS, DISABLE_STROKE_PERSPECTIVE, DISABLE_STROKE_PURE, DISABLE_TEXTURE_MIPMAPS, DODGE, DOWN, DXF, ELLIPSE, ENABLE_DEPTH_MASK, ENABLE_DEPTH_SORT, ENABLE_DEPTH_TEST, ENABLE_NATIVE_FONTS, ENABLE_OPENGL_ERRORS, ENABLE_OPTIMIZED_STROKE, ENABLE_RETINA_PIXELS, ENABLE_STROKE_PERSPECTIVE, ENABLE_STROKE_PURE, ENABLE_TEXTURE_MIPMAPS, ENTER, EPSILON, ERODE, ERROR_BACKGROUND_IMAGE_FORMAT, ERROR_BACKGROUND_IMAGE_SIZE, ERROR_PUSHMATRIX_OVERFLOW, ERROR_PUSHMATRIX_UNDERFLOW, ERROR_TEXTFONT_NULL_PFONT, ESC, EXCLUSION, GIF, GRAY, GROUP, HALF_PI, HAND, HARD_LIGHT, HINT_COUNT, HSB, IMAGE, INVERT, JAVA2D, JPEG, LANDSCAPE, LEFT, LIGHTEST, LINE, LINE_LOOP, LINE_STRIP, LINES, LINUX, MACOSX, MAX_FLOAT, MAX_INT, MIN_FLOAT, MIN_INT, MITER, MODEL, MODELVIEW, MOVE, MULTIPLY, NORMAL, OPAQUE, OPEN, OPENGL, ORTHOGRAPHIC, OTHER, OVERLAY, P2D, P3D, PATH, PDF, PERSPECTIVE, PI, PIE, platformNames, POINT, POINTS, POLYGON, PORTRAIT, POSTERIZE, PROBLEM, PROJECT, PROJECTION, QUAD, QUAD_BEZIER_VERTEX, QUAD_STRIP, QUADS, QUARTER_PI, RAD_TO_DEG, RADIUS, RECT, REPEAT, REPLACE, RETURN, RGB, RIGHT, ROUND, SCREEN, SHAPE, SHIFT, SOFT_LIGHT, SPHERE, SPOT, SQUARE, SUBTRACT, TAB, TARGA, TAU, TEXT, THIRD_PI, THRESHOLD, TIFF, TOP, TRIANGLE, TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP, VERTEX, WAIT, WHITESPACE, WINDOWS, X, Y, Z
      • -
      -
    • -
    - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - -
      Constructors 
      Constructor and Description
      BitFont(byte[] theBytes) 
      -
    • -
    - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      processing.core.PFont.GlyphgetGlyph(char c) 
      -
        -
      • - - -

        Methods inherited from class processing.core.PFont

        -ascent, descent, findFont, findNative, getFont, getGlyph, getGlyphCount, getName, getNative, getPostScriptName, getSize, isStream, kern, list, loadFonts, save, setNative, setSubsetting, width
      • -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Field Detail

      - - - -
        -
      • -

        defaultChar

        -
        public static int defaultChar
        -
      • -
      - - - - - - - -
        -
      • -

        standard56base64

        -
        public static final java.lang.String standard56base64
        -
        See Also:
        Constant Field Values
        -
      • -
      - - - -
        -
      • -

        standard58base64

        -
        public static final java.lang.String standard58base64
        -
        See Also:
        Constant Field Values
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        BitFont

        -
        public BitFont(byte[] theBytes)
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        getGlyph

        -
        public processing.core.PFont.Glyph getGlyph(char c)
        -
        -
        Overrides:
        -
        getGlyph in class processing.core.PFont
        -
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/BoundingBox.html b/reference/controlP5/BoundingBox.html deleted file mode 100644 index 3a4a5c2..0000000 --- a/reference/controlP5/BoundingBox.html +++ /dev/null @@ -1,337 +0,0 @@ - - - - - -BoundingBox (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class BoundingBox

-
-
- -
- -
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        BoundingBox

        -
        public BoundingBox(ControlP5 theControlP5,
        -           java.lang.String theName)
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        onDrag

        -
        public void onDrag()
        -
      • -
      - - - -
        -
      • -

        onEndDrag

        -
        public void onEndDrag()
        -
      • -
      - - - -
        -
      • -

        onStartDrag

        -
        public void onStartDrag()
        -
      • -
      - - - -
        -
      • -

        updateViewMode

        -
        public BoundingBox updateViewMode(int theMode)
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Button.html b/reference/controlP5/Button.html deleted file mode 100644 index 1913fde..0000000 --- a/reference/controlP5/Button.html +++ /dev/null @@ -1,1026 +0,0 @@ - - - - - -Button (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Button

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    CDrawable, ControllerInterface<Button>, ControlP5Constants
    -
    -
    -
    Direct Known Subclasses:
    -
    MultiListButton
    -
    -
    -
    -
    public class Button
    -extends Controller<Button>
    -

    - A button triggers an event after it has been release. Events can be linked to functions and - fields inside your program/sketch. for a full documentation of this controller see the - Controller class. -

    -
    -
    +Example
    /**
    - * ControlP5 Button
    - * this example shows how to create buttons with controlP5.
    - * 
    - * find a list of public methods available for the Button Controller 
    - * at the bottom of this sketch's source code
    - *
    - * by Andreas Schlegel, 2012
    - * www.sojamo.de/libraries/controlp5
    - *
    - */
    - 
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -int myColor = color(255);
    -
    -int c1,c2;
    -
    -float n,n1;
    -
    -
    -void setup() {
    -  size(400,600);
    -  noStroke();
    -  cp5 = new ControlP5(this);
    -  
    -  // create a new button with name 'buttonA'
    -  cp5.addButton("colorA")
    -     .setValue(0)
    -     .setPosition(100,100)
    -     .setSize(200,19)
    -     ;
    -  
    -  // and add another 2 buttons
    -  cp5.addButton("colorB")
    -     .setValue(100)
    -     .setPosition(100,120)
    -     .setSize(200,19)
    -     ;
    -     
    -  cp5.addButton("colorC")
    -     .setPosition(100,140)
    -     .setSize(200,19)
    -     .setValue(0)
    -     ;
    -
    -  PImage[] imgs = {loadImage("button_a.png"),loadImage("button_b.png"),loadImage("button_c.png")};
    -  cp5.addButton("play")
    -     .setValue(128)
    -     .setPosition(140,300)
    -     .setImages(imgs)
    -     .updateSize()
    -     ;
    -     
    -  cp5.addButton("playAgain")
    -     .setValue(128)
    -     .setPosition(210,300)
    -     .setImages(imgs)
    -     .updateSize()
    -     ;
    -
    -}
    -
    -void draw() {
    -  background(myColor);
    -  myColor = lerpColor(c1,c2,n);
    -  n += (1-n)* 0.1; 
    -}
    -
    -public void controlEvent(ControlEvent theEvent) {
    -  println(theEvent.getController().getName());
    -  n = 0;
    -}
    -
    -// function colorA will receive changes from 
    -// controller with name colorA
    -public void colorA(int theValue) {
    -  println("a button event from colorA: "+theValue);
    -  c1 = c2;
    -  c2 = color(0,160,100);
    -}
    -
    -// function colorB will receive changes from 
    -// controller with name colorB
    -public void colorB(int theValue) {
    -  println("a button event from colorB: "+theValue);
    -  c1 = c2;
    -  c2 = color(150,0,0);
    -}
    -
    -// function colorC will receive changes from 
    -// controller with name colorC
    -public void colorC(int theValue) {
    -  println("a button event from colorC: "+theValue);
    -  c1 = c2;
    -  c2 = color(255,255,0);
    -}
    -
    -public void play(int theValue) {
    -  println("a button event from buttonB: "+theValue);
    -  c1 = c2;
    -  c2 = color(0,0,0);
    -}
    -
    -
    -/*
    -a list of all methods available for the Button Controller
    -use ControlP5.printPublicMethodsFor(Button.class);
    -to print the following list into the console.
    -
    -You can find further details about class Button in the javadoc.
    -
    -Format:
    -ClassName : returnType methodName(parameter type)
    -
    -
    -controlP5.Button : Button activateBy(int) 
    -controlP5.Button : Button setOff() 
    -controlP5.Button : Button setOn() 
    -controlP5.Button : Button setSwitch(boolean) 
    -controlP5.Button : Button setValue(float) 
    -controlP5.Button : Button update() 
    -controlP5.Button : String getInfo() 
    -controlP5.Button : String toString() 
    -controlP5.Button : boolean getBooleanValue() 
    -controlP5.Button : boolean isOn() 
    -controlP5.Button : boolean isPressed() 
    -controlP5.Controller : Button addCallback(CallbackListener) 
    -controlP5.Controller : Button addListener(ControlListener) 
    -controlP5.Controller : Button bringToFront() 
    -controlP5.Controller : Button bringToFront(ControllerInterface) 
    -controlP5.Controller : Button hide() 
    -controlP5.Controller : Button linebreak() 
    -controlP5.Controller : Button listen(boolean) 
    -controlP5.Controller : Button lock() 
    -controlP5.Controller : Button plugTo(Object) 
    -controlP5.Controller : Button plugTo(Object, String) 
    -controlP5.Controller : Button plugTo(Object[]) 
    -controlP5.Controller : Button plugTo(Object[], String) 
    -controlP5.Controller : Button registerProperty(String) 
    -controlP5.Controller : Button registerProperty(String, String) 
    -controlP5.Controller : Button registerTooltip(String) 
    -controlP5.Controller : Button removeBehavior() 
    -controlP5.Controller : Button removeCallback() 
    -controlP5.Controller : Button removeCallback(CallbackListener) 
    -controlP5.Controller : Button removeListener(ControlListener) 
    -controlP5.Controller : Button removeProperty(String) 
    -controlP5.Controller : Button removeProperty(String, String) 
    -controlP5.Controller : Button setArrayValue(float[]) 
    -controlP5.Controller : Button setArrayValue(int, float) 
    -controlP5.Controller : Button setBehavior(ControlBehavior) 
    -controlP5.Controller : Button setBroadcast(boolean) 
    -controlP5.Controller : Button setCaptionLabel(String) 
    -controlP5.Controller : Button setColor(CColor) 
    -controlP5.Controller : Button setColorActive(int) 
    -controlP5.Controller : Button setColorBackground(int) 
    -controlP5.Controller : Button setColorCaptionLabel(int) 
    -controlP5.Controller : Button setColorForeground(int) 
    -controlP5.Controller : Button setColorValueLabel(int) 
    -controlP5.Controller : Button setDecimalPrecision(int) 
    -controlP5.Controller : Button setDefaultValue(float) 
    -controlP5.Controller : Button setHeight(int) 
    -controlP5.Controller : Button setId(int) 
    -controlP5.Controller : Button setImages(PImage, PImage, PImage) 
    -controlP5.Controller : Button setImages(PImage, PImage, PImage, PImage) 
    -controlP5.Controller : Button setLabelVisible(boolean) 
    -controlP5.Controller : Button setLock(boolean) 
    -controlP5.Controller : Button setMax(float) 
    -controlP5.Controller : Button setMin(float) 
    -controlP5.Controller : Button setMouseOver(boolean) 
    -controlP5.Controller : Button setMoveable(boolean) 
    -controlP5.Controller : Button setPosition(PVector) 
    -controlP5.Controller : Button setPosition(float, float) 
    -controlP5.Controller : Button setSize(PImage) 
    -controlP5.Controller : Button setSize(int, int) 
    -controlP5.Controller : Button setStringValue(String) 
    -controlP5.Controller : Button setUpdate(boolean) 
    -controlP5.Controller : Button setValueLabel(String) 
    -controlP5.Controller : Button setView(ControllerView) 
    -controlP5.Controller : Button setVisible(boolean) 
    -controlP5.Controller : Button setWidth(int) 
    -controlP5.Controller : Button show() 
    -controlP5.Controller : Button unlock() 
    -controlP5.Controller : Button unplugFrom(Object) 
    -controlP5.Controller : Button unplugFrom(Object[]) 
    -controlP5.Controller : Button unregisterTooltip() 
    -controlP5.Controller : Button update() 
    -controlP5.Controller : Button updateSize() 
    -controlP5.Controller : CColor getColor() 
    -controlP5.Controller : ControlBehavior getBehavior() 
    -controlP5.Controller : ControlWindow getControlWindow() 
    -controlP5.Controller : ControlWindow getWindow() 
    -controlP5.Controller : ControllerProperty getProperty(String) 
    -controlP5.Controller : ControllerProperty getProperty(String, String) 
    -controlP5.Controller : Label getCaptionLabel() 
    -controlP5.Controller : Label getValueLabel() 
    -controlP5.Controller : List getControllerPlugList() 
    -controlP5.Controller : PImage setImage(PImage) 
    -controlP5.Controller : PImage setImage(PImage, int) 
    -controlP5.Controller : PVector getAbsolutePosition() 
    -controlP5.Controller : PVector getPosition() 
    -controlP5.Controller : String getAddress() 
    -controlP5.Controller : String getInfo() 
    -controlP5.Controller : String getName() 
    -controlP5.Controller : String getStringValue() 
    -controlP5.Controller : String toString() 
    -controlP5.Controller : Tab getTab() 
    -controlP5.Controller : boolean isActive() 
    -controlP5.Controller : boolean isBroadcast() 
    -controlP5.Controller : boolean isInside() 
    -controlP5.Controller : boolean isLabelVisible() 
    -controlP5.Controller : boolean isListening() 
    -controlP5.Controller : boolean isLock() 
    -controlP5.Controller : boolean isMouseOver() 
    -controlP5.Controller : boolean isMousePressed() 
    -controlP5.Controller : boolean isMoveable() 
    -controlP5.Controller : boolean isUpdate() 
    -controlP5.Controller : boolean isVisible() 
    -controlP5.Controller : float getArrayValue(int) 
    -controlP5.Controller : float getDefaultValue() 
    -controlP5.Controller : float getMax() 
    -controlP5.Controller : float getMin() 
    -controlP5.Controller : float getValue() 
    -controlP5.Controller : float[] getArrayValue() 
    -controlP5.Controller : int getDecimalPrecision() 
    -controlP5.Controller : int getHeight() 
    -controlP5.Controller : int getId() 
    -controlP5.Controller : int getWidth() 
    -controlP5.Controller : int listenerSize() 
    -controlP5.Controller : void remove() 
    -controlP5.Controller : void setView(ControllerView, int) 
    -java.lang.Object : String toString() 
    -java.lang.Object : boolean equals(Object) 
    -
    -
    -*/
    -
    -
    -
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Field Detail

      - - - -
        -
      • -

        autoHeight

        -
        public static int autoHeight
        -
      • -
      - - - -
        -
      • -

        autoWidth

        -
        public static int autoWidth
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Button

        -
        public Button()
        -
      • -
      - - - -
        -
      • -

        Button

        -
        public Button(ControlP5 theControlP5,
        -      java.lang.String theName)
        -
        Convenience constructor to extend Button.
        -
        Parameters:
        theControlP5 -
        theName -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        activateBy

        -
        public Button activateBy(int theValue)
        -
        A button can be activated by a mouse PRESSED or mouse RELEASE. Default value is RELEASE.
        -
        Parameters:
        theValue - use ControlP5.PRESSED or ControlP5.RELEASE as parameter
        -
        Returns:
        Button
        -
      • -
      - - - -
        -
      • -

        getBooleanValue

        -
        public boolean getBooleanValue()
        -
        Returns true or false and indicates the switch state of the button. setSwitch should have been set before.
        -
        Returns:
        boolean
        See Also:
        setSwitch(boolean)
        -
      • -
      - - - -
        -
      • -

        getInfo

        -
        public java.lang.String getInfo()
        -
        -
        Overrides:
        -
        getInfo in class Controller<Button>
        -
        Returns:
        String
        -
      • -
      - - - -
        -
      • -

        isOn

        -
        public boolean isOn()
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        isPressed

        -
        public boolean isPressed()
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        mousePressed

        -
        public void mousePressed()
        -
      • -
      - - - -
        -
      • -

        mouseReleased

        -
        public void mouseReleased()
        -
      • -
      - - - -
        -
      • -

        mouseReleasedOutside

        -
        public void mouseReleasedOutside()
        -
      • -
      - - - -
        -
      • -

        setOff

        -
        public Button setOff()
        -
        If the button acts as a switch, setOff will turn off the switch. Use - setSwitch to turn a Button into a Switch.
        -
        Returns:
        Button
        -
      • -
      - - - -
        -
      • -

        setOn

        -
        public Button setOn()
        -
        If the button acts as a switch, setOn will turn on the switch. Use - setSwitch to turn a Button into a Switch.
        -
        Returns:
        Button
        -
      • -
      - - - -
        -
      • -

        setSwitch

        -
        public Button setSwitch(boolean theFlag)
        -
        Turns a button into a switch, or use a Toggle instead.
        -
        Parameters:
        theFlag - turns the button into a switch when true
        -
        Returns:
        Button
        See Also:
        Toggle
        -
      • -
      - - - - - - - - - - - - - - - -
        -
      • -

        updateDisplayMode

        -
        public Button updateDisplayMode(int theMode)
        -
      • -
      - - - -
        -
      • -

        updateViewMode

        -
        public Button updateViewMode(int theMode)
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/CColor.html b/reference/controlP5/CColor.html deleted file mode 100644 index 78f6865..0000000 --- a/reference/controlP5/CColor.html +++ /dev/null @@ -1,486 +0,0 @@ - - - - - -CColor (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class CColor

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    java.io.Serializable
    -
    -
    -
    -
    public class CColor
    -extends java.lang.Object
    -implements java.io.Serializable
    -
    A CColor instance contains the colors of a controller including the foreground-, background-, - active-, captionlabel- and valuelabel-colors.
    -
    See Also:
    Serialized Form
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        CColor

        -
        public CColor()
        -
      • -
      - - - -
        -
      • -

        CColor

        -
        public CColor(CColor theColor)
        -
      • -
      - - - -
        -
      • -

        CColor

        -
        public CColor(int cfg,
        -      int cbg,
        -      int cactive,
        -      int ccl,
        -      int cvl)
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        equals

        -
        public boolean equals(java.lang.Object o)
        -
        -
        Overrides:
        -
        equals in class java.lang.Object
        -
        -
      • -
      - - - -
        -
      • -

        getActive

        -
        public int getActive()
        -
      • -
      - - - -
        -
      • -

        getAlpha

        -
        public int getAlpha()
        -
      • -
      - - - -
        -
      • -

        getBackground

        -
        public int getBackground()
        -
      • -
      - - - -
        -
      • -

        getCaptionLabel

        -
        public int getCaptionLabel()
        -
      • -
      - - - -
        -
      • -

        getForeground

        -
        public int getForeground()
        -
      • -
      - - - -
        -
      • -

        getValueLabel

        -
        public int getValueLabel()
        -
      • -
      - - - -
        -
      • -

        hashCode

        -
        public int hashCode()
        -
        -
        Overrides:
        -
        hashCode in class java.lang.Object
        -
        -
      • -
      - - - -
        -
      • -

        setActive

        -
        public CColor setActive(int theColor)
        -
      • -
      - - - -
        -
      • -

        setAlpha

        -
        public CColor setAlpha(int theAlpha)
        -
        Parameters:
        theAlpha -
        -
      • -
      - - - -
        -
      • -

        setBackground

        -
        public CColor setBackground(int theColor)
        -
      • -
      - - - -
        -
      • -

        setCaptionLabel

        -
        public CColor setCaptionLabel(int theColor)
        -
      • -
      - - - -
        -
      • -

        setForeground

        -
        public CColor setForeground(int theColor)
        -
      • -
      - - - -
        -
      • -

        setValueLabel

        -
        public CColor setValueLabel(int theColor)
        -
      • -
      - - - -
        -
      • -

        toString

        -
        public java.lang.String toString()
        -
        -
        Overrides:
        -
        toString in class java.lang.Object
        -
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/CDrawable.html b/reference/controlP5/CDrawable.html deleted file mode 100644 index 0509071..0000000 --- a/reference/controlP5/CDrawable.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - - -CDrawable (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Interface CDrawable

-
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      voiddraw(processing.core.PGraphics theGraphics) 
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        draw

        -
        void draw(processing.core.PGraphics theGraphics)
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/CP.html b/reference/controlP5/CP.html deleted file mode 100644 index 78fecc3..0000000 --- a/reference/controlP5/CP.html +++ /dev/null @@ -1,481 +0,0 @@ - - - - - -CP (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class CP

-
-
- -
-
    -
  • -
    -
    -
    public class CP
    -extends java.lang.Object
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - -
      Constructors 
      Constructor and Description
      CP() 
      -
    • -
    - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      static java.lang.StringarrayToString(java.lang.Object aArray) -
      * Convenience method for producing a simple textual representation of an array.
      -
      static intbyteArrayToInt(byte[] b) 
      static byte[]decodeBase64(java.lang.String base64) 
      static java.lang.StringencodeBase64(byte[] raw) 
      static java.lang.StringforHTMLTag(java.lang.String aTagFragment) -
      borrowed from http://www.javapractices.com/Topic96.cjp
      -
      static java.lang.StringforURL(java.lang.String aURLFragment) -
      borrowed from http://www.javapractices.com/Topic96.cjp
      -
      static intgetBit(int theByte, - int theIndex) 
      static booleaninside(int[] theRect, - float theX, - float theY) 
      static booleaninside(int[] theRect, - processing.core.PVector theVector) 
      static byte[]intToByteArray(int a) 
      static java.lang.StringintToString(int theInt) 
      static intparseHex(java.lang.String theHex) -
      convert a hex number into an int
      -
      static java.lang.Stringreplace(java.lang.String theSourceString, - java.lang.String theSearchForString, - java.lang.String theReplaceString) 
      static bytesetHigh(byte theByte, - int theIndex) 
      static bytesetLow(byte theByte, - int theIndex) 
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        CP

        -
        public CP()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        arrayToString

        -
        public static java.lang.String arrayToString(java.lang.Object aArray)
        -
        * Convenience method for producing a simple textual representation of an array. - -

        - The format of the returned String is the same as - AbstractCollection.toString: -

          -
        • non-empty array: [blah, blah] -
        • empty array: [] -
        • null array: null -
        - - - aArray is a possibly-null array whose elements are primitives or objects; arrays - of arrays are also valid, in which case aArray is rendered in a nested, - recursive fashion.
        -
      • -
      - - - -
        -
      • -

        byteArrayToInt

        -
        public static int byteArrayToInt(byte[] b)
        -
      • -
      - - - -
        -
      • -

        decodeBase64

        -
        public static byte[] decodeBase64(java.lang.String base64)
        -
      • -
      - - - -
        -
      • -

        encodeBase64

        -
        public static java.lang.String encodeBase64(byte[] raw)
        -
      • -
      - - - -
        -
      • -

        forHTMLTag

        -
        public static java.lang.String forHTMLTag(java.lang.String aTagFragment)
        -
        borrowed from http://www.javapractices.com/Topic96.cjp
        -
        Parameters:
        aTagFragment - String
        -
        Returns:
        String
        -
      • -
      - - - -
        -
      • -

        forURL

        -
        public static java.lang.String forURL(java.lang.String aURLFragment)
        -
        borrowed from http://www.javapractices.com/Topic96.cjp
        -
        Parameters:
        aURLFragment - String
        -
        Returns:
        String
        -
      • -
      - - - -
        -
      • -

        getBit

        -
        public static int getBit(int theByte,
        -         int theIndex)
        -
      • -
      - - - -
        -
      • -

        inside

        -
        public static boolean inside(int[] theRect,
        -             float theX,
        -             float theY)
        -
      • -
      - - - -
        -
      • -

        inside

        -
        public static boolean inside(int[] theRect,
        -             processing.core.PVector theVector)
        -
      • -
      - - - -
        -
      • -

        intToByteArray

        -
        public static byte[] intToByteArray(int a)
        -
      • -
      - - - -
        -
      • -

        intToString

        -
        public static java.lang.String intToString(int theInt)
        -
      • -
      - - - -
        -
      • -

        parseHex

        -
        public static int parseHex(java.lang.String theHex)
        -
        convert a hex number into an int
        -
        Parameters:
        theHex -
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        replace

        -
        public static java.lang.String replace(java.lang.String theSourceString,
        -                       java.lang.String theSearchForString,
        -                       java.lang.String theReplaceString)
        -
      • -
      - - - -
        -
      • -

        setHigh

        -
        public static byte setHigh(byte theByte,
        -           int theIndex)
        -
      • -
      - - - -
        -
      • -

        setLow

        -
        public static byte setLow(byte theByte,
        -          int theIndex)
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/CallbackEvent.html b/reference/controlP5/CallbackEvent.html deleted file mode 100644 index e72680c..0000000 --- a/reference/controlP5/CallbackEvent.html +++ /dev/null @@ -1,438 +0,0 @@ - - - - - -CallbackEvent (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class CallbackEvent

-
-
- -
-
    -
  • -
    -
    -
    public class CallbackEvent
    -extends java.lang.Object
    -

    - A CallbackEvent is send when a controller action such as enter, leave, press, etc has occurs. -

    -
    -
    +Example
    /**
    - * ControlP5 Callback
    - *
    - * The following example demonstrates the CallbackListener and CallbackEvent. 
    - * Here additional information about each available slider will be show when
    - * hovering the controller with the mouse. The info will fade out when leaving
    - * the controller. 
    - *
    - * When hovering a controller, the mouse pointer will change as well.
    - * 
    - * find a list of public methods available for the CallbackEvent Controller
    - * at the bottom of this sketch.
    - *
    - * by Andreas Schlegel, 2012
    - * www.sojamo.de/libraries/controlp5
    - *
    - */
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -Slider s1, s2;
    -Info info;
    -CallbackListener cb;
    -
    -void setup() {
    -  size(800, 400);
    -
    -  cp5 = new ControlP5(this);
    -
    -  
    -  // create a new instance of class Info
    -  // info will be used to display a controller's information and
    -  // will fade in when a CallbackEvent is invoked.
    -  info = new Info();
    -
    -
    -  // add 2 sliders
    -  s1 = cp5.addSlider("hello")
    -          .setRange(0, 100)
    -          .setValue(50)
    -          .setPosition(40, 40)
    -          .setSize(100, 20);
    -          
    -  s2 = cp5.addSlider("world")
    -          .setRange(0, 100)
    -          .setValue(10)
    -          .setPosition(40, 70)
    -          .setSize(100, 20);
    -
    -
    -  // the following CallbackListener will listen to any controlP5 
    -  // action such as enter, leave, pressed, released, releasedoutside, broadcast
    -  // see static variables starting with ACTION_ inside class controlP5.ControlP5Constants
    -
    -  cb = new CallbackListener() {
    -    public void controlEvent(CallbackEvent theEvent) {
    -      switch(theEvent.getAction()) {
    -        case(ControlP5.ACTION_ENTER):
    -        info.n = 1;
    -        info.label.setText(theEvent.getController().getInfo());
    -        cursor(HAND);
    -        break;
    -        case(ControlP5.ACTION_LEAVE):
    -        case(ControlP5.ACTION_RELEASEDOUTSIDE):
    -        info.n = 0;
    -        cursor(ARROW);
    -        break;
    -      }
    -    }
    -  };
    -
    -  // add the above callback to controlP5
    -  cp5.addCallback(cb);
    -
    -  // add another callback to slider s1, callback event will only be invoked for this 
    -  // particular controller.
    -  s1.addCallback(new CallbackListener() {
    -    public void controlEvent(CallbackEvent theEvent) {
    -      if (theEvent.getAction()==ControlP5.ACTION_BROADCAST) {
    -        s2.setValue(s2.getMax() - s1.getValue());
    -      }
    -    }
    -  }
    -  );
    -}
    -
    -void draw() {
    -  background(0);
    -  info.update();
    -}
    -
    -
    -void controlEvent(ControlEvent theEvent) {
    -  println("Got a ControlEvent for "+theEvent.name()+" = "+theEvent.value());
    -  info.label.setText(theEvent.getController().getInfo());
    -}
    -
    -void keyPressed() {
    -  // uncomment the line below to remove callback cb from controlP5
    -  // when a key is pressed.
    -  //controlP5.removeCallback(cb);
    -}
    -
    -// controlEvent(CallbackEvent) is called whenever a callback 
    -// has been triggered. controlEvent(CallbackEvent) is detected by 
    -// controlP5 automatically.
    -void controlEvent(CallbackEvent theEvent) {
    -  if (theEvent.getController().equals(s2)) {
    -    switch(theEvent.getAction()) {
    -      case(ControlP5.ACTION_ENTER): 
    -      println("Action:ENTER");
    -      break;
    -      case(ControlP5.ACTION_LEAVE): 
    -      println("Action:LEAVE");
    -      break;
    -      case(ControlP5.ACTION_PRESSED): 
    -      println("Action:PRESSED");
    -      break;
    -      case(ControlP5.ACTION_RELEASED): 
    -      println("Action:RELEASED");
    -      break;
    -      case(ControlP5.ACTION_RELEASEDOUTSIDE): 
    -      println("Action:RELEASED OUTSIDE");
    -      break;
    -      case(ControlP5.ACTION_BROADCAST): 
    -      println("Action:BROADCAST");
    -      break;
    -    }
    -  }
    -}
    -
    -
    -
    -class Info {
    -  float a;
    -  float n = 0;
    -  String txt = "";
    -  Textarea label;
    -  
    -  Info() {
    -    label = cp5.addTextarea("Hello\nWorld")
    -               .setSize(200,200)
    -               .setPosition(300,40)
    -               .setColor(color(255))
    -               .setColorBackground(color(100,0))
    -               .setLineHeight(12);
    -                   
    -  }
    -  
    -  void update() {
    -    a += (n-a)*0.1;
    -    label.setColorBackground(color(100,255*a));
    -  }
    -}
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -/*
    -a list of all methods available for the CallbackEvent Controller
    - use ControlP5.printPublicMethodsFor(CallbackEvent.class);
    - to print the following list into the console.
    - 
    - You can find further details about class CallbackEvent in the javadoc.
    - 
    - Format:
    - ClassName : returnType methodName(parameter type)
    - 
    - 
    - controlP5.CallbackEvent : Controller getController() 
    - controlP5.CallbackEvent : int getAction() 
    - java.lang.Object : String toString() 
    - java.lang.Object : boolean equals(Object) 
    - 
    - 
    - */
    -
    -
    -
    -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      intgetAction() 
      Controller<?>getController() -
      Returns the Controller that triggered the Callback Event.
      -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        getAction

        -
        public int getAction()
        -
        Returns:
        int Returns an int value of either one of the following static variables - ControlP5.ACTION_PRESSED, ControlP5.ACTION_ENTER, ControlP5.ACTION_LEAVE, - ControlP5.ACTION_RELEASED, ControlP5.ACTION_RELEASEDOUTSIDE, - ControlP5.ACTION_BROADCAST
        -
      • -
      - - - -
        -
      • -

        getController

        -
        public Controller<?> getController()
        -
        Returns the Controller that triggered the Callback Event.
        -
        Returns:
        Controller
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/CallbackListener.html b/reference/controlP5/CallbackListener.html deleted file mode 100644 index 74c0a2b..0000000 --- a/reference/controlP5/CallbackListener.html +++ /dev/null @@ -1,402 +0,0 @@ - - - - - -CallbackListener (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Interface CallbackListener

-
-
-
-
    -
  • -
    -
    -
    public interface CallbackListener
    -

    - Use a CallbackListener to listen for controller related actions such as pressed, released, etc. - Callbacks cn be added via the ControlP5.addCallback() methods. -

    -
    See Also:
    ControlP5.addCallback(CallbackListener)
    -
    +Example
    /**
    - * ControlP5 Callback
    - *
    - * The following example demonstrates the CallbackListener and CallbackEvent. 
    - * Here additional information about each available slider will be show when
    - * hovering the controller with the mouse. The info will fade out when leaving
    - * the controller. 
    - *
    - * When hovering a controller, the mouse pointer will change as well.
    - * 
    - * find a list of public methods available for the CallbackEvent Controller
    - * at the bottom of this sketch.
    - *
    - * by Andreas Schlegel, 2012
    - * www.sojamo.de/libraries/controlp5
    - *
    - */
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -Slider s1, s2;
    -Info info;
    -CallbackListener cb;
    -
    -void setup() {
    -  size(800, 400);
    -
    -  cp5 = new ControlP5(this);
    -
    -  
    -  // create a new instance of class Info
    -  // info will be used to display a controller's information and
    -  // will fade in when a CallbackEvent is invoked.
    -  info = new Info();
    -
    -
    -  // add 2 sliders
    -  s1 = cp5.addSlider("hello")
    -          .setRange(0, 100)
    -          .setValue(50)
    -          .setPosition(40, 40)
    -          .setSize(100, 20);
    -          
    -  s2 = cp5.addSlider("world")
    -          .setRange(0, 100)
    -          .setValue(10)
    -          .setPosition(40, 70)
    -          .setSize(100, 20);
    -
    -
    -  // the following CallbackListener will listen to any controlP5 
    -  // action such as enter, leave, pressed, released, releasedoutside, broadcast
    -  // see static variables starting with ACTION_ inside class controlP5.ControlP5Constants
    -
    -  cb = new CallbackListener() {
    -    public void controlEvent(CallbackEvent theEvent) {
    -      switch(theEvent.getAction()) {
    -        case(ControlP5.ACTION_ENTER):
    -        info.n = 1;
    -        info.label.setText(theEvent.getController().getInfo());
    -        cursor(HAND);
    -        break;
    -        case(ControlP5.ACTION_LEAVE):
    -        case(ControlP5.ACTION_RELEASEDOUTSIDE):
    -        info.n = 0;
    -        cursor(ARROW);
    -        break;
    -      }
    -    }
    -  };
    -
    -  // add the above callback to controlP5
    -  cp5.addCallback(cb);
    -
    -  // add another callback to slider s1, callback event will only be invoked for this 
    -  // particular controller.
    -  s1.addCallback(new CallbackListener() {
    -    public void controlEvent(CallbackEvent theEvent) {
    -      if (theEvent.getAction()==ControlP5.ACTION_BROADCAST) {
    -        s2.setValue(s2.getMax() - s1.getValue());
    -      }
    -    }
    -  }
    -  );
    -}
    -
    -void draw() {
    -  background(0);
    -  info.update();
    -}
    -
    -
    -void controlEvent(ControlEvent theEvent) {
    -  println("Got a ControlEvent for "+theEvent.name()+" = "+theEvent.value());
    -  info.label.setText(theEvent.getController().getInfo());
    -}
    -
    -void keyPressed() {
    -  // uncomment the line below to remove callback cb from controlP5
    -  // when a key is pressed.
    -  //controlP5.removeCallback(cb);
    -}
    -
    -// controlEvent(CallbackEvent) is called whenever a callback 
    -// has been triggered. controlEvent(CallbackEvent) is detected by 
    -// controlP5 automatically.
    -void controlEvent(CallbackEvent theEvent) {
    -  if (theEvent.getController().equals(s2)) {
    -    switch(theEvent.getAction()) {
    -      case(ControlP5.ACTION_ENTER): 
    -      println("Action:ENTER");
    -      break;
    -      case(ControlP5.ACTION_LEAVE): 
    -      println("Action:LEAVE");
    -      break;
    -      case(ControlP5.ACTION_PRESSED): 
    -      println("Action:PRESSED");
    -      break;
    -      case(ControlP5.ACTION_RELEASED): 
    -      println("Action:RELEASED");
    -      break;
    -      case(ControlP5.ACTION_RELEASEDOUTSIDE): 
    -      println("Action:RELEASED OUTSIDE");
    -      break;
    -      case(ControlP5.ACTION_BROADCAST): 
    -      println("Action:BROADCAST");
    -      break;
    -    }
    -  }
    -}
    -
    -
    -
    -class Info {
    -  float a;
    -  float n = 0;
    -  String txt = "";
    -  Textarea label;
    -  
    -  Info() {
    -    label = cp5.addTextarea("Hello\nWorld")
    -               .setSize(200,200)
    -               .setPosition(300,40)
    -               .setColor(color(255))
    -               .setColorBackground(color(100,0))
    -               .setLineHeight(12);
    -                   
    -  }
    -  
    -  void update() {
    -    a += (n-a)*0.1;
    -    label.setColorBackground(color(100,255*a));
    -  }
    -}
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -/*
    -a list of all methods available for the CallbackEvent Controller
    - use ControlP5.printPublicMethodsFor(CallbackEvent.class);
    - to print the following list into the console.
    - 
    - You can find further details about class CallbackEvent in the javadoc.
    - 
    - Format:
    - ClassName : returnType methodName(parameter type)
    - 
    - 
    - controlP5.CallbackEvent : Controller getController() 
    - controlP5.CallbackEvent : int getAction() 
    - java.lang.Object : String toString() 
    - java.lang.Object : boolean equals(Object) 
    - 
    - 
    - */
    -
    -
    -
    -
    -
  • -
-
-
-
    -
  • - - -
  • -
-
-
-
    -
  • - - -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Canvas.html b/reference/controlP5/Canvas.html deleted file mode 100644 index b9c192b..0000000 --- a/reference/controlP5/Canvas.html +++ /dev/null @@ -1,526 +0,0 @@ - - - - - -Canvas (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Canvas

-
-
- -
-
    -
  • -
    -
    -
    public abstract class Canvas
    -extends java.lang.Object
    -
    Use a Canvas to draw custom graphics into a control - window or the default sketch window. - - The Canvas is an abstract class and must be extended by - your custom Canvas class, see the ControlP5canvas example - for details.
    -
    -
    +Example
    /**
    - * ControlP5 Canvas
    - * The ControlWindowCanvas allow you to add custom graphics to 
    - * the default controlP5 renderer or a controlWindow rednerer.
    - *
    - * find a list of public methods available for the Canvas Controller 
    - * at the bottom of this sketch's source code
    - *
    - * by Andreas Schlegel, 2011
    - * www.sojamo.de/libraries/controlp5
    - * 
    - */
    -
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -ControlWindow controlWindow;
    -
    -Canvas cc;
    -
    -// MyCanvas, your Canvas render class
    -class MyCanvas extends Canvas {
    -
    -  int y;
    -  int mx = 0;
    -  int my = 0;
    -  public void setup(PGraphics pg) {
    -    y = 200;
    -  }  
    -
    -  public void update(PApplet p) {
    -    mx = p.mouseX;
    -    my = p.mouseY;
    -  }
    -
    -  public void draw(PGraphics pg) {
    -    // renders a square with randomly changing colors
    -    // make changes here.
    -    pg.fill(100);
    -    pg.rect(mx-20, y-20, 240, 30);
    -    pg.fill(255);
    -    pg.text("This text is drawn by MyCanvas", mx,y);
    -  }
    -}
    -
    -
    -void setup() {
    -  size(400, 400);
    -  frameRate(30);
    -  cp5 = new ControlP5(this);
    -
    -  // create a control window canvas and add it to
    -  // the previously created control window.  
    -  cc = new MyCanvas();
    -  cc.pre(); // use cc.post(); to draw on top of existing controllers.
    -  cp5.addCanvas(cc); // add the canvas to cp5
    -}
    -
    -void draw() {
    -  background(0);
    -  fill(60);
    -  rect(100, 100, 200, 200);
    -}
    -
    -
    -/*
    - a list of all methods available for the ControlWindowCanvas Controller
    - use ControlP5.printPublicMethodsFor(Canvas.class);
    - to print the following list into the console.
    - 
    - You can find further details about class Canvas in the javadoc.
    - 
    - Format:
    - ClassName : returnType methodName(parameter type)
    - 
    - controlP5.Canvas : void moveTo(ControlWindow) 
    - controlP5.Canvas : void setup(PApplet) 
    - controlP5.Canvas : void draw(PApplet) 
    - java.lang.Object : String toString() 
    - java.lang.Object : boolean equals(Object) 
    - */
    - 
    - 
    -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Field Summary

      - - - - - - - - - - - - - - -
      Fields 
      Modifier and TypeField and Description
      static intPOST 
      static intPRE 
      -
    • -
    - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - -
      Constructors 
      Constructor and Description
      Canvas() 
      -
    • -
    - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      abstract voiddraw(processing.core.PGraphics theGraphics) -
      controlWindowCanvas is an abstract class and - therefore needs to be extended by your class.
      -
      intmode() -
      get the drawing mode of a Canvas.
      -
      voidmoveTo(ControlWindow theControlWindow) -
      move a canvas to another controlWindow
      -
      voidpost() -
      set the drawing mode to POST.
      -
      voidpre() -
      set the drawing mode to PRE.
      -
      voidsetMode(int theMode) 
      voidsetup(processing.core.PGraphics theGraphics) 
      voidupdate(processing.core.PApplet theApplet) 
      ControlWindowwindow() 
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - - - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Canvas

        -
        public Canvas()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        draw

        -
        public abstract void draw(processing.core.PGraphics theGraphics)
        -
        controlWindowCanvas is an abstract class and - therefore needs to be extended by your class. - draw(PApplet theApplet) is the only method that needs - to be overwritten.
        -
      • -
      - - - -
        -
      • -

        mode

        -
        public final int mode()
        -
        get the drawing mode of a Canvas. this can be PRE or - POST.
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        moveTo

        -
        public void moveTo(ControlWindow theControlWindow)
        -
        move a canvas to another controlWindow
        -
        Parameters:
        theControlWindow -
        -
      • -
      - - - -
        -
      • -

        post

        -
        public final void post()
        -
        set the drawing mode to POST.
        -
      • -
      - - - -
        -
      • -

        pre

        -
        public final void pre()
        -
        set the drawing mode to PRE. PRE is the default.
        -
      • -
      - - - -
        -
      • -

        setMode

        -
        public final void setMode(int theMode)
        -
        Parameters:
        theMode -
        -
      • -
      - - - -
        -
      • -

        setup

        -
        public void setup(processing.core.PGraphics theGraphics)
        -
      • -
      - - - -
        -
      • -

        update

        -
        public void update(processing.core.PApplet theApplet)
        -
      • -
      - - - - -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Chart.ChartViewArea.html b/reference/controlP5/Chart.ChartViewArea.html deleted file mode 100644 index 3de7992..0000000 --- a/reference/controlP5/Chart.ChartViewArea.html +++ /dev/null @@ -1,272 +0,0 @@ - - - - - -Chart.ChartViewArea (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Chart.ChartViewArea

-
-
- -
- -
-
-
    -
  • - - - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      voiddisplay(processing.core.PGraphics theGraphics, - Chart theController) -
      draws your custom controllers.
      -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Chart.ChartViewArea

        -
        public Chart.ChartViewArea()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        display

        -
        public void display(processing.core.PGraphics theGraphics,
        -           Chart theController)
        -
        Description copied from interface: ControllerView
        -
        draws your custom controllers. display() will be called by a controller's draw() function and - will pass a reference of PApplet as well as the Controller itself to your custom display - class.
        -
        -
        Specified by:
        -
        display in interface ControllerView<Chart>
        -
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Chart.ChartViewBar.html b/reference/controlP5/Chart.ChartViewBar.html deleted file mode 100644 index 26358b5..0000000 --- a/reference/controlP5/Chart.ChartViewBar.html +++ /dev/null @@ -1,272 +0,0 @@ - - - - - -Chart.ChartViewBar (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Chart.ChartViewBar

-
-
- -
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - -
      Constructors 
      Constructor and Description
      Chart.ChartViewBar() 
      -
    • -
    - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      voiddisplay(processing.core.PGraphics theGraphics, - Chart theController) -
      draws your custom controllers.
      -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Chart.ChartViewBar

        -
        public Chart.ChartViewBar()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        display

        -
        public void display(processing.core.PGraphics theGraphics,
        -           Chart theController)
        -
        Description copied from interface: ControllerView
        -
        draws your custom controllers. display() will be called by a controller's draw() function and - will pass a reference of PApplet as well as the Controller itself to your custom display - class.
        -
        -
        Specified by:
        -
        display in interface ControllerView<Chart>
        -
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Chart.ChartViewBarCentered.html b/reference/controlP5/Chart.ChartViewBarCentered.html deleted file mode 100644 index 430ff12..0000000 --- a/reference/controlP5/Chart.ChartViewBarCentered.html +++ /dev/null @@ -1,272 +0,0 @@ - - - - - -Chart.ChartViewBarCentered (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Chart.ChartViewBarCentered

-
-
- -
- -
-
-
    -
  • - - - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      voiddisplay(processing.core.PGraphics theGraphics, - Chart theController) -
      draws your custom controllers.
      -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Chart.ChartViewBarCentered

        -
        public Chart.ChartViewBarCentered()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        display

        -
        public void display(processing.core.PGraphics theGraphics,
        -           Chart theController)
        -
        Description copied from interface: ControllerView
        -
        draws your custom controllers. display() will be called by a controller's draw() function and - will pass a reference of PApplet as well as the Controller itself to your custom display - class.
        -
        -
        Specified by:
        -
        display in interface ControllerView<Chart>
        -
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Chart.ChartViewLine.html b/reference/controlP5/Chart.ChartViewLine.html deleted file mode 100644 index b0aa2b0..0000000 --- a/reference/controlP5/Chart.ChartViewLine.html +++ /dev/null @@ -1,272 +0,0 @@ - - - - - -Chart.ChartViewLine (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Chart.ChartViewLine

-
-
- -
- -
-
-
    -
  • - - - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      voiddisplay(processing.core.PGraphics theGraphics, - Chart theController) -
      draws your custom controllers.
      -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Chart.ChartViewLine

        -
        public Chart.ChartViewLine()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        display

        -
        public void display(processing.core.PGraphics theGraphics,
        -           Chart theController)
        -
        Description copied from interface: ControllerView
        -
        draws your custom controllers. display() will be called by a controller's draw() function and - will pass a reference of PApplet as well as the Controller itself to your custom display - class.
        -
        -
        Specified by:
        -
        display in interface ControllerView<Chart>
        -
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Chart.ChartViewPie.html b/reference/controlP5/Chart.ChartViewPie.html deleted file mode 100644 index 2c3f552..0000000 --- a/reference/controlP5/Chart.ChartViewPie.html +++ /dev/null @@ -1,272 +0,0 @@ - - - - - -Chart.ChartViewPie (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Chart.ChartViewPie

-
-
- -
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - -
      Constructors 
      Constructor and Description
      Chart.ChartViewPie() 
      -
    • -
    - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      voiddisplay(processing.core.PGraphics theGraphics, - Chart theController) -
      draws your custom controllers.
      -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Chart.ChartViewPie

        -
        public Chart.ChartViewPie()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        display

        -
        public void display(processing.core.PGraphics theGraphics,
        -           Chart theController)
        -
        Description copied from interface: ControllerView
        -
        draws your custom controllers. display() will be called by a controller's draw() function and - will pass a reference of PApplet as well as the Controller itself to your custom display - class.
        -
        -
        Specified by:
        -
        display in interface ControllerView<Chart>
        -
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Chart.html b/reference/controlP5/Chart.html deleted file mode 100644 index 855cae2..0000000 --- a/reference/controlP5/Chart.html +++ /dev/null @@ -1,1529 +0,0 @@ - - - - - -Chart (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Chart

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    CDrawable, ControllerInterface<Chart>, ControlP5Constants
    -
    -
    -
    -
    public class Chart
    -extends Controller<Chart>
    -
    Use charts to display float array data as line chart, yet experimental, but see the - ControlP5chart example for more details.
    -
    -
    +Example
    /**
    -* ControlP5 Chart
    -*
    -* find a list of public methods available for the Chart Controller
    -* at the bottom of this sketch.
    -*
    -* by Andreas Schlegel, 2012
    -* www.sojamo.de/libraries/controlp5
    -*
    -*/
    -
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -Chart myChart;
    -
    -void setup() {
    -  size(400, 700);
    -  smooth();
    -  cp5 = new ControlP5(this);
    -  cp5.printPublicMethodsFor(Chart.class);
    -  myChart = cp5.addChart("hello")
    -               .setPosition(50, 50)
    -               .setSize(200, 200)
    -               .setRange(-20, 20)
    -               .setView(Chart.BAR) // use Chart.LINE, Chart.PIE, Chart.AREA, Chart.BAR_CENTERED
    -               ;
    -
    -  myChart.getColor().setBackground(color(255, 100));
    -
    -
    -  myChart.addDataSet("world");
    -  myChart.setColors("world", color(255,0,255),color(255,0,0));
    -  myChart.setData("world", new float[4]);
    -
    -  myChart.setStrokeWeight(1.5);
    -
    -  myChart.addDataSet("earth");
    -  myChart.setColors("earth", color(255), color(0, 255, 0));
    -  myChart.updateData("earth", 1, 2, 10, 3);
    -
    -}
    -
    -
    -void draw() {
    -  background(0);
    -  // unshift: add data from left to right (first in)
    -  myChart.unshift("world", (sin(frameCount*0.01)*10));
    -  
    -  // push: add data from right to left (last in)
    -  myChart.push("earth", (sin(frameCount*0.1)*10));
    -}
    -
    -
    -
    -
    -
    -
    -
    -/*
    -a list of all methods available for the Chart Controller
    -use ControlP5.printPublicMethodsFor(Chart.class);
    -to print the following list into the console.
    -
    -You can find further details about class Chart in the javadoc.
    -
    -Format:
    -ClassName : returnType methodName(parameter type)
    -
    -
    -controlP5.Chart : Chart addData(ChartData) 
    -controlP5.Chart : Chart addData(ChartDataSet, float) 
    -controlP5.Chart : Chart addData(String, ChartData) 
    -controlP5.Chart : Chart addData(String, float) 
    -controlP5.Chart : Chart addData(float) 
    -controlP5.Chart : Chart addDataSet(String) 
    -controlP5.Chart : Chart addFirst(String, float) 
    -controlP5.Chart : Chart addFirst(float) 
    -controlP5.Chart : Chart removeData(ChartData) 
    -controlP5.Chart : Chart removeData(String, ChartData) 
    -controlP5.Chart : Chart removeData(String, int) 
    -controlP5.Chart : Chart removeData(int) 
    -controlP5.Chart : Chart removeDataSet(String) 
    -controlP5.Chart : Chart removeLast() 
    -controlP5.Chart : Chart removeLast(String) 
    -controlP5.Chart : Chart setData(String, int, ChartData) 
    -controlP5.Chart : Chart setData(int, ChartData) 
    -controlP5.Chart : Chart setDataSet(ChartDataSet) 
    -controlP5.Chart : Chart setDataSet(String, ChartDataSet) 
    -controlP5.Chart : Chart setRange(float, float) 
    -controlP5.Chart : Chart setResolution(int) 
    -controlP5.Chart : Chart setStrokeWeight(float) 
    -controlP5.Chart : Chart setValue(float) 
    -controlP5.Chart : Chart setView(int) 
    -controlP5.Chart : Chart unshift(String, float) 
    -controlP5.Chart : Chart unshift(float) 
    -controlP5.Chart : ChartData getData(String, int) 
    -controlP5.Chart : ChartDataSet getDataSet(String) 
    -controlP5.Chart : LinkedHashMap getDataSet() 
    -controlP5.Chart : String getInfo() 
    -controlP5.Chart : String toString() 
    -controlP5.Chart : float getStrokeWeight() 
    -controlP5.Chart : float[] getValuesFrom(String) 
    -controlP5.Chart : int getResolution() 
    -controlP5.Chart : int size() 
    -controlP5.Chart : void onEnter() 
    -controlP5.Chart : void onLeave() 
    -controlP5.Controller : CColor getColor() 
    -controlP5.Controller : Chart addCallback(CallbackListener) 
    -controlP5.Controller : Chart addListener(ControlListener) 
    -controlP5.Controller : Chart align(int, int, int, int) 
    -controlP5.Controller : Chart bringToFront() 
    -controlP5.Controller : Chart bringToFront(ControllerInterface) 
    -controlP5.Controller : Chart hide() 
    -controlP5.Controller : Chart linebreak() 
    -controlP5.Controller : Chart listen(boolean) 
    -controlP5.Controller : Chart lock() 
    -controlP5.Controller : Chart plugTo(Object) 
    -controlP5.Controller : Chart plugTo(Object, String) 
    -controlP5.Controller : Chart plugTo(Object[]) 
    -controlP5.Controller : Chart plugTo(Object[], String) 
    -controlP5.Controller : Chart registerProperty(String) 
    -controlP5.Controller : Chart registerProperty(String, String) 
    -controlP5.Controller : Chart registerTooltip(String) 
    -controlP5.Controller : Chart removeBehavior() 
    -controlP5.Controller : Chart removeCallback() 
    -controlP5.Controller : Chart removeCallback(CallbackListener) 
    -controlP5.Controller : Chart removeListener(ControlListener) 
    -controlP5.Controller : Chart removeProperty(String) 
    -controlP5.Controller : Chart removeProperty(String, String) 
    -controlP5.Controller : Chart setArrayValue(float[]) 
    -controlP5.Controller : Chart setArrayValue(int, float) 
    -controlP5.Controller : Chart setBehavior(ControlBehavior) 
    -controlP5.Controller : Chart setBroadcast(boolean) 
    -controlP5.Controller : Chart setCaptionLabel(String) 
    -controlP5.Controller : Chart setColor(CColor) 
    -controlP5.Controller : Chart setColorActive(int) 
    -controlP5.Controller : Chart setColorBackground(int) 
    -controlP5.Controller : Chart setColorCaptionLabel(int) 
    -controlP5.Controller : Chart setColorForeground(int) 
    -controlP5.Controller : Chart setColorValueLabel(int) 
    -controlP5.Controller : Chart setDecimalPrecision(int) 
    -controlP5.Controller : Chart setDefaultValue(float) 
    -controlP5.Controller : Chart setHeight(int) 
    -controlP5.Controller : Chart setId(int) 
    -controlP5.Controller : Chart setImages(PImage, PImage, PImage) 
    -controlP5.Controller : Chart setImages(PImage, PImage, PImage, PImage) 
    -controlP5.Controller : Chart setLabelVisible(boolean) 
    -controlP5.Controller : Chart setLock(boolean) 
    -controlP5.Controller : Chart setMax(float) 
    -controlP5.Controller : Chart setMin(float) 
    -controlP5.Controller : Chart setMouseOver(boolean) 
    -controlP5.Controller : Chart setMoveable(boolean) 
    -controlP5.Controller : Chart setPosition(PVector) 
    -controlP5.Controller : Chart setPosition(float, float) 
    -controlP5.Controller : Chart setSize(PImage) 
    -controlP5.Controller : Chart setSize(int, int) 
    -controlP5.Controller : Chart setStringValue(String) 
    -controlP5.Controller : Chart setUpdate(boolean) 
    -controlP5.Controller : Chart setValueLabel(String) 
    -controlP5.Controller : Chart setView(ControllerView) 
    -controlP5.Controller : Chart setVisible(boolean) 
    -controlP5.Controller : Chart setWidth(int) 
    -controlP5.Controller : Chart show() 
    -controlP5.Controller : Chart unlock() 
    -controlP5.Controller : Chart unplugFrom(Object) 
    -controlP5.Controller : Chart unplugFrom(Object[]) 
    -controlP5.Controller : Chart unregisterTooltip() 
    -controlP5.Controller : Chart update() 
    -controlP5.Controller : Chart updateSize() 
    -controlP5.Controller : ControlBehavior getBehavior() 
    -controlP5.Controller : ControlWindow getControlWindow() 
    -controlP5.Controller : ControlWindow getWindow() 
    -controlP5.Controller : ControllerProperty getProperty(String) 
    -controlP5.Controller : ControllerProperty getProperty(String, String) 
    -controlP5.Controller : Label getCaptionLabel() 
    -controlP5.Controller : Label getValueLabel() 
    -controlP5.Controller : List getControllerPlugList() 
    -controlP5.Controller : PImage setImage(PImage) 
    -controlP5.Controller : PImage setImage(PImage, int) 
    -controlP5.Controller : PVector getAbsolutePosition() 
    -controlP5.Controller : PVector getPosition() 
    -controlP5.Controller : String getAddress() 
    -controlP5.Controller : String getInfo() 
    -controlP5.Controller : String getName() 
    -controlP5.Controller : String getStringValue() 
    -controlP5.Controller : String toString() 
    -controlP5.Controller : Tab getTab() 
    -controlP5.Controller : boolean isActive() 
    -controlP5.Controller : boolean isBroadcast() 
    -controlP5.Controller : boolean isInside() 
    -controlP5.Controller : boolean isLabelVisible() 
    -controlP5.Controller : boolean isListening() 
    -controlP5.Controller : boolean isLock() 
    -controlP5.Controller : boolean isMouseOver() 
    -controlP5.Controller : boolean isMousePressed() 
    -controlP5.Controller : boolean isMoveable() 
    -controlP5.Controller : boolean isUpdate() 
    -controlP5.Controller : boolean isVisible() 
    -controlP5.Controller : float getArrayValue(int) 
    -controlP5.Controller : float getDefaultValue() 
    -controlP5.Controller : float getMax() 
    -controlP5.Controller : float getMin() 
    -controlP5.Controller : float getValue() 
    -controlP5.Controller : float[] getArrayValue() 
    -controlP5.Controller : int getDecimalPrecision() 
    -controlP5.Controller : int getHeight() 
    -controlP5.Controller : int getId() 
    -controlP5.Controller : int getWidth() 
    -controlP5.Controller : int listenerSize() 
    -controlP5.Controller : void remove() 
    -controlP5.Controller : void setView(ControllerView, int) 
    -java.lang.Object : String toString() 
    -java.lang.Object : boolean equals(Object) 
    -
    -
    -*/
    -
    -
    -
    -
    -
  • -
-
-
- -
-
-
    -
  • - - - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Chart

        -
        public Chart(ControlP5 theControlP5,
        -     java.lang.String theName)
        -
        Convenience constructor to extend Chart.
        -
        Parameters:
        theControlP5 -
        theName -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - - - - - -
        -
      • -

        addData

        -
        public Chart addData(ChartDataSet theChartData,
        -            float theValue)
        -
      • -
      - - - -
        -
      • -

        addData

        -
        public Chart addData(float theValue)
        -
      • -
      - - - -
        -
      • -

        addData

        -
        public Chart addData(java.lang.String theSetIndex,
        -            ChartData theItem)
        -
      • -
      - - - -
        -
      • -

        addData

        -
        public Chart addData(java.lang.String theSetIndex,
        -            float theValue)
        -
      • -
      - - - -
        -
      • -

        addDataSet

        -
        public Chart addDataSet(java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addFirst

        -
        public Chart addFirst(float theValue)
        -
      • -
      - - - -
        -
      • -

        addFirst

        -
        public Chart addFirst(java.lang.String theSetIndex,
        -             float theValue)
        -
      • -
      - - - -
        -
      • -

        addLast

        -
        public Chart addLast(float theValue)
        -
      • -
      - - - -
        -
      • -

        addLast

        -
        public Chart addLast(java.lang.String theSetIndex,
        -            float theValue)
        -
      • -
      - - - -
        -
      • -

        getData

        -
        public ChartData getData(java.lang.String theIndex,
        -                int theItemIndex)
        -
      • -
      - - - -
        -
      • -

        getDataSet

        -
        public java.util.LinkedHashMap<java.lang.String,ChartDataSet> getDataSet()
        -
      • -
      - - - -
        -
      • -

        getDataSet

        -
        public ChartDataSet getDataSet(java.lang.String theIndex)
        -
      • -
      - - - -
        -
      • -

        getInfo

        -
        public java.lang.String getInfo()
        -
        -
        Overrides:
        -
        getInfo in class Controller<Chart>
        -
        Returns:
        String
        -
      • -
      - - - -
        -
      • -

        getResolution

        -
        public int getResolution()
        -
      • -
      - - - -
        -
      • -

        getStrokeWeight

        -
        public float getStrokeWeight()
        -
      • -
      - - - -
        -
      • -

        getValuesFrom

        -
        public float[] getValuesFrom(java.lang.String theIndex)
        -
      • -
      - - - -
        -
      • -

        onEnter

        -
        public void onEnter()
        -
      • -
      - - - -
        -
      • -

        onLeave

        -
        public void onLeave()
        -
      • -
      - - - -
        -
      • -

        push

        -
        public Chart push(float theValue)
        -
      • -
      - - - -
        -
      • -

        push

        -
        public Chart push(java.lang.String theSetIndex,
        -         float theValue)
        -
      • -
      - - - - - - - -
        -
      • -

        removeData

        -
        public Chart removeData(int theItemIndex)
        -
      • -
      - - - -
        -
      • -

        removeData

        -
        public Chart removeData(java.lang.String theSetIndex,
        -               ChartData theItem)
        -
      • -
      - - - -
        -
      • -

        removeData

        -
        public Chart removeData(java.lang.String theSetIndex,
        -               int theItemIndex)
        -
      • -
      - - - -
        -
      • -

        removeDataSet

        -
        public Chart removeDataSet(java.lang.String theIndex)
        -
      • -
      - - - -
        -
      • -

        removeFirst

        -
        public Chart removeFirst()
        -
      • -
      - - - -
        -
      • -

        removeFirst

        -
        public Chart removeFirst(java.lang.String theSetIndex)
        -
      • -
      - - - -
        -
      • -

        removeLast

        -
        public Chart removeLast()
        -
      • -
      - - - -
        -
      • -

        removeLast

        -
        public Chart removeLast(java.lang.String theSetIndex)
        -
      • -
      - - - -
        -
      • -

        setColors

        -
        public Chart setColors(java.lang.String theSetIndex,
        -              int... theColors)
        -
      • -
      - - - -
        -
      • -

        setData

        -
        public Chart setData(float... theValues)
        -
      • -
      - - - -
        -
      • -

        setData

        -
        public Chart setData(int theItemIndex,
        -            ChartData theItem)
        -
      • -
      - - - -
        -
      • -

        setData

        -
        public Chart setData(java.lang.String theSetIndex,
        -            float... theValues)
        -
      • -
      - - - -
        -
      • -

        setData

        -
        public Chart setData(java.lang.String theSetItem,
        -            int theItemIndex,
        -            ChartData theItem)
        -
      • -
      - - - - - - - -
        -
      • -

        setDataSet

        -
        public Chart setDataSet(java.lang.String theSetIndex,
        -               ChartDataSet theChartData)
        -
      • -
      - - - -
        -
      • -

        setRange

        -
        public Chart setRange(float theMin,
        -             float theMax)
        -
      • -
      - - - -
        -
      • -

        setResolution

        -
        public Chart setResolution(int theValue)
        -
        ?
        -
        Parameters:
        theValue -
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        setStrokeWeight

        -
        public Chart setStrokeWeight(float theWeight)
        -
      • -
      - - - - - - - -
        -
      • -

        setView

        -
        public Chart setView(int theType)
        -
      • -
      - - - -
        -
      • -

        size

        -
        public int size()
        -
      • -
      - - - - - - - -
        -
      • -

        unshift

        -
        public Chart unshift(float theValue)
        -
        adds a new float at the beginning of the data set.
        -
      • -
      - - - -
        -
      • -

        unshift

        -
        public Chart unshift(java.lang.String theSetIndex,
        -            float theValue)
        -
      • -
      - - - -
        -
      • -

        updateData

        -
        public Chart updateData(float... theValues)
        -
      • -
      - - - -
        -
      • -

        updateData

        -
        public Chart updateData(java.lang.String theSetIndex,
        -               float... theValues)
        -
      • -
      - - - -
        -
      • -

        updateDisplayMode

        -
        public Chart updateDisplayMode(int theMode)
        -
      • -
      - - - -
        -
      • -

        updateViewMode

        -
        public Chart updateViewMode(int theMode)
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ChartData.html b/reference/controlP5/ChartData.html deleted file mode 100644 index 2a22bac..0000000 --- a/reference/controlP5/ChartData.html +++ /dev/null @@ -1,331 +0,0 @@ - - - - - -ChartData (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ChartData

-
-
- -
-
    -
  • -
    -
    -
    public class ChartData
    -extends java.lang.Object
    -
    Used by Chart, single chart data is stored here including value, (label) text, and color.
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - - - - -
      Constructors 
      Constructor and Description
      ChartData(float theValue) 
      ChartData(float theValue, - java.lang.String theText) 
      -
    • -
    - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      intgetColor() 
      java.lang.StringgetText() 
      floatgetValue() 
      voidsetColor(int theColor) 
      voidsetText(java.lang.String theText) 
      voidsetValue(float theValue) 
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ChartData

        -
        public ChartData(float theValue)
        -
      • -
      - - - -
        -
      • -

        ChartData

        -
        public ChartData(float theValue,
        -         java.lang.String theText)
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        getColor

        -
        public int getColor()
        -
      • -
      - - - -
        -
      • -

        getText

        -
        public java.lang.String getText()
        -
      • -
      - - - -
        -
      • -

        getValue

        -
        public float getValue()
        -
      • -
      - - - -
        -
      • -

        setColor

        -
        public void setColor(int theColor)
        -
      • -
      - - - -
        -
      • -

        setText

        -
        public void setText(java.lang.String theText)
        -
      • -
      - - - -
        -
      • -

        setValue

        -
        public void setValue(float theValue)
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ChartDataSet.html b/reference/controlP5/ChartDataSet.html deleted file mode 100644 index 491cf3a..0000000 --- a/reference/controlP5/ChartDataSet.html +++ /dev/null @@ -1,378 +0,0 @@ - - - - - -ChartDataSet (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ChartDataSet

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<ChartData>, java.util.Collection<ChartData>, java.util.List<ChartData>, java.util.RandomAccess
    -
    -
    -
    -
    public class ChartDataSet
    -extends java.util.ArrayList<ChartData>
    -
    Used by Chart, a chart data set is a container to store chart data.
    -
    See Also:
    Serialized Form
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - -
      Constructors 
      Constructor and Description
      ChartDataSet(java.lang.String theName) 
      -
    • -
    - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      CColorgetColor() 
      intgetColor(int theIndex) 
      int[]getColors() 
      floatgetStrokeWeight() 
      float[]getValues() 
      ChartDataSetsetColors(int... theColors) 
      ChartDataSetsetStrokeWeight(float theStrokeWeight) 
      -
        -
      • - - -

        Methods inherited from class java.util.ArrayList

        -add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, trimToSize
      • -
      -
        -
      • - - -

        Methods inherited from class java.util.AbstractList

        -equals, hashCode
      • -
      -
        -
      • - - -

        Methods inherited from class java.util.AbstractCollection

        -containsAll, toString
      • -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -getClass, notify, notifyAll, wait, wait, wait
      • -
      -
        -
      • - - -

        Methods inherited from interface java.util.List

        -containsAll, equals, hashCode
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ChartDataSet

        -
        public ChartDataSet(java.lang.String theName)
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        getColor

        -
        public CColor getColor()
        -
      • -
      - - - -
        -
      • -

        getColor

        -
        public int getColor(int theIndex)
        -
      • -
      - - - -
        -
      • -

        getColors

        -
        public int[] getColors()
        -
      • -
      - - - -
        -
      • -

        getStrokeWeight

        -
        public float getStrokeWeight()
        -
      • -
      - - - -
        -
      • -

        getValues

        -
        public float[] getValues()
        -
      • -
      - - - -
        -
      • -

        setColors

        -
        public ChartDataSet setColors(int... theColors)
        -
      • -
      - - - -
        -
      • -

        setStrokeWeight

        -
        public ChartDataSet setStrokeWeight(float theStrokeWeight)
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/CheckBox.html b/reference/controlP5/CheckBox.html deleted file mode 100644 index ba76473..0000000 --- a/reference/controlP5/CheckBox.html +++ /dev/null @@ -1,1321 +0,0 @@ - - - - - -CheckBox (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class CheckBox

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    ControllerInterface<CheckBox>, ControlListener, ControlP5Constants
    -
    -
    -
    -
    public class CheckBox
    -extends ControlGroup<CheckBox>
    -
    A multiple-choice radioButton. items are added to a checkBox and can be organized in rows and - columns. items of a checkBox are of type Toggle.
    -
    See Also:
    Toggle
    -
    +Example
    /**
    - * ControlP5 Checkbox
    - * an example demonstrating the use of a checkbox in controlP5. 
    - * CheckBox extends the RadioButton class.
    - * to control a checkbox use: 
    - * activate(), deactivate(), activateAll(), deactivateAll(), toggle(), getState()
    - *
    - * find a list of public methods available for the Checkbox Controller 
    - * at the bottom of this sketch's source code
    - *
    - * by Andreas Schlegel, 2012
    - * www.sojamo.de/libraries/controlP5
    - *
    - */
    -
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -CheckBox checkbox;
    -
    -int myColorBackground;
    -
    -void setup() {
    -  size(700, 400);
    -  smooth();
    -  cp5 = new ControlP5(this);
    -  checkbox = cp5.addCheckBox("checkBox")
    -                .setPosition(100, 200)
    -                .setSize(40, 40)
    -                .setItemsPerRow(3)
    -                .setSpacingColumn(30)
    -                .setSpacingRow(20)
    -                .addItem("0", 0)
    -                .addItem("50", 50)
    -                .addItem("100", 100)
    -                .addItem("150", 150)
    -                .addItem("200", 200)
    -                .addItem("255", 255)
    -                ;
    -}
    -
    -void keyPressed() {
    -  if (key==' ') {
    -    checkbox.deactivateAll();
    -  } 
    -  else {
    -    for (int i=0;i<6;i++) {
    -      // check if key 0-5 have been pressed and toggle
    -      // the checkbox item accordingly.
    -      if (keyCode==(48 + i)) { 
    -        // the index of checkbox items start at 0
    -        checkbox.toggle(i);
    -        println("toggle "+checkbox.getItem(i).name());
    -        // also see 
    -        // checkbox.activate(index);
    -        // checkbox.deactivate(index);
    -      }
    -    }
    -  }
    -}
    -
    -void draw() {
    -  background(170);
    -  pushMatrix();
    -  translate(width/2 + 200, height/2);
    -  stroke(255);
    -  strokeWeight(2);
    -  fill(myColorBackground);
    -  ellipse(0,0,200,200);
    -  popMatrix();
    -}
    -
    -void controlEvent(ControlEvent theEvent) {
    -  if (theEvent.isFrom(checkbox)) {
    -    myColorBackground = 0;
    -    print("got an event from "+checkbox.getName()+"\t\n");
    -    // checkbox uses arrayValue to store the state of 
    -    // individual checkbox-items. usage:
    -    println(checkbox.getArrayValue());
    -    int col = 0;
    -    for (int i=0;i
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        CheckBox

        -
        public CheckBox(ControlP5 theControlP5,
        -        ControllerGroup<?> theParent,
        -        java.lang.String theName,
        -        int theX,
        -        int theY)
        -
        A CheckBox should only be added to controlP5 by using controlP5.addCheckBox()
        -
        Parameters:
        theControlP5 -
        theParent -
        theName -
        theX -
        theY -
        -
      • -
      - - - -
        -
      • -

        CheckBox

        -
        public CheckBox(ControlP5 theControlP5,
        -        java.lang.String theName)
        -
        Convenience constructor to extend CheckBox.
        -
        Parameters:
        theControlP5 -
        theName -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        activate

        -
        public final CheckBox activate(int theIndex)
        -
        Activates a single checkbox item by index
        -
      • -
      - - - -
        -
      • -

        activate

        -
        public final CheckBox activate(java.lang.String theName)
        -
        Activates a single checkbox item by name
        -
      • -
      - - - -
        -
      • -

        activateAll

        -
        public final CheckBox activateAll()
        -
      • -
      - - - -
        -
      • -

        addItem

        -
        public CheckBox addItem(java.lang.String theName,
        -               float theValue)
        -
        Parameters:
        theName -
        theValue -
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        addItem

        -
        public CheckBox addItem(Toggle theToggle,
        -               float theValue)
        -
        Parameters:
        theToggle -
        theValue -
        -
        Returns:
        -
      • -
      - - - - - - - -
        -
      • -

        deactivate

        -
        public final CheckBox deactivate(int theIndex)
        -
        deactivate a single checkbox item by index
        -
      • -
      - - - -
        -
      • -

        deactivate

        -
        public final CheckBox deactivate(java.lang.String theName)
        -
        Deactivates a single checkbox item by name
        -
      • -
      - - - -
        -
      • -

        deactivateAll

        -
        public CheckBox deactivateAll()
        -
      • -
      - - - - - - - -
        -
      • -

        getItem

        -
        public Toggle getItem(int theIndex)
        -
        Gets a radio button item by index.
        -
        Parameters:
        theIndex -
        -
        Returns:
        Toggle
        -
      • -
      - - - -
        -
      • -

        getItems

        -
        public java.util.List<Toggle> getItems()
        -
      • -
      - - - -
        -
      • -

        getState

        -
        public boolean getState(int theIndex)
        -
        Gets the state of an item - this can be true (for on) or false (for off) - by index.
        -
        Parameters:
        theIndex -
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        getState

        -
        public boolean getState(java.lang.String theName)
        -
        Gets the state of an item - this can be true (for on) or false (for off) - by name.
        -
        Parameters:
        theName -
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        hideLabels

        -
        public CheckBox hideLabels()
        -
      • -
      - - - -
        -
      • -

        plugTo

        -
        public CheckBox plugTo(java.lang.Object theObject)
        -
      • -
      - - - -
        -
      • -

        plugTo

        -
        public CheckBox plugTo(java.lang.Object theObject,
        -              java.lang.String thePlugName)
        -
      • -
      - - - -
        -
      • -

        removeItem

        -
        public CheckBox removeItem(java.lang.String theName)
        -
        Parameters:
        theName -
        -
      • -
      - - - - - - - -
        -
      • -

        setColorLabels

        -
        public CheckBox setColorLabels(int theColor)
        -
      • -
      - - - -
        -
      • -

        setImage

        -
        public CheckBox setImage(processing.core.PImage theImage)
        -
        Parameters:
        theImage -
        -
      • -
      - - - -
        -
      • -

        setImage

        -
        public CheckBox setImage(processing.core.PImage theImage,
        -                int theState)
        -
        Parameters:
        theImage -
        theState - use Controller.DEFAULT (background), or Controller.OVER (foreground), or - Controller.ACTIVE (active)
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        setImages

        -
        public CheckBox setImages(processing.core.PImage theDefaultImage,
        -                 processing.core.PImage theOverImage,
        -                 processing.core.PImage theActiveImage)
        -
        Parameters:
        theDefaultImage -
        theOverImage -
        theActiveImage -
        -
        Returns:
        CheckBox
        -
      • -
      - - - -
        -
      • -

        setItemHeight

        -
        public CheckBox setItemHeight(int theItemHeight)
        -
        set the height of a radioButton/checkBox item. by default the height is 11px. in order to - recognize a custom height, the itemHeight has to be set before adding items to a - radioButton/checkBox.
        -
        Parameters:
        theItemHeight -
        -
      • -
      - - - -
        -
      • -

        setItemsPerRow

        -
        public CheckBox setItemsPerRow(int theValue)
        -
        Items of a radioButton or a checkBox are organized in columns and rows. SetItemsPerRow sets - the limit of items per row. items exceeding the limit will be pushed to the next row.
        -
        Parameters:
        theValue -
        -
      • -
      - - - -
        -
      • -

        setItemWidth

        -
        public CheckBox setItemWidth(int theItemWidth)
        -
        set the width of a radioButton/checkBox item. by default the width is 11px. in order to - recognize a custom width, the itemWidth has to be set before adding items to a - radioButton/checkBox.
        -
        Parameters:
        theItemWidth -
        -
      • -
      - - - -
        -
      • -

        setNoneSelectedAllowed

        -
        public CheckBox setNoneSelectedAllowed(boolean theValue)
        -
        In order to always have 1 item selected, use setNoneSelectedAllowed(false), by default this - is true. setNoneSelectedAllowed does not apply when in multipleChoice mode.
        -
        Parameters:
        theValue -
        -
      • -
      - - - - - - - -
        -
      • -

        setSize

        -
        public CheckBox setSize(processing.core.PImage theImage)
        -
      • -
      - - - -
        -
      • -

        setSpacingColumn

        -
        public CheckBox setSpacingColumn(int theSpacing)
        -
        Sets the spacing in pixels between columns.
        -
        Parameters:
        theSpacing -
        -
      • -
      - - - -
        -
      • -

        setSpacingRow

        -
        public CheckBox setSpacingRow(int theSpacing)
        -
        Sets the spacing in pixels between rows.
        -
        Parameters:
        theSpacing -
        -
      • -
      - - - -
        -
      • -

        showLabels

        -
        public CheckBox showLabels()
        -
      • -
      - - - -
        -
      • -

        toggle

        -
        public final CheckBox toggle(int theIndex)
        -
        toggle a single checkbox item by index
        -
      • -
      - - - -
        -
      • -

        toggle

        -
        public final void toggle(java.lang.String theName)
        -
        deactivate a single checkbox item by name
        -
      • -
      - - - - - - - -
        -
      • -

        toUpperCase

        -
        public CheckBox toUpperCase(boolean theValue)
        -
      • -
      - - - -
        -
      • -

        updateLayout

        -
        public void updateLayout()
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ColorPicker.html b/reference/controlP5/ColorPicker.html deleted file mode 100644 index b5cabed..0000000 --- a/reference/controlP5/ColorPicker.html +++ /dev/null @@ -1,764 +0,0 @@ - - - - - -ColorPicker (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ColorPicker

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    ControllerInterface<ColorPicker>, ControlListener, ControlP5Constants
    -
    -
    -
    -
    public class ColorPicker
    -extends ControlGroup<ColorPicker>
    -
    A simple color picker using sliders to adjust RGBA values.
    -
    -
    +Example
    /**
    - * ControlP5 Color picker. a simple color picker, 
    - * 4 horizontal sliders controlling the RGBA channels of a color.
    - * to grab the current color value, use function getColorValue() of
    - * the color picker.
    - *
    - * find a list of public methods available for the ColorPicker Controller 
    - * at the bottom of this sketch's source code
    - *
    - * by Andreas Schlegel, 2012
    - * www.sojamo.de/libraries/controlP5
    - *
    - */
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -ColorPicker cp;
    -
    -void setup() {
    -  size(400, 600);
    -  noStroke();
    -  cp5 = new ControlP5(this);
    -  cp = cp5.addColorPicker("picker")
    -          .setPosition(60, 100)
    -          .setColorValue(color(255, 128, 0, 128))
    -          ;
    -}
    -
    -void draw() {
    -  background(cp.getColorValue());
    -  fill(0, 80);
    -  rect(50, 90, 275, 80);
    -}
    -
    -public void controlEvent(ControlEvent c) {
    -  // when a value change from a ColorPicker is received, extract the ARGB values
    -  // from the controller's array value
    -  if(c.isFrom(cp)) {
    -    int r = int(c.getArrayValue(0));
    -    int g = int(c.getArrayValue(1));
    -    int b = int(c.getArrayValue(2));
    -    int a = int(c.getArrayValue(3));
    -    color col = color(r,g,b,a);
    -    println("event\talpha:"+a+"\tred:"+r+"\tgreen:"+g+"\tblue:"+b+"\tcol"+col);
    -  }
    -}
    -
    -// color information from ColorPicker 'picker' are forwarded to the picker(int) function
    -void picker(int col) {
    -  println("picker\talpha:"+alpha(col)+"\tred:"+red(col)+"\tgreen:"+green(col)+"\tblue:"+blue(col)+"\tcol"+col);
    -}
    -
    -
    -void keyPressed() {
    -  switch(key) {
    -    case('1'):
    -    // method A to change color
    -    cp.setArrayValue(new float[] {120, 0, 120, 255});
    -    break;
    -    case('2'):
    -    // method B to change color
    -    cp.setColorValue(color(255, 0, 0, 255));
    -    break;
    -  }
    -}
    -
    -
    -
    -
    -/*
    - a list of all methods available for the ColorPicker Controller
    - use ControlP5.printPublicMethodsFor(ColorPicker.class);
    - to print the following list into the console.
    - 
    - You can find further details about class ColorPicker in the javadoc.
    - 
    - Format:
    - ClassName : returnType methodName(parameter type)
    - 
    - 
    - controlP5.ColorPicker : ColorPicker setArrayValue(float[]) 
    - controlP5.ColorPicker : ColorPicker setColorValue(int)
    - controlP5.ColorPicker : String getInfo() 
    - controlP5.ColorPicker : int getColorValue() 
    - controlP5.ControlGroup : ColorPicker activateEvent(boolean) 
    - controlP5.ControlGroup : ColorPicker addListener(ControlListener) 
    - controlP5.ControlGroup : ColorPicker hideBar() 
    - controlP5.ControlGroup : ColorPicker removeListener(ControlListener) 
    - controlP5.ControlGroup : ColorPicker setBackgroundColor(int) 
    - controlP5.ControlGroup : ColorPicker setBackgroundHeight(int) 
    - controlP5.ControlGroup : ColorPicker setBarHeight(int) 
    - controlP5.ControlGroup : ColorPicker showBar() 
    - controlP5.ControlGroup : ColorPicker updateInternalEvents(PApplet) 
    - controlP5.ControlGroup : String getInfo() 
    - controlP5.ControlGroup : String toString() 
    - controlP5.ControlGroup : boolean isBarVisible() 
    - controlP5.ControlGroup : int getBackgroundHeight() 
    - controlP5.ControlGroup : int getBarHeight() 
    - controlP5.ControlGroup : int listenerSize() 
    - controlP5.ControllerGroup : CColor getColor() 
    - controlP5.ControllerGroup : ColorPicker add(ControllerInterface) 
    - controlP5.ControllerGroup : ColorPicker bringToFront() 
    - controlP5.ControllerGroup : ColorPicker bringToFront(ControllerInterface) 
    - controlP5.ControllerGroup : ColorPicker close() 
    - controlP5.ControllerGroup : ColorPicker disableCollapse() 
    - controlP5.ControllerGroup : ColorPicker enableCollapse() 
    - controlP5.ControllerGroup : ColorPicker hide() 
    - controlP5.ControllerGroup : ColorPicker moveTo(ControlWindow) 
    - controlP5.ControllerGroup : ColorPicker moveTo(PApplet) 
    - controlP5.ControllerGroup : ColorPicker open() 
    - controlP5.ControllerGroup : ColorPicker registerProperty(String) 
    - controlP5.ControllerGroup : ColorPicker registerProperty(String, String) 
    - controlP5.ControllerGroup : ColorPicker remove(CDrawable) 
    - controlP5.ControllerGroup : ColorPicker remove(ControllerInterface) 
    - controlP5.ControllerGroup : ColorPicker removeCanvas(ControlWindowCanvas) 
    - controlP5.ControllerGroup : ColorPicker removeProperty(String) 
    - controlP5.ControllerGroup : ColorPicker removeProperty(String, String) 
    - controlP5.ControllerGroup : ColorPicker setAddress(String) 
    - controlP5.ControllerGroup : ColorPicker setArrayValue(float[]) 
    - controlP5.ControllerGroup : ColorPicker setColor(CColor) 
    - controlP5.ControllerGroup : ColorPicker setColorActive(int) 
    - controlP5.ControllerGroup : ColorPicker setColorBackground(int) 
    - controlP5.ControllerGroup : ColorPicker setColorForeground(int) 
    - controlP5.ControllerGroup : ColorPicker setColorLabel(int) 
    - controlP5.ControllerGroup : ColorPicker setColorValue(int) 
    - controlP5.ControllerGroup : ColorPicker setHeight(int) 
    - controlP5.ControllerGroup : ColorPicker setId(int) 
    - controlP5.ControllerGroup : ColorPicker setLabel(String) 
    - controlP5.ControllerGroup : ColorPicker setMouseOver(boolean) 
    - controlP5.ControllerGroup : ColorPicker setMoveable(boolean) 
    - controlP5.ControllerGroup : ColorPicker setOpen(boolean) 
    - controlP5.ControllerGroup : ColorPicker setPosition(PVector) 
    - controlP5.ControllerGroup : ColorPicker setPosition(float, float) 
    - controlP5.ControllerGroup : ColorPicker setStringValue(String) 
    - controlP5.ControllerGroup : ColorPicker setUpdate(boolean) 
    - controlP5.ControllerGroup : ColorPicker setValue(float) 
    - controlP5.ControllerGroup : ColorPicker setVisible(boolean) 
    - controlP5.ControllerGroup : ColorPicker setWidth(int) 
    - controlP5.ControllerGroup : ColorPicker show() 
    - controlP5.ControllerGroup : ColorPicker update() 
    - controlP5.ControllerGroup : ColorPicker updateAbsolutePosition() 
    - controlP5.ControllerGroup : ControlWindow getWindow() 
    - controlP5.ControllerGroup : ControlWindowCanvas addCanvas(ControlWindowCanvas) 
    - controlP5.ControllerGroup : Controller getController(String) 
    - controlP5.ControllerGroup : ControllerProperty getProperty(String) 
    - controlP5.ControllerGroup : ControllerProperty getProperty(String, String) 
    - controlP5.ControllerGroup : Label getCaptionLabel() 
    - controlP5.ControllerGroup : Label getValueLabel() 
    - controlP5.ControllerGroup : PVector getPosition() 
    - controlP5.ControllerGroup : String getAddress() 
    - controlP5.ControllerGroup : String getInfo() 
    - controlP5.ControllerGroup : String getName() 
    - controlP5.ControllerGroup : String getStringValue() 
    - controlP5.ControllerGroup : String toString() 
    - controlP5.ControllerGroup : Tab getTab() 
    - controlP5.ControllerGroup : boolean isCollapse() 
    - controlP5.ControllerGroup : boolean isMouseOver() 
    - controlP5.ControllerGroup : boolean isMoveable() 
    - controlP5.ControllerGroup : boolean isOpen() 
    - controlP5.ControllerGroup : boolean isUpdate() 
    - controlP5.ControllerGroup : boolean isVisible() 
    - controlP5.ControllerGroup : boolean setMousePressed(boolean) 
    - controlP5.ControllerGroup : float getValue() 
    - controlP5.ControllerGroup : float[] getArrayValue() 
    - controlP5.ControllerGroup : int getHeight() 
    - controlP5.ControllerGroup : int getId() 
    - controlP5.ControllerGroup : int getWidth() 
    - controlP5.ControllerGroup : void remove() 
    - java.lang.Object : String toString() 
    - java.lang.Object : boolean equals(Object) 
    - 
    - 
    - 
    - */
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ColorPicker

        -
        public ColorPicker(ControlP5 theControlP5,
        -           java.lang.String theName)
        -
        Convenience constructor to extend ColorPicker.
        -
        Parameters:
        theControlP5 -
        theName -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      -
    • -
    - - -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ColorWheel.html b/reference/controlP5/ColorWheel.html deleted file mode 100644 index 97406b4..0000000 --- a/reference/controlP5/ColorWheel.html +++ /dev/null @@ -1,688 +0,0 @@ - - - - - -ColorWheel (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ColorWheel

-
-
- -
- -
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ColorWheel

        -
        public ColorWheel(ControlP5 theControlP5,
        -          ControllerGroup<?> theParent,
        -          java.lang.String theName,
        -          int theX,
        -          int theY,
        -          int theWidth,
        -          int theHeight)
        -
      • -
      - - - -
        -
      • -

        ColorWheel

        -
        public ColorWheel(ControlP5 theControlP5,
        -          java.lang.String theName)
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        a

        -
        public int a()
        -
      • -
      - - - -
        -
      • -

        b

        -
        public int b()
        -
      • -
      - - - -
        -
      • -

        g

        -
        public int g()
        -
      • -
      - - - -
        -
      • -

        getRGB

        -
        public int getRGB()
        -
      • -
      - - - -
        -
      • -

        HSLtoRGB

        -
        public int HSLtoRGB(double[] theHSL)
        -
      • -
      - - - -
        -
      • -

        HSLtoRGB

        -
        public int HSLtoRGB(double h,
        -           double s,
        -           double l)
        -
        Parameters:
        h - value between 0 and 360
        s - value between 0 and 100
        l) - value between 0 and 100
        alpha - value between 0 and 1
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        HSVtoRGB

        -
        public int HSVtoRGB(double[] hsv)
        -
      • -
      - - - -
        -
      • -

        HSVtoRGB

        -
        public int HSVtoRGB(double H,
        -           double S,
        -           double V)
        -
        Parameters:
        H - value between 0-1
        S - value between 0-1
        V - value between 0-1
        -
        Returns:
        int
        -
      • -
      - - - -
        -
      • -

        onDrag

        -
        public void onDrag()
        -
      • -
      - - - -
        -
      • -

        onEndDrag

        -
        public void onEndDrag()
        -
      • -
      - - - -
        -
      • -

        onPress

        -
        public void onPress()
        -
      • -
      - - - -
        -
      • -

        onRelease

        -
        public void onRelease()
        -
      • -
      - - - -
        -
      • -

        onStartDrag

        -
        public void onStartDrag()
        -
      • -
      - - - -
        -
      • -

        r

        -
        public int r()
        -
      • -
      - - - -
        -
      • -

        RGBtoHSL

        -
        public double[] RGBtoHSL(int theRGB)
        -
      • -
      - - - -
        -
      • -

        RGBtoHSL

        -
        public double[] RGBtoHSL(int theR,
        -                int theG,
        -                int theB)
        -
        Parameters:
        theR - value between 0 and 255
        theG - value between 0 and 255
        theB - value between 0 and 255
        -
        Returns:
        double[] values h,s,l are between 0-1
        -
      • -
      - - - -
        -
      • -

        RGBtoHSV

        -
        public final double[] RGBtoHSV(int c)
        -
      • -
      - - - -
        -
      • -

        RGBtoHSV

        -
        public final double[] RGBtoHSV(int theR,
        -                int theG,
        -                double theB)
        -
        Parameters:
        theR - value between 0 and 255
        theG - value between 0 and 255
        theB - value between 0 and 255
        -
        Returns:
        hsv [ hue (0-1) sat (0-1) val (0-1) ]
        -
      • -
      - - - -
        -
      • -

        scrolled

        -
        public ColorWheel scrolled(int theRotationValue)
        -
      • -
      - - - -
        -
      • -

        setAlpha

        -
        public ColorWheel setAlpha(int theAlpha)
        -
      • -
      - - - -
        -
      • -

        setHSL

        -
        public ColorWheel setHSL(double theH,
        -                double theS,
        -                double theL)
        -
      • -
      - - - -
        -
      • -

        setHue

        -
        public void setHue(double theH)
        -
      • -
      - - - -
        -
      • -

        setLightness

        -
        public void setLightness(double theL)
        -
      • -
      - - - -
        -
      • -

        setRGB

        -
        public ColorWheel setRGB(int theColor)
        -
      • -
      - - - -
        -
      • -

        setSaturation

        -
        public void setSaturation(double theS)
        -
      • -
      - - - -
        -
      • -

        updateDisplayMode

        -
        public ColorWheel updateDisplayMode(int theMode)
        -
      • -
      - - - -
        -
      • -

        updateViewMode

        -
        public ColorWheel updateViewMode(int theMode)
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControlBehavior.html b/reference/controlP5/ControlBehavior.html deleted file mode 100644 index fcc4c73..0000000 --- a/reference/controlP5/ControlBehavior.html +++ /dev/null @@ -1,501 +0,0 @@ - - - - - -ControlBehavior (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ControlBehavior

-
-
- -
-
    -
  • -
    -
    -
    public abstract class ControlBehavior
    -extends java.lang.Object
    -
    The abstract class control behavior allows you to add custom behavior to controllers. Since it is - an abstract class it must be extended and method update() must be implemented in your custom - control behavior. how to use ControlBehavior please see the ControlP5behavior example in the - examples folder.
    -
    -
    +Example
    /**
    - * ControlP5 Behavior 
    - * ControlBehavior is an abstract class that can be extended using your 
    - * custom control behaviors. What is a control behavior? Control Behaviors
    - * allow you to automate and dynamically change the state or value of a
    - * controller. One behavior per controller is currently supported. i case you
    - * need to use more that one bahavior, the implementation has to happen
    - * on your side - inside your control behavior.
    - *
    - * find a list of public methods available for the ControlBehavior Controller 
    - * at the bottom of this sketch.
    - *
    - * by Andreas Schlegel, 2012
    - * www.sojamo.de/libraries/controlp5
    - *
    - */
    -
    -import controlP5.*;
    -
    -
    -ControlP5 cp5;
    -
    -int myColorBackground = color(0, 0, 0);
    -
    -public int sliderValue = 100;
    -
    -void setup() {
    -  size(400, 400);
    -  noStroke();
    -
    -  cp5 = new ControlP5(this);
    -  cp5.addSlider("sliderValue")
    -     .setRange(0,255)
    -     .setValue(128)
    -     .setPosition(100, 50 + height/2)
    -     .setSize(40, 100);
    -     
    -  cp5.addSlider("slider")
    -     .setRange(100, 255)
    -     .setValue(128)
    -     .setPosition(100, 50)
    -     .setSize(100, 40);
    -     
    -
    -  cp5.addBang("bang")
    -     .setPosition(40, 50 + height/2)
    -     .setSize(40, 40);
    -     
    -  // add a custom ControlBehavior to controller bang,
    -  // class TimerEvent is included in this sketch at the bottom
    -  // and extends abstract class ControlBehavior.
    -  cp5.getController("bang").setBehavior(new TimedEvent());
    -
    -  // use an anonymous class of type ControlBehavior.
    -  cp5.getController("slider").setBehavior(new ControlBehavior() {
    -    float a = 0;
    -    public void update() { 
    -      setValue(sin(a += 0.1) * 50  + 150);
    -    }
    -  }
    -  );
    -}
    -
    -void draw() {
    -  background(myColorBackground);
    -  fill(sliderValue);
    -  rect(0, 0, width, height/2);
    -}
    -
    -void slider(float theColor) {
    -  myColorBackground = color(theColor);
    -  println("# a slider event. setting background to "+theColor);
    -}
    -
    -public void bang() {
    -  println("# an event received from controller bang.");
    -  // a bang will set the value of controller sliderValue
    -  // to a random number between 0 and 255.
    -  cp5.getController("sliderValue").setValue(random(0, 255));
    -}
    -
    -// custom ControlBehavior
    -class TimedEvent extends ControlBehavior {
    -  long myTime;
    -  int interval = 200;
    -
    -  public TimedEvent() { 
    -    reset();
    -  }
    -  void reset() { 
    -    myTime = millis() + interval;
    -  }
    -
    -  public void update() {
    -    if (millis()>myTime) { 
    -      setValue(1); 
    -      reset();
    -    }
    -  }
    -}
    -
    -
    -
    -
    -/*
    -a list of all methods available for the ControlBehavior Controller
    -use ControlP5.printPublicMethodsFor(ControlBehavior.class);
    -to print the following list into the console.
    -
    -You can find further details about class ControlBehavior in the javadoc.
    -
    -Format:
    -ClassName : returnType methodName(parameter type)
    -
    -
    -controlP5.ControlBehavior : Controller controller() 
    -controlP5.ControlBehavior : boolean isActive() 
    -controlP5.ControlBehavior : void setActive(boolean) 
    -controlP5.ControlBehavior : void setValue(float) 
    -java.lang.Object : String toString() 
    -java.lang.Object : boolean equals(Object) 
    -
    -
    -*/
    -
    -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - -
      Constructors 
      Constructor and Description
      ControlBehavior() 
      -
    • -
    - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      Controller<?>controller() -
      Deprecated. 
      -
      Controller<?>getController() -
      Returns the controller this behavior is connected to.
      -
      floatgetValue() 
      booleanisActive() -
      check if the behavior is active or not.
      -
      voidsetActive(boolean theFlag) -
      (de)activate the behavior.
      -
      voidsetValue(float theValue) 
      abstract voidupdate() -
      When extending ControlBehavior, update() has to be overridden.
      -
      floatvalue() -
      Deprecated. 
      -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ControlBehavior

        -
        public ControlBehavior()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        controller

        -
        @Deprecated
        -public Controller<?> controller()
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        getController

        -
        public Controller<?> getController()
        -
        Returns the controller this behavior is connected to.
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        getValue

        -
        public float getValue()
        -
      • -
      - - - -
        -
      • -

        isActive

        -
        public boolean isActive()
        -
        check if the behavior is active or not.
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        setActive

        -
        public void setActive(boolean theFlag)
        -
        (de)activate the behavior.
        -
        Parameters:
        theFlag - boolean
        -
      • -
      - - - -
        -
      • -

        setValue

        -
        public void setValue(float theValue)
        -
      • -
      - - - -
        -
      • -

        update

        -
        public abstract void update()
        -
        When extending ControlBehavior, update() has to be overridden.
        -
      • -
      - - - -
        -
      • -

        value

        -
        @Deprecated
        -public float value()
        -
        Deprecated. 
        -
        Returns:
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControlBroadcaster.html b/reference/controlP5/ControlBroadcaster.html deleted file mode 100644 index 931e455..0000000 --- a/reference/controlP5/ControlBroadcaster.html +++ /dev/null @@ -1,452 +0,0 @@ - - - - - -ControlBroadcaster (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ControlBroadcaster

-
-
- -
-
    -
  • -
    -
    -
    public class ControlBroadcaster
    -extends java.lang.Object
    -
    The ControlBroadcaster handles all controller value changes and distributes them accordingly to - its listeners. The ControlBroadcaster is primarily for internal use only but can be accessed - through an instance of the ControlP5 class. Instead of accessing the ControlBroadcaster directly, - use the convenience methods available from the ControlP5 class.
    -
    See Also:
    ControlP5.getControlBroadcaster()
    -
  • -
-
-
- -
-
-
    -
  • - - -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControlElement.html b/reference/controlP5/ControlElement.html deleted file mode 100644 index 0bd5250..0000000 --- a/reference/controlP5/ControlElement.html +++ /dev/null @@ -1,423 +0,0 @@ - - - - - -ControlElement (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Annotation Type ControlElement

-
-
-
-
    -
  • -
    -
    -
    @Retention(value=RUNTIME)
    -public @interface ControlElement
    -
    Used for automated controller creation using annotations. Very much inspired by Karsten Schmidt's - (toxi) cp5magic
    -
    -
    +Example
    /**
    - * ControlP5 Annotation
    - *
    - * Lately annotation support has been added to processing. 
    - * Making use of annotations to create controllers is a great strategy i learned
    - * from Karsten Schmidt's (toxi) cp5magic library. 
    - * Loving the simplicity of annotations and how it is aplied with cp5magic,
    - * i had to include it into controlp5 and the following example 
    - * shows how to use annotations with controlp5. 
    - *
    - * Annotations can be applied to variables and functions of the main program 
    - * as well as individual classes. More details are included in the comments below.
    - *
    - * by Andreas Schlegel, 2012
    - * www.sojamo.de/libraries/controlp5
    - *
    - */
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -TestControl tc1, tc2;
    -
    -Tab extraTab;
    -
    -// create controllers using the ControlElement annotation
    -// by default a slider is created for int and float 
    -// values will range from 0-100 by default
    -// default attributes are x,y and label
    -@ControlElement (x=10, y=80)
    -int n = 20;
    -
    -// to customize a controller with a CoontrolElement use the
    -// properties attribute. values passed using properties have a key and a value
    -// here the key corresponds with a function found within a controller which 
    -// starts with set followed by the name of the key. the value is then applied accordingly.
    -// e.g. min=10 will translate to controller.setMin(10)
    -@ControlElement (properties = { "min=0", "max=255", "type=numberbox", "height=10", "width=50"} , x=10, y=40, label="Change Background")
    -float m = 40;
    -
    -
    -void setup() {
    -  size(600, 400);
    -  noStroke();
    -
    -  cp5 = new ControlP5(this);
    -  
    -  // Annotations:
    -  // addControllersFor(PApplet) checks the main sketch for 
    -  // annotations and adds controllers accordingly.
    -  cp5.addControllersFor(this);
    -  
    -  
    -  
    -  
    -  extraTab = cp5.addTab("extra");
    -
    -  // create an instance of class testControl
    -  tc1 = new TestControl();
    -
    -  // addControllersFor cycles throught object tc1
    -  // and assigns controllers according to available annotations.
    -  // an address will be assigned to these controllers, in the example
    -  // below the address is /world and the individual controllers can be 
    -  // accessed adding a / and the controller's name 
    -  // e.g. variable x
    -  // /world/x
    -  cp5.addControllersFor("world", tc1);
    -
    -  // set the Position of controllers contained within object tc1
    -  cp5.setPosition(10, 150, tc1);
    -
    -
    -  // a more advanced example of using functions with ControllerObjects
    -  tc2 = new TestControl();
    -  CColor col = new CColor();
    -  col.setActive(color(0, 200, 100));
    -  
    -  cp5.addControllersFor("hello", tc2)
    -     .setPosition(200, 150, tc2)
    -     .moveTo(extraTab, tc2)
    -     .setColor(col, tc2);
    -     
    -  cp5.getController("s", tc2)
    -     .setStringValue("Second Control"); 
    -  
    -  // with listening turned on, a controller can listen to changes made to its connected variable 
    -  // here the controller will listen to variable x of object tc2
    -  cp5.getController("x", tc2).listen(true);
    -
    -
    -  // (uncomment line below) print the a map of all available controller addresses
    -  // cp5.printControllerMap();
    -
    -  // (uncomment line below) access a controller via its address:
    -  // println(cp5.getController("/world/x").getInfo());
    -}
    -
    -
    -
    -void draw() {
    -  background(m);
    -
    -  pushMatrix();  
    -  if (tc1.b) {
    -    fill(tc1.x);
    -    translate(10, tc1.y);
    -    rect(0, 300, 100, 20);
    -  }
    -  popMatrix();
    -  fill(255);
    -  text(tc1.in,400,100,150,300);
    -  
    -  
    -  pushMatrix();
    -  if (tc2.b) {
    -    fill(tc2.x);
    -    translate(200, tc2.y);
    -    for (int i=0;i<1;i++) {
    -      rect(0, 300, 100, 20);
    -    }
    -  }
    -  popMatrix();
    -  fill(255);
    -  text(tc2.in,400,300,150,300);
    -  
    -  // the variable x of object tt is controlled by the main program,
    -  // the matching controller will update accordingly since it is 
    -  // listening for changes.
    -  tc2.x = (int)random(100);
    -
    -  
    -}
    -
    -
    -public class TestControl {
    -
    -  @ControlElement (properties = { "min=0", "max=255" }, x=0, y=0, label="Brightness")
    -    public int x = 100;
    -
    -  @ControlElement (x=0, y=14, label="Y-Position")
    -    public float y = 0;
    -
    -  @ControlElement (x=0, y=40, label="show")
    -    public boolean b = true;
    -
    -  @ControlElement (x=50, y=40)
    -    public void toggle(boolean b) {
    -      println("hello world");
    -    }
    -
    -  @ControlElement (x=0, y=-20, label="Control", properties = { "type=textlabel"})
    -    String s;
    -
    -  @ControlElement (x=0, y=100, label="Type here")
    -    String in = "";
    -    
    -  @ControlElement (x=200, y=25, properties = {"type=list", "items=hello, world, how are you"}, label="Sample-list") 
    -    public void a(int val) {  
    -      println(val);
    -    }
    -}
    -
    -
    -
    -
    -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Optional Element Summary

      - - - - - - - - - - - - - - - - - - - - - - -
      Optional Elements 
      Modifier and TypeOptional Element and Description
      java.lang.Stringlabel 
      java.lang.String[]properties 
      intx 
      inty 
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Element Detail

      - - - -
        -
      • -

        label

        -
        public abstract java.lang.String label
        -
        -
        Default:
        -
        ""
        -
        -
      • -
      - - - -
        -
      • -

        properties

        -
        public abstract java.lang.String[] properties
        -
        -
        Default:
        -
        {}
        -
        -
      • -
      - - - -
        -
      • -

        x

        -
        public abstract int x
        -
        -
        Default:
        -
        -1
        -
        -
      • -
      - - - -
        -
      • -

        y

        -
        public abstract int y
        -
        -
        Default:
        -
        -1
        -
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControlEvent.html b/reference/controlP5/ControlEvent.html deleted file mode 100644 index 58ae5ef..0000000 --- a/reference/controlP5/ControlEvent.html +++ /dev/null @@ -1,749 +0,0 @@ - - - - - -ControlEvent (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ControlEvent

-
-
- -
-
    -
  • -
    -
    -
    public class ControlEvent
    -extends java.lang.Object
    -
    A controlEvent is sent to a PApplet or a ControlListener whenever a controller value has changed. - Events can also be sent when a tab is activated, but by default tab events are disabled and have - to be enabled with Tab Tab.activateEvent(). for detailed information see the tab - documentation.
    -
    -
    +Example
    /**
    - * ControlP5 ControlEvent.
    - * every control event is automatically forwarded to the function controlEvent(ControlEvent)
    - * inside a sketch if such function is available. For further details about the API of 
    - * the ControlEvent class, please refer to the documentation.
    - *
    - *
    - * find a list of public methods available for ControlEvent
    - * at the bottom of this sketch's source code
    - *
    - * by Andreas Schlegel, 2012
    - * www.sojamo.de/libraries/controlP5
    - *
    - */
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -public int myColorRect1 = 200;
    -
    -public int myColorRect2 = 100;
    -
    -
    -void setup() {
    -  size(400, 400);
    -  noStroke();
    -  
    -  cp5 = new ControlP5(this);
    -  cp5.addNumberbox("n1")
    -     .setValue(myColorRect1)
    -     .setPosition(20, 20)
    -     .setSize(100, 20)
    -     .setMin(0)
    -     .setMax(255)
    -     .setId(1);
    -     
    -  cp5.addNumberbox("n2")
    -     .setValue(myColorRect2)
    -     .setPosition(20, 60)
    -     .setSize(100, 20)
    -     .setMin(0)
    -     .setMax(255)
    -     .setId(2);
    -     
    -  cp5.addTextfield("n3")
    -     .setPosition(20, 100)
    -     .setSize(100, 20)
    -     .setId(3);
    -     
    -}
    -
    -void draw() {
    -  background(ControlP5.MAROON);
    -  fill(ControlP5.RED, myColorRect1);
    -  rect(140, 20, 240, 170);
    -  fill(ControlP5.FUCHSIA, myColorRect2);
    -  rect(140, 210, 240, 170);
    -}
    -
    -
    -void controlEvent(ControlEvent theEvent) {
    -  println("got a control event from controller with id "+theEvent.getController().getId());
    -  
    -  if (theEvent.isFrom(cp5.getController("n1"))) {
    -    println("this event was triggered by Controller n1");
    -  }
    -  
    -  switch(theEvent.getController().getId()) {
    -    case(1):
    -    myColorRect1 = (int)(theEvent.getController().getValue());
    -    break;
    -    case(2):
    -    myColorRect2 = (int)(theEvent.getController().getValue());
    -    break;
    -    case(3):
    -    println(theEvent.getController().getStringValue());
    -    break;
    -  }
    -}
    -
    -
    -/*
    - a list of all methods available for ControlEvent
    - use ControlP5.printPublicMethodsFor(ControlEvent.class);
    - to print the following list into the console.
    - 
    - You can find further details about class ControlEvent in the javadoc.
    - 
    - Format:
    - ClassName : returnType methodName(parameter type)
    - 
    - controlP5.ControlEvent : ControlGroup getGroup() 
    - controlP5.ControlEvent : Controller getController() 
    - controlP5.ControlEvent : String getLabel() 
    - controlP5.ControlEvent : String getName() 
    - controlP5.ControlEvent : String getStringValue() 
    - controlP5.ControlEvent : Tab getTab() 
    - controlP5.ControlEvent : boolean isController() 
    - controlP5.ControlEvent : boolean isFrom(ControllerInterface) 
    - controlP5.ControlEvent : boolean isFrom(String) 
    - controlP5.ControlEvent : boolean isGroup() 
    - controlP5.ControlEvent : boolean isTab() 
    - controlP5.ControlEvent : float getValue() 
    - controlP5.ControlEvent : float[] getArrayValue() 
    - controlP5.ControlEvent : int getId() 
    - controlP5.ControlEvent : int getType() 
    - java.lang.Object : String toString() 
    - java.lang.Object : boolean equals(Object) 
    - */
    - 
    - 
    -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Field Summary

      - - - - - - - - - - - - - - - - - - - - - - -
      Fields 
      Modifier and TypeField and Description
      static intCONTROLLER 
      static intGROUP 
      static intTAB 
      static intUNDEFINDED 
      -
    • -
    - - - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      float[]getArrayValue() -
      Returns a float array, applies to e.g.
      -
      floatgetArrayValue(int theIndex) -
      Returns a float value at a particular index from a controller's array value.
      -
      Controller<?>getController() -
      Returns the instance of the controller sending the ControlEvent.
      -
      ControlGroup<?>getGroup() -
      Returns the group that evoked the ControlEvent
      -
      intgetId() -
      Returns the controller's id, if an id has not been set before the default value -1 will be - returned.
      -
      java.lang.StringgetLabel() -
      Gets the text of the controller's label that has evoked the event.
      -
      java.lang.StringgetName() -
      returns the controller's name
      -
      java.lang.StringgetStringValue() 
      TabgetTab() -
      Returns the tab that triggered the ControlEvent
      -
      intgetType() 
      floatgetValue() 
      booleanisAssignableFrom(java.lang.Class<?> c) 
      booleanisController() -
      Checks if the ControlEvent was triggered by a controller
      -
      booleanisFrom(ControllerInterface<?> theController) -
      Checks if the ControlEvent originates from a specific Controller or ControllerGroup.
      -
      booleanisFrom(java.lang.String theControllerName) -
      checks if the ControlEvent originates from a specific Controller or ControllerGroup - identifiable by name.
      -
      booleanisGroup() -
      Checks if the ControlEvent was triggered by a ControlGroup
      -
      booleanisTab() -
      Checks if the ControlEvent was triggered by a tab
      -
      java.lang.StringtoString() 
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Field Detail

      - - - -
        -
      • -

        CONTROLLER

        -
        public static int CONTROLLER
        -
      • -
      - - - -
        -
      • -

        GROUP

        -
        public static int GROUP
        -
      • -
      - - - -
        -
      • -

        TAB

        -
        public static int TAB
        -
      • -
      - - - -
        -
      • -

        UNDEFINDED

        -
        public static int UNDEFINDED
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ControlEvent

        -
        public ControlEvent(ControllerGroup<?> theController)
        -
        Parameters:
        theController - Controller
        -
      • -
      - - - -
        -
      • -

        ControlEvent

        -
        public ControlEvent(Tab theController)
        -
        Parameters:
        theController - Controller
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        getArrayValue

        -
        public float[] getArrayValue()
        -
        Returns a float array, applies to e.g. Range.
        -
        Returns:
        float[]
        -
      • -
      - - - -
        -
      • -

        getArrayValue

        -
        public float getArrayValue(int theIndex)
        -
        Returns a float value at a particular index from a controller's array value. No error - checking available here, will throw ArrayIndexOutOfBOundsException in case of unavailable - index.
        -
        Parameters:
        theIndex -
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        getController

        -
        public Controller<?> getController()
        -
        Returns the instance of the controller sending the ControlEvent.
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        getGroup

        -
        public ControlGroup<?> getGroup()
        -
        Returns the group that evoked the ControlEvent
        -
        Returns:
        ControlGroup
        -
      • -
      - - - -
        -
      • -

        getId

        -
        public int getId()
        -
        Returns the controller's id, if an id has not been set before the default value -1 will be - returned.
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        getLabel

        -
        public java.lang.String getLabel()
        -
        Gets the text of the controller's label that has evoked the event.
        -
        Returns:
        String
        -
      • -
      - - - -
        -
      • -

        getName

        -
        public java.lang.String getName()
        -
        returns the controller's name
        -
        Returns:
        String
        -
      • -
      - - - -
        -
      • -

        getStringValue

        -
        public java.lang.String getStringValue()
        -
      • -
      - - - -
        -
      • -

        getTab

        -
        public Tab getTab()
        -
        Returns the tab that triggered the ControlEvent
        -
        Returns:
        Tab Tab
        -
      • -
      - - - -
        -
      • -

        getType

        -
        public int getType()
        -
        Returns:
        int returned is ControlP5.CONTROLLER, or ControlP5.TAB, or ControlP5.GROUP
        -
      • -
      - - - -
        -
      • -

        getValue

        -
        public float getValue()
        -
      • -
      - - - -
        -
      • -

        isAssignableFrom

        -
        public boolean isAssignableFrom(java.lang.Class<?> c)
        -
      • -
      - - - -
        -
      • -

        isController

        -
        public boolean isController()
        -
        Checks if the ControlEvent was triggered by a controller
        -
        Returns:
        boolean
        See Also:
        Controller
        -
      • -
      - - - -
        -
      • -

        isFrom

        -
        public boolean isFrom(ControllerInterface<?> theController)
        -
        Checks if the ControlEvent originates from a specific Controller or ControllerGroup.
        -
        Parameters:
        theController -
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        isFrom

        -
        public boolean isFrom(java.lang.String theControllerName)
        -
        checks if the ControlEvent originates from a specific Controller or ControllerGroup - identifiable by name.
        -
        Parameters:
        theController -
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        isGroup

        -
        public boolean isGroup()
        -
        Checks if the ControlEvent was triggered by a ControlGroup
        -
        Returns:
        boolean
        See Also:
        ControllerGroup
        -
      • -
      - - - -
        -
      • -

        isTab

        -
        public boolean isTab()
        -
        Checks if the ControlEvent was triggered by a tab
        -
        Returns:
        boolean
        See Also:
        Tab
        -
      • -
      - - - -
        -
      • -

        toString

        -
        public java.lang.String toString()
        -
        -
        Overrides:
        -
        toString in class java.lang.Object
        -
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControlFont.html b/reference/controlP5/ControlFont.html deleted file mode 100644 index aad9e96..0000000 --- a/reference/controlP5/ControlFont.html +++ /dev/null @@ -1,590 +0,0 @@ - - - - - -ControlFont (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ControlFont

-
-
- -
-
    -
  • -
    -
    -
    public class ControlFont
    -extends java.lang.Object
    -
    A ControlFont is a container for a PFont that can be used to customize the font of a label. - (Designing the Font handling gave me a big headache, especially when it comes to calculating the - dimensions of a font which are not available at all times but only at certain times. The current - status I suppose is a good compromise and works for standard font handling cases. For any special - cases it will be difficult to convince me to make any changes.)
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Field Summary

      - - - - - - - - - - - - - - -
      Fields 
      Modifier and TypeField and Description
      static booleanDEBUG 
      static booleanRENDER_2X -
      set the RENDER_2X variable to true to double render text, this makes the font look bolder - especially in OpenGL mode.
      -
      -
    • -
    - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - - - - - - - -
      Constructors 
      Constructor and Description
      ControlFont(processing.core.PFont theFont) 
      ControlFont(processing.core.PFont theFont, - int theFontSize) 
      ControlFont(processing.core.PFont theFont, - int theFontSize, - int theLineHeight) 
      -
    • -
    - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      voidadjust(processing.core.PGraphics theGraphics, - Label theLabel) 
      voiddraw(ControlP5 c, - Label theLabel) 
      voiddraw(processing.core.PGraphics theGraphics, - Label theLabel) 
      intgetBaseline() 
      intgetBottom() 
      intgetCenter() 
      processing.core.PFontgetFont() 
      intgetHeight() 
      intgetOffset(int theIndex) 
      intgetOverflow() 
      intgetSize() 
      intgetTextHeight() 
      intgetTop() 
      intgetWidth() 
      static intgetWidthFor(java.lang.String theText, - Label theLabel, - processing.core.PGraphics theGraphics) 
      voidinit(Label theLabel) 
      static voidnormal() -
      sets the rendering of a PFont back to normal and single rendering.
      -
      voidsetSize(int theSize) 
      static voidsharp() -
      renders a PFont twice for better and sharper readability
      -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Field Detail

      - - - -
        -
      • -

        DEBUG

        -
        public static boolean DEBUG
        -
      • -
      - - - -
        -
      • -

        RENDER_2X

        -
        public static boolean RENDER_2X
        -
        set the RENDER_2X variable to true to double render text, this makes the font look bolder - especially in OpenGL mode. use: ControlFont.RENDER_2X = true;
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ControlFont

        -
        public ControlFont(processing.core.PFont theFont)
        -
      • -
      - - - -
        -
      • -

        ControlFont

        -
        public ControlFont(processing.core.PFont theFont,
        -           int theFontSize)
        -
      • -
      - - - -
        -
      • -

        ControlFont

        -
        public ControlFont(processing.core.PFont theFont,
        -           int theFontSize,
        -           int theLineHeight)
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        adjust

        -
        public void adjust(processing.core.PGraphics theGraphics,
        -          Label theLabel)
        -
      • -
      - - - - - - - -
        -
      • -

        draw

        -
        public void draw(processing.core.PGraphics theGraphics,
        -        Label theLabel)
        -
      • -
      - - - -
        -
      • -

        getBaseline

        -
        public int getBaseline()
        -
      • -
      - - - -
        -
      • -

        getBottom

        -
        public int getBottom()
        -
      • -
      - - - -
        -
      • -

        getCenter

        -
        public int getCenter()
        -
      • -
      - - - -
        -
      • -

        getFont

        -
        public processing.core.PFont getFont()
        -
      • -
      - - - -
        -
      • -

        getHeight

        -
        public int getHeight()
        -
      • -
      - - - -
        -
      • -

        getOffset

        -
        public int getOffset(int theIndex)
        -
      • -
      - - - -
        -
      • -

        getOverflow

        -
        public int getOverflow()
        -
      • -
      - - - -
        -
      • -

        getSize

        -
        public int getSize()
        -
      • -
      - - - -
        -
      • -

        getTextHeight

        -
        public int getTextHeight()
        -
      • -
      - - - -
        -
      • -

        getTop

        -
        public int getTop()
        -
      • -
      - - - -
        -
      • -

        getWidth

        -
        public int getWidth()
        -
      • -
      - - - -
        -
      • -

        getWidthFor

        -
        public static int getWidthFor(java.lang.String theText,
        -              Label theLabel,
        -              processing.core.PGraphics theGraphics)
        -
      • -
      - - - -
        -
      • -

        init

        -
        public void init(Label theLabel)
        -
      • -
      - - - -
        -
      • -

        normal

        -
        public static void normal()
        -
        sets the rendering of a PFont back to normal and single rendering.
        -
      • -
      - - - -
        -
      • -

        setSize

        -
        public void setSize(int theSize)
        -
      • -
      - - - -
        -
      • -

        sharp

        -
        public static void sharp()
        -
        renders a PFont twice for better and sharper readability
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControlGroup.html b/reference/controlP5/ControlGroup.html deleted file mode 100644 index 5950ca9..0000000 --- a/reference/controlP5/ControlGroup.html +++ /dev/null @@ -1,997 +0,0 @@ - - - - - -ControlGroup (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ControlGroup<T>

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    ControllerInterface<T>, ControlListener, ControlP5Constants
    -
    -
    -
    Direct Known Subclasses:
    -
    Accordion, CheckBox, ColorPicker, DropdownList, Group, ListBox, RadioButton
    -
    -
    -
    -
    public class ControlGroup<T>
    -extends ControllerGroup<T>
    -implements ControlListener
    -

    - In previous versions you would use the ControlGroup class to bundle controllers in a group. Now - please use the Group class to do so. -

    -

    - ControlGroup extends ControllerGroup, for a list and documentation of available methods see the - ControllerGroup documentation. -

    -
    See Also:
    Group
    -
    +Example
    /**
    -* ControlP5 Group
    -*
    -*
    -* find a list of public methods available for the Group Controller
    -* at the bottom of this sketch.
    -*
    -* by Andreas Schlegel, 2012
    -* www.sojamo.de/libraries/controlp5
    -*
    -*/
    -
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -void setup() {  
    -  size(700,400);
    -
    -  cp5 = new ControlP5(this);
    -  
    -  Group g1 = cp5.addGroup("g1")
    -                .setPosition(100,100)
    -                .setBackgroundHeight(100)
    -                .setBackgroundColor(color(255,50))
    -                ;
    -                     
    -  cp5.addBang("A-1")
    -     .setPosition(10,20)
    -     .setSize(80,20)
    -     .setGroup(g1)
    -     ;
    -          
    -  cp5.addBang("A-2")
    -     .setPosition(10,60)
    -     .setSize(80,20)
    -     .setGroup(g1)
    -     ;
    -     
    -  
    -  Group g2 = cp5.addGroup("g2")
    -                .setPosition(300,100)
    -                .setWidth(300)
    -                .activateEvent(true)
    -                .setBackgroundColor(color(255,80))
    -                .setBackgroundHeight(100)
    -                .setLabel("Hello World.")
    -                ;
    -  
    -  cp5.addSlider("S-1")
    -     .setPosition(80,10)
    -     .setSize(180,9)
    -     .setGroup(g2)
    -     ;
    -     
    -  cp5.addSlider("S-2")
    -     .setPosition(80,20)
    -     .setSize(180,9)
    -     .setGroup(g2)
    -     ;
    -     
    -  cp5.addRadioButton("radio")
    -     .setPosition(10,10)
    -     .setSize(20,9)
    -     .addItem("black",0)
    -     .addItem("red",1)
    -     .addItem("green",2)
    -     .addItem("blue",3)
    -     .addItem("grey",4)
    -     .setGroup(g2)
    -     ;
    -}
    -
    -
    -void draw() {
    -  background(0);
    -}
    -
    -
    -void controlEvent(ControlEvent theEvent) {
    -  if(theEvent.isGroup()) {
    -    println("got an event from group "
    -            +theEvent.getGroup().getName()
    -            +", isOpen? "+theEvent.getGroup().isOpen()
    -            );
    -            
    -  } else if (theEvent.isController()){
    -    println("got something from a controller "
    -            +theEvent.getController().getName()
    -            );
    -  }
    -}
    -
    -
    -void keyPressed() {
    -  if(key==' ') {
    -    if(cp5.getGroup("g1")!=null) {
    -      cp5.getGroup("g1").remove();
    -    }
    -  }
    -}
    -
    -
    -
    -
    -/*
    -a list of all methods available for the Group Controller
    -use ControlP5.printPublicMethodsFor(Group.class);
    -to print the following list into the console.
    -
    -You can find further details about class Group in the javadoc.
    -
    -Format:
    -ClassName : returnType methodName(parameter type)
    -
    -
    -controlP5.ControlGroup : Group activateEvent(boolean) 
    -controlP5.ControlGroup : Group addListener(ControlListener) 
    -controlP5.ControlGroup : Group hideBar() 
    -controlP5.ControlGroup : Group removeListener(ControlListener) 
    -controlP5.ControlGroup : Group setBackgroundColor(int) 
    -controlP5.ControlGroup : Group setBackgroundHeight(int) 
    -controlP5.ControlGroup : Group setBarHeight(int) 
    -controlP5.ControlGroup : Group showBar() 
    -controlP5.ControlGroup : Group updateInternalEvents(PApplet) 
    -controlP5.ControlGroup : String getInfo() 
    -controlP5.ControlGroup : String toString() 
    -controlP5.ControlGroup : boolean isBarVisible() 
    -controlP5.ControlGroup : int getBackgroundHeight() 
    -controlP5.ControlGroup : int getBarHeight() 
    -controlP5.ControlGroup : int listenerSize() 
    -controlP5.ControllerGroup : CColor getColor() 
    -controlP5.ControllerGroup : ControlWindow getWindow() 
    -controlP5.ControllerGroup : ControlWindowCanvas addCanvas(ControlWindowCanvas) 
    -controlP5.ControllerGroup : Controller getController(String) 
    -controlP5.ControllerGroup : ControllerProperty getProperty(String) 
    -controlP5.ControllerGroup : ControllerProperty getProperty(String, String) 
    -controlP5.ControllerGroup : Group add(ControllerInterface) 
    -controlP5.ControllerGroup : Group bringToFront() 
    -controlP5.ControllerGroup : Group bringToFront(ControllerInterface) 
    -controlP5.ControllerGroup : Group close() 
    -controlP5.ControllerGroup : Group disableCollapse() 
    -controlP5.ControllerGroup : Group enableCollapse() 
    -controlP5.ControllerGroup : Group hide() 
    -controlP5.ControllerGroup : Group moveTo(ControlWindow) 
    -controlP5.ControllerGroup : Group moveTo(PApplet) 
    -controlP5.ControllerGroup : Group open() 
    -controlP5.ControllerGroup : Group registerProperty(String) 
    -controlP5.ControllerGroup : Group registerProperty(String, String) 
    -controlP5.ControllerGroup : Group remove(CDrawable) 
    -controlP5.ControllerGroup : Group remove(ControllerInterface) 
    -controlP5.ControllerGroup : Group removeCanvas(ControlWindowCanvas) 
    -controlP5.ControllerGroup : Group removeProperty(String) 
    -controlP5.ControllerGroup : Group removeProperty(String, String) 
    -controlP5.ControllerGroup : Group setAddress(String) 
    -controlP5.ControllerGroup : Group setArrayValue(float[]) 
    -controlP5.ControllerGroup : Group setColor(CColor) 
    -controlP5.ControllerGroup : Group setColorActive(int) 
    -controlP5.ControllerGroup : Group setColorBackground(int) 
    -controlP5.ControllerGroup : Group setColorForeground(int) 
    -controlP5.ControllerGroup : Group setColorLabel(int) 
    -controlP5.ControllerGroup : Group setColorValue(int) 
    -controlP5.ControllerGroup : Group setHeight(int) 
    -controlP5.ControllerGroup : Group setId(int) 
    -controlP5.ControllerGroup : Group setLabel(String) 
    -controlP5.ControllerGroup : Group setMouseOver(boolean) 
    -controlP5.ControllerGroup : Group setMoveable(boolean) 
    -controlP5.ControllerGroup : Group setOpen(boolean) 
    -controlP5.ControllerGroup : Group setPosition(PVector) 
    -controlP5.ControllerGroup : Group setPosition(float, float) 
    -controlP5.ControllerGroup : Group setStringValue(String) 
    -controlP5.ControllerGroup : Group setUpdate(boolean) 
    -controlP5.ControllerGroup : Group setValue(float) 
    -controlP5.ControllerGroup : Group setVisible(boolean) 
    -controlP5.ControllerGroup : Group setWidth(int) 
    -controlP5.ControllerGroup : Group show() 
    -controlP5.ControllerGroup : Group update() 
    -controlP5.ControllerGroup : Group updateAbsolutePosition() 
    -controlP5.ControllerGroup : Label getCaptionLabel() 
    -controlP5.ControllerGroup : Label getValueLabel() 
    -controlP5.ControllerGroup : PVector getPosition() 
    -controlP5.ControllerGroup : String getAddress() 
    -controlP5.ControllerGroup : String getInfo() 
    -controlP5.ControllerGroup : String getName() 
    -controlP5.ControllerGroup : String getStringValue() 
    -controlP5.ControllerGroup : String toString() 
    -controlP5.ControllerGroup : Tab getTab() 
    -controlP5.ControllerGroup : boolean isCollapse() 
    -controlP5.ControllerGroup : boolean isMouseOver() 
    -controlP5.ControllerGroup : boolean isMoveable() 
    -controlP5.ControllerGroup : boolean isOpen() 
    -controlP5.ControllerGroup : boolean isUpdate() 
    -controlP5.ControllerGroup : boolean isVisible() 
    -controlP5.ControllerGroup : boolean setMousePressed(boolean) 
    -controlP5.ControllerGroup : float getValue() 
    -controlP5.ControllerGroup : float[] getArrayValue() 
    -controlP5.ControllerGroup : int getHeight() 
    -controlP5.ControllerGroup : int getId() 
    -controlP5.ControllerGroup : int getWidth() 
    -controlP5.ControllerGroup : void remove() 
    -java.lang.Object : String toString() 
    -java.lang.Object : boolean equals(Object) 
    -
    -
    -*/
    -
    -
    -
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ControlGroup

        -
        public ControlGroup(ControlP5 theControlP5,
        -            ControllerGroup<?> theParent,
        -            java.lang.String theName,
        -            int theX,
        -            int theY,
        -            int theW,
        -            int theH)
        -
      • -
      - - - -
        -
      • -

        ControlGroup

        -
        public ControlGroup(ControlP5 theControlP5,
        -            java.lang.String theName)
        -
        Convenience constructor to extend ControlGroup.
        -
        Parameters:
        theControlP5 -
        theName -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        activateEvent

        -
        public T activateEvent(boolean theFlag)
        -
        activates or deactivates the Event status of a ControlGroup.
        -
        Parameters:
        theFlag - boolean
        See Also:
        Tab
        -
      • -
      - - - - - - - - - - - -
        -
      • -

        getBackgroundHeight

        -
        public int getBackgroundHeight()
        -
        get the height of the controlGroup's background.
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        getBarHeight

        -
        public int getBarHeight()
        -
        Returns:
        int
        -
      • -
      - - - - - - - - - - - -
        -
      • -

        mousePressed

        -
        public void mousePressed()
        -
      • -
      - - - - - - - -
        -
      • -

        setBackgroundColor

        -
        public T setBackgroundColor(int theColor)
        -
        set the background color of a controlGroup.
        -
        Parameters:
        theColor -
        -
        Returns:
        ControlGroup
        -
      • -
      - - - -
        -
      • -

        setBackgroundHeight

        -
        public T setBackgroundHeight(int theHeight)
        -
        set the height of the controlGroup's background.
        -
        Parameters:
        theHeight -
        -
        Returns:
        ControlGroup
        -
      • -
      - - - -
        -
      • -

        setBarHeight

        -
        public T setBarHeight(int theHeight)
        -
        set the height of the top bar (used to open/close and move a controlGroup).
        -
        Parameters:
        theHeight -
        -
        Returns:
        ControlGroup
        -
      • -
      - - - -
        -
      • -

        setSize

        -
        public T setSize(int theWidth,
        -        int theHeight)
        -
        -
        Overrides:
        -
        setSize in class ControllerGroup<T>
        -
        -
      • -
      - - - - - - - - - - - - -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControlKey.html b/reference/controlP5/ControlKey.html deleted file mode 100644 index 20438cd..0000000 --- a/reference/controlP5/ControlKey.html +++ /dev/null @@ -1,201 +0,0 @@ - - - - - -ControlKey (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Interface ControlKey

-
-
-
-
    -
  • -
    -
    -
    public interface ControlKey
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      voidkeyEvent() 
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        keyEvent

        -
        void keyEvent()
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControlListener.html b/reference/controlP5/ControlListener.html deleted file mode 100644 index c21195c..0000000 --- a/reference/controlP5/ControlListener.html +++ /dev/null @@ -1,269 +0,0 @@ - - - - - -ControlListener (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Interface ControlListener

-
-
-
-
    -
  • -
    -
    All Known Implementing Classes:
    -
    Accordion, CheckBox, ColorPicker, ControlGroup, ControllerGroup, DropdownList, Group, ListBox, MultiList, Radio, RadioButton, ScrollableList, Tab, Textarea
    -
    -
    -
    -
    public interface ControlListener
    -
    ControlListener is an interface that can be implemented by a custom class to be notified when - controller values change. To add a ControlListener to a controller use Controller.addListner()
    -
    See Also:
    Controller.addListener(ControlListener), -CallbackListener
    -
    +Example
    /**
    - * ControlP5 Listener.
    - * the ControlListener interface can be used to implement a custom 
    - * ControlListener which listens for incoming ControlEvent from specific
    - * controller(s). MyControlListener in the example below listens to
    - * ControlEvents coming in from controller 'mySlider'.
    - *
    - * by andreas schlegel, 2012
    - */
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -MyControlListener myListener;
    -
    -void setup() {
    -  size(700,400);
    -
    -
    -  cp5 = new ControlP5(this);
    -  cp5.setColor(ControlP5.THEME_RED);  
    -  
    -  cp5.addSlider("mySlider")
    -     .setRange(100,200)
    -     .setValue(140)
    -     .setPosition(200,200)
    -     .setSize(200,20);
    -  
    -  myListener = new MyControlListener();
    -  
    -  cp5.getController("mySlider").addListener(myListener);
    -}
    -
    -void draw() {
    -  background(myListener.col);  
    -}
    -
    -
    -class MyControlListener implements ControlListener {
    -  int col;
    -  public void controlEvent(ControlEvent theEvent) {
    -    println("i got an event from mySlider, " +
    -            "changing background color to "+
    -            theEvent.getController().getValue());
    -    col = (int)theEvent.getController().getValue();
    -  }
    -
    -}
    -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      voidcontrolEvent(ControlEvent theEvent) -
      controlEvent is called by controlP5's ControlBroadcaster to inform available listeners about - value changes.
      -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        controlEvent

        -
        void controlEvent(ControlEvent theEvent)
        -
        controlEvent is called by controlP5's ControlBroadcaster to inform available listeners about - value changes. Use the CallbackListener to get informed when actions such as pressed, - release, drag, etc are performed.
        -
        Parameters:
        theEvent - ControlEvent
        See Also:
        CallbackListener, -CallbackEvent
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControlP5.html b/reference/controlP5/ControlP5.html deleted file mode 100644 index d936c08..0000000 --- a/reference/controlP5/ControlP5.html +++ /dev/null @@ -1,2326 +0,0 @@ - - - - - -ControlP5 (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ControlP5

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    ControlP5Constants
    -
    -
    -
    -
    public class ControlP5
    -extends ControlP5Base
    -

    - controlP5 is a processing and java library for creating - simple control GUIs. The ControlP5 class, the core of - controlP5. -

    -

    - All addController-Methods are located inside the - ControlP5Base class. -

    -
    See Also:
    ControlP5Base
    -
    +Example
    /**
    - * ControlP5 Basics
    - *
    - * The following example demonstrates the basic use of controlP5.
    - * After initializing controlP5 you can add controllers to controlP5. - * Here we use three numberboxes, one slider and one textfield. - * The numberbox with name numberboxC will trigger function numberboxC() - * in the example below. Whenever controlP5 detects a function in your - * sketch that corresponds to the name of a controller, it will forward - * an event to that function. Any event triggered by a controller - * will be forwarded to function controlEvent in your sketch. - * related examples ControlP5numberbox, ControlP5slider, ControlP5textfield - * - * by Andreas Schlegel, 2011 - * www.sojamo.de/libraries/controlp5 - * - */ - - -import controlP5.*; - -ControlP5 cp5; -public int myColorRect = 200; -public int myColorBackground = 100; - -void setup() { - size(400, 400); - noStroke(); - - cp5 = new ControlP5(this); - - // create a slider - // parameters: - // name, minValue, maxValue, defaultValue, x, y, width, height - cp5.addSlider("sliderA", 100, 200, 100, 100, 260, 100, 14); - - - // create 3 numberboxes and assign an id for each - cp5.addNumberbox("numberboxA", myColorRect, 100, 140, 100, 14).setId(1); - cp5.addNumberbox("numberboxB", myColorBackground, 100, 180, 100, 14).setId(2); - cp5.addNumberbox("numberboxC", 0, 100, 220, 100, 14).setId(3); - - - // create a texfield - cp5.addTextfield("textA", 100, 290, 100, 20); - - // change individual settings for a controller - cp5.getController("numberboxA").setMax(255); - cp5.getController("numberboxA").setMin(0); -} - -void draw() { - background(myColorBackground); - fill(myColorRect); - rect(0, 0, width, 100); -} - - -// events from controller numberboxC are received here -public void numberboxC(int theValue) { - println("### got an event from numberboxC : "+theValue); -} - - -// an event from slider sliderA will change the value of textfield textA here -public void sliderA(int theValue) { - Textfield txt = ((Textfield)cp5.getController("textA")); - txt.setValue(""+theValue); -} - - -// for every change (a textfield event confirmed with a return) in textfield textA, -// function textA will be invoked -public void textA(String theValue) { - println("### got an event from textA : "+theValue); -} - - -// function controlEvent will be invoked with every value change -// in any registered controller -public void controlEvent(ControlEvent theEvent) { - println("got a control event from controller with id "+theEvent.getId()); - switch(theEvent.getId()) { - case(1): // numberboxA is registered with id 1 - myColorRect = (int)(theEvent.getController().getValue()); - break; - case(2): // numberboxB is registered with id 2 - myColorBackground = (int)(theEvent.getController().getValue()); - break; - } -} - -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Field Detail

      - - - -
        -
      • -

        blockDraw

        -
        @Deprecated
        -public boolean blockDraw
        -
        Deprecated. 
        -
      • -
      - - - - - - - -
        -
      • -

        DEBUG

        -
        public static boolean DEBUG
        -
        use this static variable to turn DEBUG on or off.
        -
      • -
      - - - -
        -
      • -

        isApplet

        -
        public static boolean isApplet
        -
      • -
      - - - -
        -
      • -

        logger

        -
        public static final java.util.logging.Logger logger
        -
      • -
      - - - -
        -
      • -

        papplet

        -
        public processing.core.PApplet papplet
        -
      • -
      - - - - -
    • -
    - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ControlP5

        -
        public ControlP5(processing.core.PApplet theParent)
        -
        Create a new instance of controlP5.
        -
        Parameters:
        theParent - PApplet
        -
      • -
      - - - -
        -
      • -

        ControlP5

        -
        public ControlP5(processing.core.PApplet theParent,
        -         ControlFont theControlFont)
        -
      • -
      - - - -
        -
      • -

        ControlP5

        -
        public ControlP5(processing.core.PApplet theParent,
        -         processing.core.PFont thePFont)
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - - - - - - - - - - - - - -
        -
      • -

        addCanvas

        -
        public ControlP5 addCanvas(Canvas theCanvas)
        -
        adds a Canvas to the default sketch window.
        -
        See Also:
        Canvas
        -
      • -
      - - - -
        -
      • -

        addControlsFor

        -
        public void addControlsFor(java.lang.Object theObject)
        -
        TODO
        -
      • -
      - - - - - - - -
        -
      • -

        addPositionTo

        -
        public void addPositionTo(int theX,
        -                 int theY,
        -                 ControllerInterface<?>... theControllers)
        -
      • -
      - - - -
        -
      • -

        addPositionTo

        -
        public void addPositionTo(int theX,
        -                 int theY,
        -                 java.util.List<ControllerInterface<?>> theControllers)
        -
      • -
      - - - -
        -
      • -

        b

        -
        public static boolean b(java.lang.Object o)
        -
      • -
      - - - -
        -
      • -

        begin

        -
        public ControllerGroup<?> begin()
        -
        cp5.begin() and cp5.end() are mechanisms to - auto-layout controllers, see the ControlP5beginEnd - example.
        -
      • -
      - - - - - - - - - - - - - - - - - - - - - - - -
        -
      • -

        d

        -
        public static double d(java.lang.Object o)
        -
      • -
      - - - -
        -
      • -

        disableShortcuts

        -
        public void disableShortcuts()
        -
        disables shortcuts such as alt-h for hiding/showing - controllers
        -
      • -
      - - - -
        -
      • -

        dispose

        -
        public void dispose()
        -
        disposes and clears all controlP5 elements. When - running in applet mode, opening new tabs or switching - to another tab causes the applet to call dispose(). - therefore dispose() is disabled when running ing - applet mode. TODO implement better dispose handling - for applets.
        -
      • -
      - - - -
        -
      • -

        draw

        -
        public void draw()
        -
        call draw() from your program when autoDraw is - disabled.
        -
      • -
      - - - -
        -
      • -

        enableShortcuts

        -
        public void enableShortcuts()
        -
        enables shortcuts.
        -
      • -
      - - - -
        -
      • -

        end

        -
        public ControllerGroup<?> end()
        -
        cp5.begin() and cp5.end() are mechanisms to - auto-layout controllers, see the ControlP5beginEnd - example.
        -
      • -
      - - - - - - - -
        -
      • -

        f

        -
        public static float f(java.lang.Object o)
        -
      • -
      - - - -
        -
      • -

        get

        -
        public <C> C get(java.lang.Class<C> theClass,
        -        java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        get

        -
        public ControllerInterface<?> get(java.lang.Object theObject,
        -                         java.lang.String theName)
        -
      • -
      - - - - - - - -
        -
      • -

        getAll

        -
        public java.util.List<ControllerInterface<?>> getAll()
        -
        Returns a List of all controllers currently - registered.
        -
        Returns:
        List>
        -
      • -
      - - - -
        -
      • -

        getAll

        -
        public <T> java.util.List<T> getAll(java.lang.Class<T> theClass)
        -
        Returns a list of controllers or groups of a - particular type. The following example will return a - list of registered Bangs only:
        -
        - List list = controlP5.getAll(Bang.class);
        - println(list);
        - for(Bang b:list) {
        -   b.setColorForeground(color(255,255,0));
        - }
        - 
        Here the foreground color of all Bangs - is changed to yellow.
        -
        Type Parameters:
        T -
        Parameters:
        theClass - A class that extends - ControllerInterface, which applies to all - Controllers and ControllerGroups
        -
        Returns:
        List
        -
      • -
      - - - -
        -
      • -

        getColor

        -
        public static CColor getColor()
        -
      • -
      - - - - - - - -
        -
      • -

        getController

        -
        public Controller<?> getController(java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        getControllerList

        -
        @Deprecated
        -public ControllerInterface<?>[] getControllerList()
        -
        Deprecated. 
        -
        returns a list of registered Controllers. Controllers - with duplicated reference names will be ignored, only - the latest of such Controllers will be included in - the list. - - use getAll() instead
        -
        Returns:
        ControllerInterface[]
        See Also:
        getAll(), -getAll(Class)
        -
      • -
      - - - - - - - -
        -
      • -

        getGroup

        -
        public ControllerGroup<?> getGroup(java.lang.String theGroupName)
        -
      • -
      - - - - - - - - - - - -
        -
      • -

        getMouseOverList

        -
        public java.util.List<ControllerInterface<?>> getMouseOverList()
        -
        convenience method to check if the mouse (or pointer) - is hovering over a specific controller. only applies - to the main window. To receive the mouseover - information for a ControlWindow use - getWindow(nameOfWindow).getMouseOverList();
        -
      • -
      - - - -
        -
      • -

        getPointer

        -
        public ControlWindow.Pointer getPointer()
        -
        convenience method to access the pointer of the main - control window.
        -
      • -
      - - - -
        -
      • -

        getTab

        -
        public Tab getTab(ControlWindow theWindow,
        -         java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        getTab

        -
        public Tab getTab(java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        getTooltip

        -
        public Tooltip getTooltip()
        -
      • -
      - - - -
        -
      • -

        getValue

        -
        public float getValue(java.lang.String theIndex)
        -
      • -
      - - - -
        -
      • -

        getWindow

        -
        public ControlWindow getWindow()
        -
        convenience method to access the main window - (ControlWindow class).
        -
      • -
      - - - -
        -
      • -

        getWindow

        -
        public ControlWindow getWindow(processing.core.PApplet theApplet)
        -
      • -
      - - - -
        -
      • -

        hide

        -
        public void hide()
        -
        hide all controllers and tabs inside your sketch - window.
        -
        See Also:
        show(), -isVisible()
        -
      • -
      - - - -
        -
      • -

        i

        -
        public static int i(java.lang.Object o)
        -
      • -
      - - - -
        -
      • -

        i

        -
        public static int i(java.lang.String o)
        -
      • -
      - - - -
        -
      • -

        invoke

        -
        public static java.lang.Object invoke(java.lang.Object theObject,
        -                      java.lang.String theMember,
        -                      java.lang.Object... theParams)
        -
      • -
      - - - -
        -
      • -

        isAutoDraw

        -
        public boolean isAutoDraw()
        -
        check if the autoDraw function for the main window is - enabled(true) or disabled(false).
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        isMouseOver

        -
        public boolean isMouseOver()
        -
        convenience method to check if the mouse (or pointer) - is hovering over any controller. only applies to the - main window. To receive the mouseover information for - a ControlWindow use - getWindow(nameOfWindow).isMouseOver();
        -
      • -
      - - - -
        -
      • -

        isMouseOver

        -
        public boolean isMouseOver(ControllerInterface<?> theController)
        -
        convenience method to check if the mouse (or pointer) - is hovering over a specific controller. only applies - to the main window. To receive the mouseover - information for a ControlWindow use - getWindow(nameOfWindow - ).isMouseOver(ControllerInterface);
        -
      • -
      - - - -
        -
      • -

        isMoveable

        -
        public boolean isMoveable()
        -
        Checks if controllers are generally moveable
        -
      • -
      - - - -
        -
      • -

        isNumeric

        -
        public static boolean isNumeric(java.lang.Object o)
        -
      • -
      - - - -
        -
      • -

        isNumeric

        -
        public static boolean isNumeric(java.lang.String str)
        -
      • -
      - - - -
        -
      • -

        isShortcuts

        -
        public boolean isShortcuts()
        -
      • -
      - - - -
        -
      • -

        isUpdate

        -
        public boolean isUpdate()
        -
        checks if automatic updates are enabled. By default - this is true.
        -
        Returns:
        See Also:
        update(), -setUpdate(boolean)
        -
      • -
      - - - -
        -
      • -

        isVisible

        -
        public boolean isVisible()
        -
        returns true or false according to the current - visibility flag.
        -
        See Also:
        show(), -hide()
        -
      • -
      - - - -
        -
      • -

        keyEvent

        -
        public void keyEvent(processing.event.KeyEvent theKeyEvent)
        -
      • -
      - - - -
        -
      • -

        l

        -
        public static long l(java.lang.Object o)
        -
      • -
      - - - -
        -
      • -

        loadLayout

        -
        public boolean loadLayout(java.lang.String theFilePath)
        -
        Parameters:
        theFilePath -
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        loadProperties

        -
        public boolean loadProperties()
        -
        Loads properties from a default properties file and - changes values of controllers accordingly.
        -
        Returns:
        See Also:
        ControllerProperties
        -
      • -
      - - - -
        -
      • -

        loadProperties

        -
        public boolean loadProperties(java.lang.String theFilePath)
        -
        Loads properties from a properties file and changes - the values of controllers accordingly, the filepath - is given by parameter theFilePath.
        -
        Parameters:
        theFilePath -
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        logger

        -
        public static java.util.logging.Logger logger()
        -
      • -
      - - - -
        -
      • -

        mouseEvent

        -
        public void mouseEvent(processing.event.MouseEvent theMouseEvent)
        -
      • -
      - - - -
        -
      • -

        move

        -
        public void move(java.lang.Object theObject,
        -        ControllerGroup<?> theGroup)
        -
      • -
      - - - -
        -
      • -

        moveControllersForObject

        -
        public void moveControllersForObject(java.lang.Object theObject,
        -                            ControllerGroup<?> theGroup)
        -
      • -
      - - - -
        -
      • -

        pre

        -
        public void pre()
        -
      • -
      - - - -
        -
      • -

        printControllerMap

        -
        public void printControllerMap()
        -
      • -
      - - - - - - - -
        -
      • -

        register

        -
        public ControlP5 register(java.lang.Object theObject,
        -                 java.lang.String theIndex,
        -                 ControllerInterface<?> theController)
        -
        registers a Controller with ControlP5, a Controller - should/must be registered with a unique name. If not, - accessing Controllers by name is not guaranteed. the - rule here is last come last serve, existing - Controllers with the same name will be overridden.
        -
        Parameters:
        theController - ControllerInterface
        -
        Returns:
        ControlP5
        -
      • -
      - - - -
        -
      • -

        remove

        -
        public void remove(java.lang.String theName)
        -
        removes a controlP5 element such as a controller, - group, or tab by name.
        -
        Parameters:
        theString - String
        -
      • -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        -
      • -

        s

        -
        public static java.lang.String s(java.lang.Object o)
        -
      • -
      - - - -
        -
      • -

        s

        -
        public static java.lang.String s(java.lang.Object o,
        -                 java.lang.String theDefault)
        -
      • -
      - - - -
        -
      • -

        s

        -
        public static java.lang.String s(java.lang.String o)
        -
      • -
      - - - -
        -
      • -

        saveLayout

        -
        public void saveLayout(java.lang.String theFilePath)
        -
        Parameters:
        theFilePath -
        -
      • -
      - - - -
        -
      • -

        saveProperties

        -
        public boolean saveProperties()
        -
        Saves the current values of controllers into a - default properties file
        -
        See Also:
        ControllerProperties
        -
      • -
      - - - -
        -
      • -

        saveProperties

        -
        public boolean saveProperties(java.lang.String theFilePath)
        -
        Saves the current values of controllers into a file, - the filepath is given by parameter theFilePath.
        -
        See Also:
        ControllerProperties
        -
      • -
      - - - -
        -
      • -

        saveProperties

        -
        public boolean saveProperties(java.lang.String theFilePath,
        -                     java.lang.String... theSets)
        -
      • -
      - - - -
        -
      • -

        setAutoDraw

        -
        public void setAutoDraw(boolean theFlag)
        -
        by default controlP5 draws any controller on top of - any drawing done in the draw() function (this doesnt - apply to P3D where controlP5.draw() has to be called - manually in the sketch's draw() function ). to turn - off the auto drawing of controlP5, use - controlP5.setAutoDraw(false). now you can call - controlP5.draw() any time whenever controllers should - be drawn into the sketch.
        -
        Parameters:
        theFlag - boolean
        -
      • -
      - - - -
        -
      • -

        setAutoInitialization

        -
        public void setAutoInitialization(boolean theFlag)
        -
        autoInitialization can be very handy when it comes to - initializing values, e.g. you load a set of - controllers, then the values that are attached to the - controllers will be reset to its saved state. to turn - of auto intialization, call - setAutoInitialization(false) right after initializing - controlP5 and before creating any controller.
        -
        Parameters:
        theFlag - boolean
        -
      • -
      - - - -
        -
      • -

        setBackground

        -
        public ControlP5 setBackground(int theColor)
        -
      • -
      - - - -
        -
      • -

        setBroadcast

        -
        public ControlP5 setBroadcast(boolean theValue)
        -
      • -
      - - - - - - - -
        -
      • -

        setColorActive

        -
        public ControlP5 setColorActive(int theColor)
        -
        sets the active state color of tabs and controllers, - this cascades down to all known controllers.
        -
      • -
      - - - -
        -
      • -

        setColorBackground

        -
        public ControlP5 setColorBackground(int theColor)
        -
        sets the background color of tabs and controllers, - this cascades down to all known controllers.
        -
      • -
      - - - -
        -
      • -

        setColorCaptionLabel

        -
        public ControlP5 setColorCaptionLabel(int theColor)
        -
        sets the label color of tabs and controllers, this - cascades down to all known controllers.
        -
      • -
      - - - -
        -
      • -

        setColorForeground

        -
        public ControlP5 setColorForeground(int theColor)
        -
        sets the foreground color of tabs and controllers, - this cascades down to all known controllers.
        -
      • -
      - - - -
        -
      • -

        setColorValueLabel

        -
        public ControlP5 setColorValueLabel(int theColor)
        -
        sets the value color of controllers, this cascades - down to all known controllers.
        -
      • -
      - - - -
        -
      • -

        setFont

        -
        public boolean setFont(ControlFont theControlFont)
        -
      • -
      - - - -
        -
      • -

        setFont

        -
        @Deprecated
        -public boolean setFont(int theBitFontIndex)
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        setFont

        -
        public boolean setFont(processing.core.PFont thePFont)
        -
      • -
      - - - -
        -
      • -

        setFont

        -
        public boolean setFont(processing.core.PFont thePFont,
        -              int theFontSize)
        -
      • -
      - - - -
        -
      • -

        setGraphics

        -
        public ControlP5 setGraphics(processing.core.PApplet theApplet,
        -                    int theX,
        -                    int theY)
        -
      • -
      - - - -
        -
      • -

        setGraphics

        -
        public ControlP5 setGraphics(processing.core.PGraphics theGraphics,
        -                    int theX,
        -                    int theY)
        -
      • -
      - - - -
        -
      • -

        setMouseWheelRotation

        -
        public void setMouseWheelRotation(int theRotation)
        -
      • -
      - - - -
        -
      • -

        setMoveable

        -
        public ControlP5 setMoveable(boolean theFlag)
        -
        Enables/disables Controllers to be moved around when - ALT-key is down and mouse is dragged. Other key - events are still available like ALT-h to hide and - show the controllers To disable all key events, use - disableKeys()
        -
      • -
      - - - -
        -
      • -

        setTabEventsActive

        -
        public void setTabEventsActive(boolean theFlag)
        -
        By default event originating from tabs are disabled, - use setTabEventsActive(true) to receive controlEvents - when tabs are clicked.
        -
        Parameters:
        theFlag -
        -
      • -
      - - - -
        -
      • -

        setTooltip

        -
        public void setTooltip(Tooltip theTooltip)
        -
      • -
      - - - -
        -
      • -

        setUpdate

        -
        public void setUpdate(boolean theFlag)
        -
        changes the update behavior according to parameter - theFlag
        -
        Parameters:
        theFlag -
        See Also:
        update(), -isUpdate()
        -
      • -
      - - - -
        -
      • -

        setVisible

        -
        public ControlP5 setVisible(boolean b)
        -
      • -
      - - - -
        -
      • -

        show

        -
        public void show()
        -
        shows all controllers and tabs in your sketch.
        -
        See Also:
        isVisible(), -hide()
        -
      • -
      - - - -
        -
      • -

        toList

        -
        public static java.util.List toList(java.lang.Object o)
        -
      • -
      - - - -
        -
      • -

        toMap

        -
        public static java.util.Map toMap(java.lang.Object o)
        -
      • -
      - - - -
        -
      • -

        update

        -
        public void update()
        -
        forces all controllers to update.
        -
        See Also:
        isUpdate(), -controlP5.ControlP5#setUpdate()
        -
      • -
      - - - -
        -
      • -

        version

        -
        public java.lang.String version()
        -
        Returns the current version of controlP5
        -
        Returns:
        String
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControlP5Base.html b/reference/controlP5/ControlP5Base.html deleted file mode 100644 index 3c8a79f..0000000 --- a/reference/controlP5/ControlP5Base.html +++ /dev/null @@ -1,1502 +0,0 @@ - - - - - -ControlP5Base (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ControlP5Base

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    ControlP5Constants
    -
    -
    -
    Direct Known Subclasses:
    -
    ControlP5
    -
    -
    -
    -
    public class ControlP5Base
    -extends ControlP5Legacy
    -implements ControlP5Constants
    -
    The ControlP5Base supports the ControlP5 class and - implements all adder methods to add controllers to - controlP5.
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ControlP5Base

        -
        public ControlP5Base()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        addAccordion

        -
        public Accordion addAccordion(java.lang.Object theObject,
        -                     java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addAccordion

        -
        public Accordion addAccordion(java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addBang

        -
        public Bang addBang(java.lang.Object theObject,
        -           java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addBang

        -
        public Bang addBang(java.lang.String theName)
        -
        Triggers an event without passing a value.
        -
      • -
      - - - -
        -
      • -

        addButton

        -
        public Button addButton(java.lang.Object theObject,
        -               java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addButton

        -
        public Button addButton(java.lang.String theName)
        -
        Triggers an event and passing a value.
        -
      • -
      - - - -
        -
      • -

        addChart

        -
        public Chart addChart(java.lang.String theName)
        -
        adds chart support to display float array based data.
        -
      • -
      - - - -
        -
      • -

        addCheckBox

        -
        public CheckBox addCheckBox(java.lang.Object theObject,
        -                   java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addCheckBox

        -
        public CheckBox addCheckBox(java.lang.String theName)
        -
        Use a checkbox for single choice options.
        -
      • -
      - - - -
        -
      • -

        addColorPicker

        -
        public ColorPicker addColorPicker(java.lang.Object theObject,
        -                         java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addColorPicker

        -
        public ColorPicker addColorPicker(java.lang.String theName)
        -
        adds a simple RGBA colorpicker.
        -
      • -
      - - - -
        -
      • -

        addColorWheel

        -
        public ColorWheel addColorWheel(java.lang.Object theObject,
        -                       java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addColorWheel

        -
        public ColorWheel addColorWheel(java.lang.String theName)
        -
      • -
      - - - - - - - -
        -
      • -

        addControllersFor

        -
        public ControlP5Base addControllersFor(processing.core.PApplet theApplet)
        -
      • -
      - - - -
        -
      • -

        addControllersFor

        -
        public ControlP5Base addControllersFor(java.lang.String theAddressSpace,
        -                              java.lang.Object t)
        -
        Adds controllers for a specific object using - annotations. -

        - 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. -

        -
      • -
      - - - -
        -
      • -

        addFrameRate

        -
        public FrameRate addFrameRate()
        -
        returns the current framerate of the running sketch.
        -
      • -
      - - - -
        -
      • -

        addGroup

        -
        public Group addGroup(java.lang.Object theObject,
        -             java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addGroup

        -
        public Group addGroup(java.lang.String theName)
        -
        A controller group can be used to group controllers - for a better organization of single controllers.
        -
      • -
      - - - -
        -
      • -

        addKnob

        -
        public Knob addKnob(java.lang.Object theObject,
        -           java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addKnob

        -
        public Knob addKnob(java.lang.String theName)
        -
        Knobs can use limited and endless revolutions, custom - angles and starting points. There are 2 control areas - for a knob, an area closer to the edge allows - 'click-and-adjust' control, a click and drag action - at the inside allows to gradually change the value of - a know when dragged. A knob can be controller by - mouse click, drag or mouse-wheel.
        -
      • -
      - - - -
        -
      • -

        addMatrix

        -
        public Matrix addMatrix(java.lang.Object theObject,
        -               java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addMatrix

        -
        public Matrix addMatrix(java.lang.String theName)
        -
        Matrix is a 2-D matrix controller using toggle - controllers in a rows and a columns setup. useful for - software drum machines.
        -
      • -
      - - - -
        -
      • -

        addMultiList

        -
        public MultiList addMultiList(java.lang.Object theObject,
        -                     java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addMultiList

        -
        public MultiList addMultiList(java.lang.String theName)
        -
        Multilist is a tree like menu.
        -
      • -
      - - - -
        -
      • -

        addNumberbox

        -
        public Numberbox addNumberbox(java.lang.Object theObject,
        -                     java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addNumberbox

        -
        public Numberbox addNumberbox(java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addRadioButton

        -
        public RadioButton addRadioButton(java.lang.Object theObject,
        -                         java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addRadioButton

        -
        public RadioButton addRadioButton(java.lang.String theName)
        -
        Use radio buttons for multiple choice options.
        -
      • -
      - - - -
        -
      • -

        addRange

        -
        public Range addRange(java.lang.Object theObject,
        -             java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addRange

        -
        public Range addRange(java.lang.String theName)
        -
        A range controller, a slider that allows control on - both ends of the slider.
        -
      • -
      - - - -
        -
      • -

        addScrollableList

        -
        public ScrollableList addScrollableList(java.lang.Object theObject,
        -                               java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addScrollableList

        -
        public 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).
        -
      • -
      - - - -
        -
      • -

        addSlider

        -
        public Slider addSlider(java.lang.Object theObject,
        -               java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addSlider

        -
        public Slider addSlider(java.lang.String theName)
        -
        Adds a default slider with a default width of 100 and - height of 10. the default value range is from 0-100. - - By default it will be added to the default tab of the - main window. Sliders can be arranged vertically and - horizontally depending on their width and height. The - look of a sliders control can either be a bar or a - handle. you can add tickmarks to a slider or use the - default free-control setting. A slider can be - controller by mouse click, drag or mouse-wheel.
        -
      • -
      - - - -
        -
      • -

        addSlider2D

        -
        public Slider2D addSlider2D(java.lang.Object theObject,
        -                   java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addSlider2D

        -
        public Slider2D addSlider2D(java.lang.String theName)
        -
        Adds a 2D slider to controlP5. A 2D slider is a 2D - area with 1 cursor returning its xy coordinates.
        -
      • -
      - - - -
        -
      • -

        addTab

        -
        public Tab addTab(java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addTextarea

        -
        public 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.
        -
      • -
      - - - -
        -
      • -

        addTextfield

        -
        public Textfield addTextfield(java.lang.Object theObject,
        -                     java.lang.String theIndex)
        -
      • -
      - - - -
        -
      • -

        addTextfield

        -
        public Textfield addTextfield(java.lang.String theIndex)
        -
        A Textfield allows single line text input. If text - goes beyond the edges of a Textfield box, the text - will automatically scroll. Use Arrow keys to navigate - back and forth.
        -
      • -
      - - - -
        -
      • -

        addTextlabel

        -
        public Textlabel addTextlabel(java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addToggle

        -
        public Toggle addToggle(java.lang.Object theObject,
        -               java.lang.String theName)
        -
        Toggles a boolean field or passes a value when - triggered.
        -
      • -
      - - - -
        -
      • -

        addToggle

        -
        public Toggle addToggle(java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        getDefaultTab

        -
        public Tab getDefaultTab()
        -
      • -
      - - - -
        -
      • -

        getKey

        -
        public char getKey()
        -
      • -
      - - - -
        -
      • -

        getKeyCode

        -
        public int getKeyCode()
        -
      • -
      - - - -
        -
      • -

        getLayout

        -
        public controlP5.ControllerLayout getLayout()
        -
      • -
      - - - -
        -
      • -

        getObjectForController

        -
        public java.lang.Object getObjectForController(ControllerInterface theController)
        -
      • -
      - - - - - - - -
        -
      • -

        getPublicMethodsFor

        -
        public static java.util.Set<java.lang.String> getPublicMethodsFor(java.lang.Class<?> theClass)
        -
      • -
      - - - -
        -
      • -

        getPublicMethodsFor

        -
        public static java.util.Set<java.lang.String> getPublicMethodsFor(java.lang.Class<?> theClass,
        -                                                  boolean theFlag)
        -
      • -
      - - - -
        -
      • -

        getPublicMethodsFor

        -
        public static java.util.Set<java.lang.String> getPublicMethodsFor(java.lang.Class<?> theClass,
        -                                                  boolean isSuperclass,
        -                                                  java.lang.String... thePattern)
        -
      • -
      - - - -
        -
      • -

        getPublicMethodsFor

        -
        public static java.util.Set<java.lang.String> getPublicMethodsFor(java.lang.Class<?> theClass,
        -                                                  java.lang.String... thePattern)
        -
      • -
      - - - -
        -
      • -

        hide

        -
        public ControlP5Base hide(java.lang.Object theObject)
        -
      • -
      - - - -
        -
      • -

        isAltDown

        -
        public boolean isAltDown()
        -
      • -
      - - - -
        -
      • -

        isControlDown

        -
        public boolean isControlDown()
        -
      • -
      - - - -
        -
      • -

        isMetaDown

        -
        public boolean isMetaDown()
        -
      • -
      - - - -
        -
      • -

        isShiftDown

        -
        public boolean isShiftDown()
        -
      • -
      - - - -
        -
      • -

        listenTo

        -
        public ControlP5Base listenTo(java.lang.String theFieldName,
        -                     java.lang.Object theObject)
        -
      • -
      - - - - - - - - - - - -
        -
      • -

        printPublicMethodsFor

        -
        public static void printPublicMethodsFor(java.lang.Class<?> theClass)
        -
      • -
      - - - -
        -
      • -

        printPublicMethodsFor

        -
        public static void printPublicMethodsFor(java.lang.Class<?> theClass,
        -                         java.lang.String... thePattern)
        -
        prints a list of public methods of requested class - into the console. You can specify patterns that will - print methods found with only these particular - patterns in their name. -

        - printed Format: returnType methodName(parameter type)

        -
      • -
      - - - -
        -
      • -

        remove

        -
        public ControlP5Base remove(java.lang.Object theObject)
        -
        for internal use only. use Controller.remove() - instead.
        -
        Parameters:
        theObject -
        -
        Returns:
        -
      • -
      - - - - - - - - - - - -
        -
      • -

        removeKeysFor

        -
        public ControlP5 removeKeysFor(char... theChar)
        -
      • -
      - - - -
        -
      • -

        removeKeysFor

        -
        public ControlP5 removeKeysFor(int... theChar)
        -
      • -
      - - - - - - - -
        -
      • -

        setAutoAddDirection

        -
        public void setAutoAddDirection(int theDirection)
        -
      • -
      - - - -
        -
      • -

        setAutoSpacing

        -
        public void setAutoSpacing()
        -
      • -
      - - - -
        -
      • -

        setAutoSpacing

        -
        public void setAutoSpacing(float theX)
        -
      • -
      - - - -
        -
      • -

        setAutoSpacing

        -
        public void setAutoSpacing(float theX,
        -                  float theY)
        -
      • -
      - - - -
        -
      • -

        setAutoSpacing

        -
        public void setAutoSpacing(float theX,
        -                  float theY,
        -                  float theZ)
        -
      • -
      - - - -
        -
      • -

        setColor

        -
        public ControlP5Base setColor(CColor theColor,
        -                     java.lang.Object theObject)
        -
      • -
      - - - -
        -
      • -

        setPosition

        -
        public ControlP5Base setPosition(int theX,
        -                        int theY,
        -                        java.lang.Object o)
        -
      • -
      - - - -
        -
      • -

        show

        -
        public ControlP5Base show(java.lang.Object theObject)
        -
      • -
      - - - -
        -
      • -

        stopListeningTo

        -
        public ControlP5Base stopListeningTo(java.lang.String theFieldName,
        -                            java.lang.Object theObject)
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControlP5Constants.html b/reference/controlP5/ControlP5Constants.html deleted file mode 100644 index 7a3f47e..0000000 --- a/reference/controlP5/ControlP5Constants.html +++ /dev/null @@ -1,1975 +0,0 @@ - - - - - -ControlP5Constants (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Interface ControlP5Constants

-
-
-
- -
-
- -
-
- -
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControlP5Legacy.html b/reference/controlP5/ControlP5Legacy.html deleted file mode 100644 index a587257..0000000 --- a/reference/controlP5/ControlP5Legacy.html +++ /dev/null @@ -1,2411 +0,0 @@ - - - - - -ControlP5Legacy (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ControlP5Legacy

-
-
- -
-
    -
  • -
    -
    Direct Known Subclasses:
    -
    ControlP5Base
    -
    -
    -
    -
    public class ControlP5Legacy
    -extends java.lang.Object
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - -
      Constructors 
      Constructor and Description
      ControlP5Legacy() 
      -
    • -
    - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      AccordionaddAccordion(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName) 
      AccordionaddAccordion(java.lang.String theName, - int theX, - int theY, - int theWidth) 
      BangaddBang(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName) 
      BangaddBang(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - int theX, - int theY, - int theWidth, - int theHeight) 
      BangaddBang(java.lang.String theName, - int theX, - int theY) -
      Deprecated. 
      -
      BangaddBang(java.lang.String theName, - int theX, - int theY, - int theWidth, - int theHeight) -
      Deprecated. 
      -
      BoundingBoxaddBoundingBox(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - int theX, - int theY, - int theW, - int theH) 
      BoundingBoxaddBoundingBox(java.lang.String theName) 
      ButtonaddButton(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName) 
      ButtonaddButton(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - float theValue) 
      ButtonaddButton(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - float theValue, - int theX, - int theY, - int theW, - int theH) 
      ButtonaddButton(java.lang.String theName, - float theValue) 
      ButtonaddButton(java.lang.String theName, - float theValue, - int theX, - int theY, - int theW, - int theH) -
      Deprecated. 
      -
      ChartaddChart(java.lang.String theName, - int theX, - int theY, - int theW, - int theH) 
      CheckBoxaddCheckBox(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - int theX, - int theY) 
      CheckBoxaddCheckBox(java.lang.String theName, - int theX, - int theY) 
      ColorPickeraddColorPicker(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - int theX, - int theY, - int theW, - int theH) 
      ColorPickeraddColorPicker(java.lang.String theName, - int theX, - int theY, - int theW, - int theH) 
      ColorWheeladdColorWheel(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - int theX, - int theY, - int theW) 
      ColorWheeladdColorWheel(java.lang.String theName, - int theX, - int theY, - int theW) 
      <C> CaddController(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - java.lang.Class<C> theClass, - int theX, - int theY) -
      Adds Controllers by Object reference, currently - supports Slider, Bang, Button, Knob, Numberbox, - Toggle, Textlabel, Textfield, Range, Slider2D.
      -
      <C> CaddController(java.lang.String theName, - java.lang.Class<C> theClass, - int theX, - int theY) 
      ControlWindowaddControlWindow(java.lang.String theName) 
      ControlWindowaddControlWindow(java.lang.String theWindowName, - int theWidth, - int theHeight) -
      Deprecated. 
      -
      ControlWindowaddControlWindow(java.lang.String theWindowName, - int theX, - int theY, - int theWidth, - int theHeight) -
      Deprecated. 
      -
      ControlWindowaddControlWindow(java.lang.String theWindowName, - int theX, - int theY, - int theWidth, - int theHeight, - int theFrameRate) -
      Deprecated. 
      -
      ControlWindowaddControlWindow(java.lang.String theName, - int theX, - int theY, - int theWidth, - int theHeight, - java.lang.String theRenderer, - int theFrameRate) -
      Deprecated. 
      -
      DropdownListaddDropdownList(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - int theX, - int theY, - int theW, - int theH) 
      DropdownListaddDropdownList(java.lang.String theName) 
      DropdownListaddDropdownList(java.lang.String theName, - int theX, - int theY, - int theW, - int theH) 
      GroupaddGroup(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName) 
      <C> CaddGroup(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - java.lang.Class<C> theClass, - int theX, - int theY, - int theW, - int theH) -
      Use with caution, only for internal use.
      -
      GroupaddGroup(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - int theX, - int theY) 
      GroupaddGroup(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - int theX, - int theY, - int theW) 
      GroupaddGroup(java.lang.String theName, - int theX, - int theY) 
      GroupaddGroup(java.lang.String theName, - int theX, - int theY, - int theW) 
      KnobaddKnob(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName) 
      KnobaddKnob(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - float theMin, - float theMax, - float theDefaultValue, - int theX, - int theY, - int theDiameter) 
      KnobaddKnob(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - float theMin, - float theMax, - int theX, - int theY, - int theDiameter) 
      KnobaddKnob(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - int theMin, - int theMax) 
      KnobaddKnob(java.lang.String theName, - float theMin, - float theMax, - float theDefaultValue, - int theX, - int theY, - int theDiameter) 
      KnobaddKnob(java.lang.String theName, - float theMin, - float theMax, - int theX, - int theY, - int theDiameter) 
      KnobaddKnob(java.lang.String theName, - int theMin, - int theMax) 
      ListBoxaddListBox(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - int theX, - int theY, - int theW, - int theH) 
      ListBoxaddListBox(java.lang.String theName) -
      A list box is a list of items a user can choose from.
      -
      ListBoxaddListBox(java.lang.String theName, - int theX, - int theY, - int theW, - int theH) 
      MatrixaddMatrix(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - int theCellX, - int theCellY, - int theX, - int theY, - int theWidth, - int theHeight) 
      MatrixaddMatrix(java.lang.String theName, - int theCellX, - int theCellY, - int theX, - int theY, - int theWidth, - int theHeight) 
      MultiListaddMultiList(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - int theX, - int theY, - int theWidth, - int theHeight) 
      MultiListaddMultiList(java.lang.String theName, - int theX, - int theY, - int theWidth, - int theHeight) 
      NumberboxaddNumberbox(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName) 
      NumberboxaddNumberbox(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - float theDefaultValue, - int theX, - int theY, - int theWidth, - int theHeight) 
      NumberboxaddNumberbox(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - int theX, - int theY, - int theWidth, - int theHeight) 
      NumberboxaddNumberbox(java.lang.String theName, - float theDefaultValue, - int theX, - int theY, - int theWidth, - int theHeight) 
      NumberboxaddNumberbox(java.lang.String theName, - int theX, - int theY, - int theWidth, - int theHeight) 
      RadioButtonaddRadio(java.lang.String theName) -
      Use radio buttons for multiple choice options.
      -
      RadioButtonaddRadio(java.lang.String theName, - int theX, - int theY) 
      RadioButtonaddRadioButton(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - int theX, - int theY) 
      RadioButtonaddRadioButton(java.lang.String theName, - int theX, - int theY) 
      RangeaddRange(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - float theMin, - float theMax, - float theDefaultMinValue, - float theDefaultMaxValue, - int theX, - int theY, - int theW, - int theH) 
      RangeaddRange(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - float theMin, - float theMax, - int theX, - int theY, - int theWidth, - int theHeight) 
      RangeaddRange(java.lang.String theName, - float theMin, - float theMax, - float theDefaultMinValue, - float theDefaultMaxValue, - int theX, - int theY, - int theW, - int theH) 
      RangeaddRange(java.lang.String theName, - float theMin, - float theMax, - int theX, - int theY, - int theWidth, - int theHeight) 
      ScrollableListaddScrollableList(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName) 
      ScrollableListaddScrollableList(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - int theX, - int theY, - int theW, - int theH) 
      ScrollableListaddScrollableList(java.lang.String theName, - int theX, - int theY, - int theW, - int theH) 
      SlideraddSlider(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName) 
      SlideraddSlider(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - float theMin, - float theMax) 
      SlideraddSlider(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - float theMin, - float theMax, - float theDefaultValue, - int theX, - int theY, - int theW, - int theH) 
      SlideraddSlider(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - float theMin, - float theMax, - int theX, - int theY, - int theW, - int theH) 
      SlideraddSlider(java.lang.String theName, - float theMin, - float theMax) 
      SlideraddSlider(java.lang.String theName, - float theMin, - float theMax, - float theDefaultValue, - int theX, - int theY, - int theW, - int theH) 
      SlideraddSlider(java.lang.String theName, - float theMin, - float theMax, - int theX, - int theY, - int theWidth, - int theHeight) 
      Slider2DaddSlider2D(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - float theMinX, - float theMaxX, - float theMinY, - float theMaxY, - float theDefaultValueX, - float theDefaultValueY, - int theX, - int theY, - int theW, - int theH) 
      Slider2DaddSlider2D(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - int theX, - int theY, - int theW, - int theH) -
      Deprecated. 
      -
      Slider2DaddSlider2D(java.lang.String theName, - float theMinX, - float theMaxX, - float theMinY, - float theMaxY, - float theDefaultValueX, - float theDefaultValueY, - int theX, - int theY, - int theW, - int theH) -
      Deprecated. 
      -
      Slider2DaddSlider2D(java.lang.String theName, - int theX, - int theY, - int theW, - int theH) -
      Deprecated. 
      -
      TabaddTab(ControlWindow theWindow, - java.lang.String theName) -
      Deprecated. 
      -
      TabaddTab(processing.core.PApplet theWindow, - java.lang.String theName) -
      Deprecated. 
      -
      TextareaaddTextarea(java.lang.String theName, - java.lang.String theText, - int theX, - int theY, - int theW, - int theH) 
      TextfieldaddTextfield(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName) 
      TextfieldaddTextfield(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - int theX, - int theY, - int theW, - int theH) 
      TextfieldaddTextfield(java.lang.String theName, - int theX, - int theY, - int theW, - int theH) 
      TextlabeladdTextlabel(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - java.lang.String theText) 
      TextlabeladdTextlabel(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - java.lang.String theText, - int theX, - int theY) 
      TextlabeladdTextlabel(java.lang.String theName, - java.lang.String theText) 
      TextlabeladdTextlabel(java.lang.String theName, - java.lang.String theText, - int theX, - int theY) 
      ToggleaddToggle(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName) 
      ToggleaddToggle(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - boolean theValue) 
      ToggleaddToggle(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - boolean theDefaultValue, - float theX, - float theY, - int theWidth, - int theHeight) 
      ToggleaddToggle(java.lang.Object theObject, - java.lang.String theIndex, - java.lang.String theName, - float theX, - float theY, - int theWidth, - int theHeight) -
      Deprecated. 
      -
      ToggleaddToggle(java.lang.String theName, - boolean theValue) 
      ToggleaddToggle(java.lang.String theName, - boolean theDefaultValue, - float theX, - float theY, - int theWidth, - int theHeight) -
      Deprecated. 
      -
      ToggleaddToggle(java.lang.String theName, - float theX, - float theY, - int theWidth, - int theHeight) -
      Deprecated. 
      -
      TooltipaddTooltip() 
      Controller<?>getController(java.lang.String theName, - java.lang.Object theObject) -
      Deprecated. 
      -
      TextlabelgetTextlabel() 
      TextlabelgetTextlabel(java.lang.String theText, - int theX, - int theY) 
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ControlP5Legacy

        -
        public ControlP5Legacy()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        addAccordion

        -
        public Accordion addAccordion(java.lang.Object theObject,
        -                     java.lang.String theIndex,
        -                     java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addAccordion

        -
        public Accordion addAccordion(java.lang.String theName,
        -                     int theX,
        -                     int theY,
        -                     int theWidth)
        -
      • -
      - - - -
        -
      • -

        addBang

        -
        public Bang addBang(java.lang.Object theObject,
        -           java.lang.String theIndex,
        -           java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addBang

        -
        public Bang addBang(java.lang.Object theObject,
        -           java.lang.String theIndex,
        -           java.lang.String theName,
        -           int theX,
        -           int theY,
        -           int theWidth,
        -           int theHeight)
        -
      • -
      - - - -
        -
      • -

        addBang

        -
        @Deprecated
        -public Bang addBang(java.lang.String theName,
        -                      int theX,
        -                      int theY)
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        addBang

        -
        @Deprecated
        -public Bang addBang(java.lang.String theName,
        -                      int theX,
        -                      int theY,
        -                      int theWidth,
        -                      int theHeight)
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        addBoundingBox

        -
        public BoundingBox addBoundingBox(java.lang.Object theObject,
        -                         java.lang.String theIndex,
        -                         java.lang.String theName,
        -                         int theX,
        -                         int theY,
        -                         int theW,
        -                         int theH)
        -
      • -
      - - - -
        -
      • -

        addBoundingBox

        -
        public BoundingBox addBoundingBox(java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addButton

        -
        public Button addButton(java.lang.Object theObject,
        -               java.lang.String theIndex,
        -               java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addButton

        -
        public Button addButton(java.lang.Object theObject,
        -               java.lang.String theIndex,
        -               java.lang.String theName,
        -               float theValue)
        -
      • -
      - - - -
        -
      • -

        addButton

        -
        public Button addButton(java.lang.Object theObject,
        -               java.lang.String theIndex,
        -               java.lang.String theName,
        -               float theValue,
        -               int theX,
        -               int theY,
        -               int theW,
        -               int theH)
        -
      • -
      - - - -
        -
      • -

        addButton

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

        addButton

        -
        @Deprecated
        -public Button addButton(java.lang.String theName,
        -                          float theValue,
        -                          int theX,
        -                          int theY,
        -                          int theW,
        -                          int theH)
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        addChart

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

        addCheckBox

        -
        public CheckBox addCheckBox(java.lang.Object theObject,
        -                   java.lang.String theIndex,
        -                   java.lang.String theName,
        -                   int theX,
        -                   int theY)
        -
      • -
      - - - -
        -
      • -

        addCheckBox

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

        addColorPicker

        -
        public ColorPicker addColorPicker(java.lang.Object theObject,
        -                         java.lang.String theIndex,
        -                         java.lang.String theName,
        -                         int theX,
        -                         int theY,
        -                         int theW,
        -                         int theH)
        -
      • -
      - - - -
        -
      • -

        addColorPicker

        -
        public ColorPicker addColorPicker(java.lang.String theName,
        -                         int theX,
        -                         int theY,
        -                         int theW,
        -                         int theH)
        -
      • -
      - - - -
        -
      • -

        addColorWheel

        -
        public ColorWheel addColorWheel(java.lang.Object theObject,
        -                       java.lang.String theIndex,
        -                       java.lang.String theName,
        -                       int theX,
        -                       int theY,
        -                       int theW)
        -
      • -
      - - - -
        -
      • -

        addColorWheel

        -
        public ColorWheel addColorWheel(java.lang.String theName,
        -                       int theX,
        -                       int theY,
        -                       int theW)
        -
      • -
      - - - -
        -
      • -

        addController

        -
        public <C> C addController(java.lang.Object theObject,
        -                  java.lang.String theIndex,
        -                  java.lang.String theName,
        -                  java.lang.Class<C> theClass,
        -                  int theX,
        -                  int theY)
        -
        Adds Controllers by Object reference, currently - supports Slider, Bang, Button, Knob, Numberbox, - Toggle, Textlabel, Textfield, Range, Slider2D. For - internal use rather than on application level.
        -
      • -
      - - - -
        -
      • -

        addController

        -
        public <C> C addController(java.lang.String theName,
        -                  java.lang.Class<C> theClass,
        -                  int theX,
        -                  int theY)
        -
      • -
      - - - -
        -
      • -

        addControlWindow

        -
        public ControlWindow addControlWindow(java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addControlWindow

        -
        @Deprecated
        -public ControlWindow addControlWindow(java.lang.String theWindowName,
        -                                        int theWidth,
        -                                        int theHeight)
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        addControlWindow

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

        addControlWindow

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

        addControlWindow

        -
        @Deprecated
        -public ControlWindow addControlWindow(java.lang.String theName,
        -                                        int theX,
        -                                        int theY,
        -                                        int theWidth,
        -                                        int theHeight,
        -                                        java.lang.String theRenderer,
        -                                        int theFrameRate)
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        addDropdownList

        -
        public DropdownList addDropdownList(java.lang.Object theObject,
        -                           java.lang.String theIndex,
        -                           java.lang.String theName,
        -                           int theX,
        -                           int theY,
        -                           int theW,
        -                           int theH)
        -
      • -
      - - - -
        -
      • -

        addDropdownList

        -
        public DropdownList addDropdownList(java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addDropdownList

        -
        public DropdownList addDropdownList(java.lang.String theName,
        -                           int theX,
        -                           int theY,
        -                           int theW,
        -                           int theH)
        -
      • -
      - - - -
        -
      • -

        addGroup

        -
        public Group addGroup(java.lang.Object theObject,
        -             java.lang.String theIndex,
        -             java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addGroup

        -
        public <C> C addGroup(java.lang.Object theObject,
        -             java.lang.String theIndex,
        -             java.lang.String theName,
        -             java.lang.Class<C> theClass,
        -             int theX,
        -             int theY,
        -             int theW,
        -             int theH)
        -
        Use with caution, only for internal use.
        -
      • -
      - - - -
        -
      • -

        addGroup

        -
        public Group addGroup(java.lang.Object theObject,
        -             java.lang.String theIndex,
        -             java.lang.String theName,
        -             int theX,
        -             int theY)
        -
      • -
      - - - -
        -
      • -

        addGroup

        -
        public Group addGroup(java.lang.Object theObject,
        -             java.lang.String theIndex,
        -             java.lang.String theName,
        -             int theX,
        -             int theY,
        -             int theW)
        -
      • -
      - - - -
        -
      • -

        addGroup

        -
        public Group addGroup(java.lang.String theName,
        -             int theX,
        -             int theY)
        -
      • -
      - - - -
        -
      • -

        addGroup

        -
        public Group addGroup(java.lang.String theName,
        -             int theX,
        -             int theY,
        -             int theW)
        -
      • -
      - - - -
        -
      • -

        addKnob

        -
        public Knob addKnob(java.lang.Object theObject,
        -           java.lang.String theIndex,
        -           java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addKnob

        -
        public Knob addKnob(java.lang.Object theObject,
        -           java.lang.String theIndex,
        -           java.lang.String theName,
        -           float theMin,
        -           float theMax,
        -           float theDefaultValue,
        -           int theX,
        -           int theY,
        -           int theDiameter)
        -
      • -
      - - - -
        -
      • -

        addKnob

        -
        public Knob addKnob(java.lang.Object theObject,
        -           java.lang.String theIndex,
        -           java.lang.String theName,
        -           float theMin,
        -           float theMax,
        -           int theX,
        -           int theY,
        -           int theDiameter)
        -
      • -
      - - - -
        -
      • -

        addKnob

        -
        public Knob addKnob(java.lang.Object theObject,
        -           java.lang.String theIndex,
        -           java.lang.String theName,
        -           int theMin,
        -           int theMax)
        -
      • -
      - - - -
        -
      • -

        addKnob

        -
        public Knob addKnob(java.lang.String theName,
        -           float theMin,
        -           float theMax,
        -           float theDefaultValue,
        -           int theX,
        -           int theY,
        -           int theDiameter)
        -
      • -
      - - - -
        -
      • -

        addKnob

        -
        public Knob addKnob(java.lang.String theName,
        -           float theMin,
        -           float theMax,
        -           int theX,
        -           int theY,
        -           int theDiameter)
        -
      • -
      - - - -
        -
      • -

        addKnob

        -
        public Knob addKnob(java.lang.String theName,
        -           int theMin,
        -           int theMax)
        -
      • -
      - - - -
        -
      • -

        addListBox

        -
        public ListBox addListBox(java.lang.Object theObject,
        -                 java.lang.String theIndex,
        -                 java.lang.String theName,
        -                 int theX,
        -                 int theY,
        -                 int theW,
        -                 int theH)
        -
      • -
      - - - -
        -
      • -

        addListBox

        -
        public ListBox addListBox(java.lang.String theName)
        -
        A list box is a list of items a user can choose from. - When items exceed the dedicated area of a list box, a - scrollbar is added to the right of the box. the Box - can be navigated using mouse click, drag and the - mouse-wheel.
        -
      • -
      - - - -
        -
      • -

        addListBox

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

        addMatrix

        -
        public Matrix addMatrix(java.lang.Object theObject,
        -               java.lang.String theIndex,
        -               java.lang.String theName,
        -               int theCellX,
        -               int theCellY,
        -               int theX,
        -               int theY,
        -               int theWidth,
        -               int theHeight)
        -
      • -
      - - - -
        -
      • -

        addMatrix

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

        addMultiList

        -
        public MultiList addMultiList(java.lang.Object theObject,
        -                     java.lang.String theIndex,
        -                     java.lang.String theName,
        -                     int theX,
        -                     int theY,
        -                     int theWidth,
        -                     int theHeight)
        -
      • -
      - - - -
        -
      • -

        addMultiList

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

        addNumberbox

        -
        public Numberbox addNumberbox(java.lang.Object theObject,
        -                     java.lang.String theIndex,
        -                     java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addNumberbox

        -
        public Numberbox addNumberbox(java.lang.Object theObject,
        -                     java.lang.String theIndex,
        -                     java.lang.String theName,
        -                     float theDefaultValue,
        -                     int theX,
        -                     int theY,
        -                     int theWidth,
        -                     int theHeight)
        -
      • -
      - - - -
        -
      • -

        addNumberbox

        -
        public Numberbox addNumberbox(java.lang.Object theObject,
        -                     java.lang.String theIndex,
        -                     java.lang.String theName,
        -                     int theX,
        -                     int theY,
        -                     int theWidth,
        -                     int theHeight)
        -
      • -
      - - - -
        -
      • -

        addNumberbox

        -
        public Numberbox addNumberbox(java.lang.String theName,
        -                     float theDefaultValue,
        -                     int theX,
        -                     int theY,
        -                     int theWidth,
        -                     int theHeight)
        -
      • -
      - - - -
        -
      • -

        addNumberbox

        -
        public Numberbox addNumberbox(java.lang.String theName,
        -                     int theX,
        -                     int theY,
        -                     int theWidth,
        -                     int theHeight)
        -
      • -
      - - - -
        -
      • -

        addRadio

        -
        public RadioButton addRadio(java.lang.String theName)
        -
        Use radio buttons for multiple choice options.
        -
      • -
      - - - -
        -
      • -

        addRadio

        -
        public RadioButton addRadio(java.lang.String theName,
        -                   int theX,
        -                   int theY)
        -
      • -
      - - - -
        -
      • -

        addRadioButton

        -
        public RadioButton addRadioButton(java.lang.Object theObject,
        -                         java.lang.String theIndex,
        -                         java.lang.String theName,
        -                         int theX,
        -                         int theY)
        -
      • -
      - - - -
        -
      • -

        addRadioButton

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

        addRange

        -
        public Range addRange(java.lang.Object theObject,
        -             java.lang.String theIndex,
        -             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.Object theObject,
        -             java.lang.String theIndex,
        -             java.lang.String theName,
        -             float theMin,
        -             float theMax,
        -             int theX,
        -             int theY,
        -             int theWidth,
        -             int theHeight)
        -
      • -
      - - - -
        -
      • -

        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)
        -
      • -
      - - - -
        -
      • -

        addScrollableList

        -
        public ScrollableList addScrollableList(java.lang.Object theObject,
        -                               java.lang.String theIndex,
        -                               java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addScrollableList

        -
        public ScrollableList addScrollableList(java.lang.Object theObject,
        -                               java.lang.String theIndex,
        -                               java.lang.String theName,
        -                               int theX,
        -                               int theY,
        -                               int theW,
        -                               int theH)
        -
      • -
      - - - -
        -
      • -

        addScrollableList

        -
        public ScrollableList addScrollableList(java.lang.String theName,
        -                               int theX,
        -                               int theY,
        -                               int theW,
        -                               int theH)
        -
      • -
      - - - -
        -
      • -

        addSlider

        -
        public Slider addSlider(java.lang.Object theObject,
        -               java.lang.String theIndex,
        -               java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addSlider

        -
        public Slider addSlider(java.lang.Object theObject,
        -               java.lang.String theIndex,
        -               java.lang.String theName,
        -               float theMin,
        -               float theMax)
        -
      • -
      - - - -
        -
      • -

        addSlider

        -
        public Slider addSlider(java.lang.Object theObject,
        -               java.lang.String theIndex,
        -               java.lang.String theName,
        -               float theMin,
        -               float theMax,
        -               float theDefaultValue,
        -               int theX,
        -               int theY,
        -               int theW,
        -               int theH)
        -
      • -
      - - - -
        -
      • -

        addSlider

        -
        public Slider addSlider(java.lang.Object theObject,
        -               java.lang.String theIndex,
        -               java.lang.String theName,
        -               float theMin,
        -               float theMax,
        -               int theX,
        -               int theY,
        -               int theW,
        -               int theH)
        -
      • -
      - - - -
        -
      • -

        addSlider

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

        addSlider

        -
        public Slider addSlider(java.lang.String theName,
        -               float theMin,
        -               float theMax,
        -               float theDefaultValue,
        -               int theX,
        -               int theY,
        -               int theW,
        -               int theH)
        -
      • -
      - - - -
        -
      • -

        addSlider

        -
        public Slider addSlider(java.lang.String theName,
        -               float theMin,
        -               float theMax,
        -               int theX,
        -               int theY,
        -               int theWidth,
        -               int theHeight)
        -
      • -
      - - - -
        -
      • -

        addSlider2D

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

        addSlider2D

        -
        @Deprecated
        -public Slider2D addSlider2D(java.lang.Object theObject,
        -                              java.lang.String theIndex,
        -                              java.lang.String theName,
        -                              int theX,
        -                              int theY,
        -                              int theW,
        -                              int theH)
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        addSlider2D

        -
        @Deprecated
        -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)
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        addSlider2D

        -
        @Deprecated
        -public Slider2D addSlider2D(java.lang.String theName,
        -                              int theX,
        -                              int theY,
        -                              int theW,
        -                              int theH)
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        addTab

        -
        @Deprecated
        -public Tab addTab(ControlWindow theWindow,
        -                    java.lang.String theName)
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        addTab

        -
        @Deprecated
        -public Tab addTab(processing.core.PApplet theWindow,
        -                    java.lang.String theName)
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        addTextarea

        -
        public Textarea addTextarea(java.lang.String theName,
        -                   java.lang.String theText,
        -                   int theX,
        -                   int theY,
        -                   int theW,
        -                   int theH)
        -
      • -
      - - - -
        -
      • -

        addTextfield

        -
        public Textfield addTextfield(java.lang.Object theObject,
        -                     java.lang.String theIndex,
        -                     java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addTextfield

        -
        public Textfield addTextfield(java.lang.Object theObject,
        -                     java.lang.String theIndex,
        -                     java.lang.String theName,
        -                     int theX,
        -                     int theY,
        -                     int theW,
        -                     int theH)
        -
      • -
      - - - -
        -
      • -

        addTextfield

        -
        public Textfield addTextfield(java.lang.String theName,
        -                     int theX,
        -                     int theY,
        -                     int theW,
        -                     int theH)
        -
      • -
      - - - -
        -
      • -

        addTextlabel

        -
        public Textlabel addTextlabel(java.lang.Object theObject,
        -                     java.lang.String theIndex,
        -                     java.lang.String theName,
        -                     java.lang.String theText)
        -
      • -
      - - - -
        -
      • -

        addTextlabel

        -
        public Textlabel addTextlabel(java.lang.Object theObject,
        -                     java.lang.String theIndex,
        -                     java.lang.String theName,
        -                     java.lang.String theText,
        -                     int theX,
        -                     int theY)
        -
      • -
      - - - -
        -
      • -

        addTextlabel

        -
        public Textlabel addTextlabel(java.lang.String theName,
        -                     java.lang.String theText)
        -
      • -
      - - - -
        -
      • -

        addTextlabel

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

        addToggle

        -
        public Toggle addToggle(java.lang.Object theObject,
        -               java.lang.String theIndex,
        -               java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        addToggle

        -
        public Toggle addToggle(java.lang.Object theObject,
        -               java.lang.String theIndex,
        -               java.lang.String theName,
        -               boolean theValue)
        -
      • -
      - - - -
        -
      • -

        addToggle

        -
        public Toggle addToggle(java.lang.Object theObject,
        -               java.lang.String theIndex,
        -               java.lang.String theName,
        -               boolean theDefaultValue,
        -               float theX,
        -               float theY,
        -               int theWidth,
        -               int theHeight)
        -
      • -
      - - - -
        -
      • -

        addToggle

        -
        @Deprecated
        -public Toggle addToggle(java.lang.Object theObject,
        -                          java.lang.String theIndex,
        -                          java.lang.String theName,
        -                          float theX,
        -                          float theY,
        -                          int theWidth,
        -                          int theHeight)
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        addToggle

        -
        public Toggle addToggle(java.lang.String theName,
        -               boolean theValue)
        -
      • -
      - - - -
        -
      • -

        addToggle

        -
        @Deprecated
        -public Toggle addToggle(java.lang.String theName,
        -                          boolean theDefaultValue,
        -                          float theX,
        -                          float theY,
        -                          int theWidth,
        -                          int theHeight)
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        addToggle

        -
        @Deprecated
        -public Toggle addToggle(java.lang.String theName,
        -                          float theX,
        -                          float theY,
        -                          int theWidth,
        -                          int theHeight)
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        addTooltip

        -
        public Tooltip addTooltip()
        -
      • -
      - - - -
        -
      • -

        getController

        -
        @Deprecated
        -public Controller<?> getController(java.lang.String theName,
        -                                     java.lang.Object theObject)
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        getTextlabel

        -
        public Textlabel getTextlabel()
        -
      • -
      - - - -
        -
      • -

        getTextlabel

        -
        public Textlabel getTextlabel(java.lang.String theText,
        -                     int theX,
        -                     int theY)
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControlTimer.html b/reference/controlP5/ControlTimer.html deleted file mode 100644 index fb66048..0000000 --- a/reference/controlP5/ControlTimer.html +++ /dev/null @@ -1,446 +0,0 @@ - - - - - -ControlTimer (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ControlTimer

-
-
- -
-
    -
  • -
    -
    -
    public class ControlTimer
    -extends java.lang.Object
    -
    control timer is a timer that can be used for example as a stop watch or a duration timer.
    -
    -
    +Example
    /**
    - * ControlP5 Timer
    - * by andreas schlegel, 2009
    - */
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -ControlTimer c;
    -Textlabel t;
    -
    -void setup() {
    -  size(400,400);
    -  frameRate(30);
    -  cp5 = new ControlP5(this);
    -  c = new ControlTimer();
    -  t = new Textlabel(cp5,"--",100,100);
    -  c.setSpeedOfTime(1);
    -}
    -
    -
    -void draw() {
    -  background(0);
    -  t.setValue(c.toString());
    -  t.draw(this);
    -  t.setPosition(mouseX, mouseY);
    -}
    -
    -
    -void mousePressed() {
    -  c.reset();
    -}
    -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - -
      Constructors 
      Constructor and Description
      ControlTimer() -
      create a new control timer, a timer that counts up in time.
      -
      -
    • -
    - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      intday() -
      day position of the timer.
      -
      inthour() -
      Hour position of the timer in international format (0-23).
      -
      intmillis() -
      Get the milliseconds of the timer.
      -
      intminute() -
      Minutes position of the timer.
      -
      voidreset() -
      reset the timer.
      -
      intsecond() -
      Seconds position of the timer.
      -
      voidsetSpeedOfTime(float theSpeed) -
      set the speed of time, for slow motion or high speed.
      -
      longtime() -
      get the time in milliseconds since the timer was started.
      -
      java.lang.StringtoString() -
      return a string representation of the current status of the timer.
      -
      voidupdate() -
      called to update the timer.
      -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ControlTimer

        -
        public ControlTimer()
        -
        create a new control timer, a timer that counts up in time.
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        day

        -
        public int day()
        -
        day position of the timer.
        -
      • -
      - - - -
        -
      • -

        hour

        -
        public int hour()
        -
        Hour position of the timer in international format (0-23).
        -
      • -
      - - - -
        -
      • -

        millis

        -
        public int millis()
        -
        Get the milliseconds of the timer.
        -
      • -
      - - - -
        -
      • -

        minute

        -
        public int minute()
        -
        Minutes position of the timer.
        -
      • -
      - - - -
        -
      • -

        reset

        -
        public void reset()
        -
        reset the timer.
        -
      • -
      - - - -
        -
      • -

        second

        -
        public int second()
        -
        Seconds position of the timer.
        -
      • -
      - - - -
        -
      • -

        setSpeedOfTime

        -
        public void setSpeedOfTime(float theSpeed)
        -
        set the speed of time, for slow motion or high speed.
        -
        Parameters:
        theSpeed - int
        -
      • -
      - - - -
        -
      • -

        time

        -
        public long time()
        -
        get the time in milliseconds since the timer was started.
        -
        Returns:
        long
        -
      • -
      - - - -
        -
      • -

        toString

        -
        public java.lang.String toString()
        -
        return a string representation of the current status of the timer.
        -
        -
        Overrides:
        -
        toString in class java.lang.Object
        -
        Returns:
        String
        -
      • -
      - - - -
        -
      • -

        update

        -
        public void update()
        -
        called to update the timer.
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControlWindow.Pointer.html b/reference/controlP5/ControlWindow.Pointer.html deleted file mode 100644 index cf11aea..0000000 --- a/reference/controlP5/ControlWindow.Pointer.html +++ /dev/null @@ -1,430 +0,0 @@ - - - - - -ControlWindow.Pointer (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ControlWindow.Pointer

-
-
- -
-
    -
  • -
    -
    Enclosing class:
    -
    ControlWindow
    -
    -
    -
    -
    public class ControlWindow.Pointer
    -extends java.lang.Object
    -
    A pointer by default is linked to the mouse and - stores the x and y position as well as the pressed - and released state. The pointer can be accessed by - its getter method ControlWindow.getPointer(). - Then use - controlP5.ControlWindow#set(int, int) to - alter its position or invoke { - controlP5.ControlWindow#pressed() or - controlP5.ControlWindow#released() to change - its state. To disable the mouse and enable the - Pointer use controlP5.ControlWindow#enable() - and controlP5.ControlWindow#disable() to - default back to the mouse as input parameter.
    -
  • -
-
-
- -
-
- -
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControlWindow.html b/reference/controlP5/ControlWindow.html deleted file mode 100644 index 2f1dfaf..0000000 --- a/reference/controlP5/ControlWindow.html +++ /dev/null @@ -1,1286 +0,0 @@ - - - - - -ControlWindow (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ControlWindow

-
-
- -
-
    -
  • -
    -
    -
    public final class ControlWindow
    -extends java.lang.Object
    -
    -
    +Example
    /**
    - * ControlP5 ControlWindow
    - * by andreas schlegel, 2012
    - */
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -int myColorBackground = color(0, 0, 0);
    -
    -ControlWindow controlWindow;
    -
    -public int sliderValue = 40;
    -
    -void setup() {
    -  size(700, 400);  
    -
    -  cp5 = new ControlP5(this);
    -
    -
    -// PLEASE READ
    -// 
    -// With controlP5 2.0 the ControlWindow has been removed, 
    -// please see the changelog.txt for details. 
    -// Instead, see the extra/ControlP5frame example for 
    -// a ControlWindow alternative.
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -//  controlWindow = cp5.addControlWindow("controlP5window", 100, 100, 400, 200)
    -//    .hideCoordinates()
    -//    .setBackground(color(40))
    -//    ;
    -
    -  cp5.addSlider("sliderValue")
    -     .setRange(0, 255)
    -     .setPosition(40, 40)
    -     .setSize(200, 29)
    -     //.moveTo(controlWindow)
    -     ;
    -}
    -
    -
    -void draw() {
    -  background(sliderValue);
    -}
    -
    -void myTextfield(String theValue) {
    -  println(theValue);
    -}
    -
    -void myWindowTextfield(String theValue) {
    -  println("from controlWindow: "+theValue);
    -}
    -
    -void keyPressed() {
    -  // if (key==',') cp5.window("controlP5window").hide();
    -  // if (key=='.') cp5.window("controlP5window").show();
    -  // controlWindow = controlP5.addControlWindow("controlP5window2",600,100,400,200);
    -  // controlP5.controller("sliderValue1").moveTo(controlWindow);
    -
    -  // if (key=='d') {
    -  //   if (controlWindow.isUndecorated()) {
    -  //     controlWindow.setUndecorated(false);
    -  //   } else {
    -  //     controlWindow.setUndecorated(true);
    -  //   }
    -  // }
    -  // if (key=='t') {
    -  //   controlWindow.toggleUndecorated();
    -  // }
    -}
    -
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Field Detail

      - - - -
        -
      • -

        background

        -
        public int background
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ControlWindow

        -
        public ControlWindow(ControlP5 theControlP5,
        -             processing.core.PApplet theApplet)
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        activateTab

        -
        public ControlWindow activateTab(java.lang.String theTab)
        -
      • -
      - - - -
        -
      • -

        add

        -
        public Tab add(Tab theTab)
        -
      • -
      - - - - - - - -
        -
      • -

        addTab

        -
        public Tab addTab(java.lang.String theTab)
        -
      • -
      - - - -
        -
      • -

        clear

        -
        public ControlWindow clear()
        -
        clear the control window, delete all controllers from - a control window.
        -
      • -
      - - - -
        -
      • -

        clearKeys

        -
        public void clearKeys()
        -
      • -
      - - - -
        -
      • -

        disableMouseWheel

        -
        @Deprecated
        -public ControlWindow disableMouseWheel()
        -
        Deprecated. 
        -
      • -
      - - - - - - - -
        -
      • -

        draw

        -
        public void draw()
        -
      • -
      - - - -
        -
      • -

        draw

        -
        public void draw(processing.core.PGraphics pg)
        -
      • -
      - - - -
        -
      • -

        draw

        -
        public void draw(processing.core.PGraphics pg,
        -        int theX,
        -        int theY)
        -
      • -
      - - - -
        -
      • -

        enableMouseWheel

        -
        @Deprecated
        -public ControlWindow enableMouseWheel()
        -
        Deprecated. 
        -
      • -
      - - - - - - - -
        -
      • -

        frameRate

        -
        public ControlWindow frameRate(int theFrameRate)
        -
        sets the frame rate of the control window.
        -
        Parameters:
        theFrameRate -
        -
        Returns:
        ControlWindow
        -
      • -
      - - - -
        -
      • -

        getCurrentTab

        -
        public Tab getCurrentTab()
        -
      • -
      - - - - - - - -
        -
      • -

        getMouseOverList

        -
        public java.util.List<ControllerInterface<?>> getMouseOverList()
        -
        A list of controllers that are registered with a - mouseover.
        -
      • -
      - - - - - - - -
        -
      • -

        getPositionOfTabs

        -
        public processing.core.PVector getPositionOfTabs()
        -
        Returns the position of the tab bar as PVector. to - move the tabs to y-position 100, use - cp5.window().getPositionOfTabs().y = 100; or - cp5.window().setPositionOfTabs(new PVector(0,100,0));
        -
        Returns:
        PVector
        -
      • -
      - - - -
        -
      • -

        getTab

        -
        public Tab getTab(java.lang.String theTabName)
        -
      • -
      - - - - - - - -
        -
      • -

        handleKeyEvent

        -
        public void handleKeyEvent(processing.event.KeyEvent theKeyEvent)
        -
        Parameters:
        theKeyEvent - KeyEvent
        -
      • -
      - - - -
        -
      • -

        hide

        -
        public ControlWindow hide()
        -
        hide the controllers and tabs of the ControlWindow.
        -
      • -
      - - - -
        -
      • -

        isDrawBackground

        -
        public boolean isDrawBackground()
        -
      • -
      - - - -
        -
      • -

        isMouseOver

        -
        public boolean isMouseOver()
        -
        returns true if the mouse is inside a controller. !!! - doesnt work for groups yet.
        -
      • -
      - - - - - - - -
        -
      • -

        isMousePressed

        -
        public boolean isMousePressed()
        -
      • -
      - - - -
        -
      • -

        isMouseWheel

        -
        @Deprecated
        -public boolean isMouseWheel()
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        isUndecorated

        -
        public boolean isUndecorated()
        -
      • -
      - - - -
        -
      • -

        isUpdate

        -
        public boolean isUpdate()
        -
        check the update status of a control window.
        -
      • -
      - - - -
        -
      • -

        isVisible

        -
        public boolean isVisible()
        -
      • -
      - - - -
        -
      • -

        keyEvent

        -
        public void keyEvent(processing.event.KeyEvent theKeyEvent)
        -
      • -
      - - - -
        -
      • -

        mouseEvent

        -
        public void mouseEvent(int theX,
        -              int theY,
        -              boolean pressed)
        -
        when in Android mode, call mouseEvent(int, int, - boolean).
        -
      • -
      - - - -
        -
      • -

        mouseEvent

        -
        public void mouseEvent(processing.event.MouseEvent theMouseEvent)
        -
      • -
      - - - -
        -
      • -

        name

        -
        public java.lang.String name()
        -
        returns the name of the control window.
        -
      • -
      - - - -
        -
      • -

        papplet

        -
        public processing.core.PApplet papplet()
        -
        get the papplet instance of the ControlWindow.
        -
      • -
      - - - - - - - -
        -
      • -

        remove

        -
        public void remove()
        -
      • -
      - - - - - - - - - - - - - - - -
        -
      • -

        resetMouseOver

        -
        public void resetMouseOver()
        -
      • -
      - - - -
        -
      • -

        setBackground

        -
        public ControlWindow setBackground(int theValue)
        -
        set the background color of the control window.
        -
      • -
      - - - -
        -
      • -

        setColorActive

        -
        public ControlWindow setColorActive(int theColor)
        -
        set the color for the controller while active.
        -
      • -
      - - - -
        -
      • -

        setColorBackground

        -
        public ControlWindow setColorBackground(int theColor)
        -
        set the background color of the controller.
        -
      • -
      - - - -
        -
      • -

        setColorForeground

        -
        public ControlWindow setColorForeground(int theColor)
        -
        set the foreground color of the controller.
        -
      • -
      - - - -
        -
      • -

        setColorLabel

        -
        public ControlWindow setColorLabel(int theColor)
        -
        set the color of the text label of the controller.
        -
      • -
      - - - -
        -
      • -

        setColorValue

        -
        public ControlWindow setColorValue(int theColor)
        -
        set the color of the values.
        -
      • -
      - - - -
        -
      • -

        setContext

        -
        public ControlWindow setContext(CDrawable theDrawable)
        -
        Adds a custom context to a ControlWindow. Use a - custom class which implements the CDrawable interface
        -
        Parameters:
        theDrawable - CDrawable
        See Also:
        CDrawable
        -
      • -
      - - - -
        -
      • -

        setDrawBackground

        -
        public ControlWindow setDrawBackground(boolean theFlag)
        -
        by default the background of a controlWindow is - filled with a background color every frame. to enable - or disable the background from drawing, use - setDrawBackgorund(true/false).
        -
        Parameters:
        theFlag -
        -
        Returns:
        ControlWindow
        -
      • -
      - - - -
        -
      • -

        setLocation

        -
        public ControlWindow setLocation(int theX,
        -                        int theY)
        -
      • -
      - - - -
        -
      • -

        setPosition

        -
        public ControlWindow setPosition(int theX,
        -                        int theY)
        -
      • -
      - - - -
        -
      • -

        setPositionOfTabs

        -
        public ControlWindow setPositionOfTabs(int theX,
        -                              int theY)
        -
      • -
      - - - -
        -
      • -

        setPositionOfTabs

        -
        public ControlWindow setPositionOfTabs(processing.core.PVector thePVector)
        -
        Sets the position of the tab bar which is set to 0,0 - by default. to move the tabs to y-position 100, use - cp5.window().setPositionOfTabs(new PVector(0,100,0));
        -
        Parameters:
        thePVector -
        -
      • -
      - - - -
        -
      • -

        setUndecorated

        -
        public ControlWindow setUndecorated(boolean theFlag)
        -
      • -
      - - - -
        -
      • -

        setUpdate

        -
        public void setUpdate(boolean theFlag)
        -
        enable or disable the update function of a control - window.
        -
      • -
      - - - - - - - -
        -
      • -

        toggleUndecorated

        -
        public ControlWindow toggleUndecorated()
        -
      • -
      - - - -
        -
      • -

        update

        -
        public void update()
        -
        updates all controllers inside the control window if - update is enabled.
        -
      • -
      - - - -
        -
      • -

        updateEvents

        -
        public void updateEvents()
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Controller.html b/reference/controlP5/Controller.html deleted file mode 100644 index 646cf22..0000000 --- a/reference/controlP5/Controller.html +++ /dev/null @@ -1,3089 +0,0 @@ - - - - - -Controller (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Controller<T>

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    CDrawable, ControllerInterface<T>, ControlP5Constants
    -
    -
    -
    Direct Known Subclasses:
    -
    Bang, BoundingBox, Button, Chart, ColorWheel, Knob, Matrix, MultiList, Numberbox, Range, ScrollableList, Slider, Slider2D, Textfield, Textlabel, Toggle
    -
    -
    -
    -
    public abstract class Controller<T>
    -extends java.lang.Object
    -implements ControllerInterface<T>, CDrawable, ControlP5Constants
    -

    - Controller is an abstract class that is extended by any available controller within controlP5. - this is the full documentation list for all methods available for a controller. An event - triggered by a controller will be forwarded to the main program. If a void - controlEvent(ControlEvent theEvent) {} method is available, this method will be called. -

    -

    - A Controller can notify the main program in 2 different ways: -

    -
      -
    • (1) add method controlEvent(ControlEvent theEvent) to your sketch. ControlP5 will - automatically detect this method and will used it to forward any controlEvent triggered by a - controller - you can disable forwarding by using setBroadcast(false) - setBroadcast(boolean)
    • -
    • (2) each controller requires a unique name when being create. In case an existing name is - used for a newly created Controller, the existing one will be overwritten. each unique name can - be used to automatically link a controller to either a method or a field within your program.
    • -
    -
    See Also:
    Bang, -Button, -Knob, -Matrix, -MultiList, -Numberbox, -RadioButton, -ListBox, -Slider, -Textarea, -Textfield, -Textlabel, -Toggle, -ControlGroup, -ControlBehavior, -ControlEvent
    -
    +Example
    /**
    - * ControlP5 Basics
    - *
    - * The following example demonstrates the basic use of controlP5.
    - * After initializing controlP5 you can add controllers to controlP5. - * Here we use three numberboxes, one slider and one textfield. - * The numberbox with name numberboxC will trigger function numberboxC() - * in the example below. Whenever controlP5 detects a function in your - * sketch that corresponds to the name of a controller, it will forward - * an event to that function. Any event triggered by a controller - * will be forwarded to function controlEvent in your sketch. - * related examples ControlP5numberbox, ControlP5slider, ControlP5textfield - * - * by Andreas Schlegel, 2011 - * www.sojamo.de/libraries/controlp5 - * - */ - - -import controlP5.*; - -ControlP5 cp5; -public int myColorRect = 200; -public int myColorBackground = 100; - -void setup() { - size(400, 400); - noStroke(); - - cp5 = new ControlP5(this); - - // create a slider - // parameters: - // name, minValue, maxValue, defaultValue, x, y, width, height - cp5.addSlider("sliderA", 100, 200, 100, 100, 260, 100, 14); - - - // create 3 numberboxes and assign an id for each - cp5.addNumberbox("numberboxA", myColorRect, 100, 140, 100, 14).setId(1); - cp5.addNumberbox("numberboxB", myColorBackground, 100, 180, 100, 14).setId(2); - cp5.addNumberbox("numberboxC", 0, 100, 220, 100, 14).setId(3); - - - // create a texfield - cp5.addTextfield("textA", 100, 290, 100, 20); - - // change individual settings for a controller - cp5.getController("numberboxA").setMax(255); - cp5.getController("numberboxA").setMin(0); -} - -void draw() { - background(myColorBackground); - fill(myColorRect); - rect(0, 0, width, 100); -} - - -// events from controller numberboxC are received here -public void numberboxC(int theValue) { - println("### got an event from numberboxC : "+theValue); -} - - -// an event from slider sliderA will change the value of textfield textA here -public void sliderA(int theValue) { - Textfield txt = ((Textfield)cp5.getController("textA")); - txt.setValue(""+theValue); -} - - -// for every change (a textfield event confirmed with a return) in textfield textA, -// function textA will be invoked -public void textA(String theValue) { - println("### got an event from textA : "+theValue); -} - - -// function controlEvent will be invoked with every value change -// in any registered controller -public void controlEvent(ControlEvent theEvent) { - println("got a control event from controller with id "+theEvent.getId()); - switch(theEvent.getId()) { - case(1): // numberboxA is registered with id 1 - myColorRect = (int)(theEvent.getController().getValue()); - break; - case(2): // numberboxB is registered with id 2 - myColorBackground = (int)(theEvent.getController().getValue()); - break; - } -} - -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Field Detail

      - - - -
        -
      • -

        autoHeight

        -
        public static int autoHeight
        -
      • -
      - - - -
        -
      • -

        autoSpacing

        -
        public static processing.core.PVector autoSpacing
        -
      • -
      - - - -
        -
      • -

        autoWidth

        -
        public static int autoWidth
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Controller

        -
        public Controller(ControlP5 theControlP5,
        -          java.lang.String theName)
        -
        Convenience constructor to extend Controller.
        -
        Parameters:
        theControlP5 -
        theName -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - - - - - - - - - - - - - -
        -
      • -

        align

        -
        public T align(int theCaptionX,
        -      int theCaptionY,
        -      int theValueX,
        -      int theValueY)
        -
      • -
      - - - - - - - - - - - -
        -
      • -

        changeValue

        -
        public final T changeValue(float theValue)
        -
        sets the value of the controller without sending the broadcast event. this function is final.
        -
        Parameters:
        theValue - float
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        continuousUpdateEvents

        -
        public final void continuousUpdateEvents()
        -
        continuousUpdateEvents is used for internal updates of a controller. this method is final and - can't be overridden.
        -
        -
        Specified by:
        -
        continuousUpdateEvents in interface ControllerInterface<T>
        -
        -
      • -
      - - - -
        -
      • -

        draw

        -
        public void draw(processing.core.PGraphics theGraphics)
        -
        the default draw function for each controller extending superclass Controller. This draw - function will take care of default matrix operations and will call the display function of - the current ControllerView object active for this particular controller.
        -
        -
        Specified by:
        -
        draw in interface CDrawable
        -
        Specified by:
        -
        draw in interface ControllerInterface<T>
        -
        Parameters:
        theApplet - PApplet
        See Also:
        ControllerView
        -
      • -
      - - - - - - - - - - - - - - - -
        -
      • -

        getArrayValue

        -
        public float getArrayValue(int theIndex)
        -
        -
        Specified by:
        -
        getArrayValue in interface ControllerInterface<T>
        -
        Parameters:
        theIndex -
        -
        Returns:
        float
        -
      • -
      - - - -
        -
      • -

        getBehavior

        -
        public ControlBehavior getBehavior()
        -
        Returns:
        ControlBehavior
        -
      • -
      - - - -
        -
      • -

        getCaptionLabel

        -
        public Label getCaptionLabel()
        -
        Returns:
        Label
        See Also:
        Label
        -
      • -
      - - - - - - - -
        -
      • -

        getControllerPlugList

        -
        public java.util.List<ControllerPlug> getControllerPlugList()
        -
        Returns:
        List
        -
      • -
      - - - -
        -
      • -

        getControlWindow

        -
        public ControlWindow getControlWindow()
        -
        Returns:
        ControlWindow
        -
      • -
      - - - -
        -
      • -

        getDecimalPrecision

        -
        public int getDecimalPrecision()
        -
        Returns:
        int
        -
      • -
      - - - -
        -
      • -

        getDefaultValue

        -
        public float getDefaultValue()
        -
        Returns:
        float
        -
      • -
      - - - - - - - -
        -
      • -

        getId

        -
        public int getId()
        -
        returns the id of a controller, by default the id is -1. Any int can be given to a controller - as its ID, controlP5 does not recognize duplicates, this has to be managed on the user site.
        -
        -
        Specified by:
        -
        getId in interface ControllerInterface<T>
        -
        Returns:
        int
        -
      • -
      - - - -
        -
      • -

        getInfo

        -
        public java.lang.String getInfo()
        -
        Returns:
        String
        -
      • -
      - - - -
        -
      • -

        getLabel

        -
        public java.lang.String getLabel()
        -
        returns the controller's caption label text.
        -
        Returns:
        String
        -
      • -
      - - - -
        -
      • -

        getMax

        -
        public float getMax()
        -
        returns the maximum value of the controller.
        -
        Returns:
        float
        -
      • -
      - - - -
        -
      • -

        getMin

        -
        public float getMin()
        -
        returns the minimum value of the controller.
        -
        Returns:
        float
        -
      • -
      - - - -
        -
      • -

        getName

        -
        public java.lang.String getName()
        -
        returns the index name of the controller.
        -
        -
        Specified by:
        -
        getName in interface ControllerInterface<T>
        -
        Returns:
        String
        -
      • -
      - - - - - - - - - - - -
        -
      • -

        getPointer

        -
        public Pointer getPointer()
        -
      • -
      - - - -
        -
      • -

        getPosition

        -
        public processing.core.PVector getPosition()
        -
        get the position of a controller. e.g. Controller.getPosition().x;
        -
        -
        Specified by:
        -
        getPosition in interface ControllerInterface<T>
        -
        -
      • -
      - - - - - - - - - - - - - - - -
        -
      • -

        getTab

        -
        public Tab getTab()
        -
        get the instance of the tab the controller belongs to.
        -
        -
        Specified by:
        -
        getTab in interface ControllerInterface<T>
        -
        Returns:
        Tab
        -
      • -
      - - - - - - - -
        -
      • -

        getValueLabel

        -
        public Label getValueLabel()
        -
        Returns:
        Label
        -
      • -
      - - - - - - - - - - - - - - - - - - - - - - - -
        -
      • -

        isActive

        -
        public boolean isActive()
        -
        checks if a controller is active.
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        isBroadcast

        -
        public boolean isBroadcast()
        -
        check if broadcasting is enabled or disabled for a controller. Every event relevant for a - value change will be broadcasted to any of the value-listeners. By default broadcasting for a - controller is enabled.
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        isInside

        -
        public boolean isInside()
        -
        returns true or false and indicates if the mouse is inside the area of a controller.
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        isLabelVisible

        -
        public boolean isLabelVisible()
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        isListening

        -
        public boolean isListening()
        -
        returns true or false for the current listening status. by default it is set to false
        -
        Returns:
        boolean
        See Also:
        listen(boolean)
        -
      • -
      - - - -
        -
      • -

        isLock

        -
        public boolean isLock()
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        isMouseOver

        -
        public boolean isMouseOver()
        -
        check if the mouse is within this particular controller.
        -
        -
        Specified by:
        -
        isMouseOver in interface ControllerInterface<T>
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        isMousePressed

        -
        public boolean isMousePressed()
        -
        returns true or false if the mouse has is pressed.
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        isMoveable

        -
        public boolean isMoveable()
        -
        checks if a controller is moveable.
        -
        Returns:
        boolean
        -
      • -
      - - - - - - - -
        -
      • -

        isUserInteraction

        -
        public boolean isUserInteraction()
        -
        Returns:
        boolean
        -
      • -
      - - - - - - - -
        -
      • -

        keyEvent

        -
        public void keyEvent(processing.event.KeyEvent theEvent)
        -
        -
        Specified by:
        -
        keyEvent in interface ControllerInterface<T>
        -
        Parameters:
        KeyEvent - theEvent
        -
      • -
      - - - -
        -
      • -

        linebreak

        -
        public T linebreak()
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        listen

        -
        public T listen(boolean theValue)
        -
        enables a controller to listen to changes made to the variable linked to the controller. Use - true to enable and false to disable a controller from listening to changes.
        -
        Parameters:
        theFlag -
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        listenerSize

        -
        public int listenerSize()
        -
        Returns:
        int
        -
      • -
      - - - -
        -
      • -

        lock

        -
        public T lock()
        -
        disables the controller to be moved, or changed or controlled by the user.
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        moveTo

        -
        public final T moveTo(ControlGroup<?> theGroup)
        -
        Parameters:
        theGroup -
        -
        Returns:
        Controller
        -
      • -
      - - - - - - - - - - - -
        -
      • -

        moveTo

        -
        public final T moveTo(ControlWindow theControlWindow)
        -
        moves the controller to the default tab of a control window - other than the main window.
        -
        Parameters:
        theControlWindow -
        -
      • -
      - - - -
        -
      • -

        moveTo

        -
        public final T moveTo(ControlWindow theControlWindow,
        -       java.lang.String theTabName)
        -
        Parameters:
        theControlWindow -
        theTabName -
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        moveTo

        -
        public final T moveTo(processing.core.PApplet theApplet)
        -
        moves the controller to the default tab inside the main window.
        -
        Parameters:
        theApplet -
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        moveTo

        -
        public final T moveTo(processing.core.PApplet theApplet,
        -       java.lang.String theTabName)
        -
        moves the controller to a tab inside the main window.
        -
        Parameters:
        theApplet -
        theTabName -
        -
      • -
      - - - -
        -
      • -

        moveTo

        -
        public final T moveTo(java.lang.String theTabName)
        -
        moves the controller to another tab. The tab is defined by parameter theTabName. if controlP5 - can't find a tab with given name, controlP5 will create this tab and add it to the main - window.
        -
        Parameters:
        theTabName - String
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        moveTo

        -
        public final T moveTo(Tab theTab)
        -
        moves the controller to another tab.
        -
        Parameters:
        theTab -
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        plugTo

        -
        public T plugTo(java.lang.Object theObject)
        -
        Parameters:
        theObject -
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        plugTo

        -
        public T plugTo(java.lang.Object[] theObjects)
        -
        plugs the controller to a list of objects
        -
        Parameters:
        theObject -
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        plugTo

        -
        public T plugTo(java.lang.Object[] theObjects,
        -       java.lang.String theName)
        -
        Parameters:
        theObjects -
        theName -
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        plugTo

        -
        public T plugTo(java.lang.Object theObject,
        -       java.lang.String theName)
        -
      • -
      - - - - - - - -
        -
      • -

        registerProperty

        -
        public T registerProperty(java.lang.String theSetter,
        -                 java.lang.String theGetter)
        -
        -
        Specified by:
        -
        registerProperty in interface ControllerInterface<T>
        -
        -
      • -
      - - - -
        -
      • -

        registerTooltip

        -
        public T registerTooltip(java.lang.String theText)
        -
        adds a tooltip to a controller, by default the tooltip is disabled. A Tooltip is made visible - when entering a controller with the mouse, when the mouse is moved inside the controller, the - tooltip will hide.
        -
        Parameters:
        theText -
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        remove

        -
        public void remove()
        -
        removes a controller from controlP5.
        -
        -
        Specified by:
        -
        remove in interface ControllerInterface<T>
        -
        -
      • -
      - - - - - - - -
        -
      • -

        removeBehavior

        -
        public T removeBehavior()
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        removeCallback

        -
        public T removeCallback()
        -
        Returns:
        Controller
        -
      • -
      - - - - - - - -
        -
      • -

        removeListener

        -
        public T removeListener(ControlListener theListener)
        -
        Parameters:
        theListener - ControlListener
        -
        Returns:
        Controller
        See Also:
        ControlListener
        -
      • -
      - - - - - - - -
        -
      • -

        removeProperty

        -
        public T removeProperty(java.lang.String theSetter,
        -               java.lang.String theGetter)
        -
        -
        Specified by:
        -
        removeProperty in interface ControllerInterface<T>
        -
        -
      • -
      - - - - - - - - - - - -
        -
      • -

        setArrayValue

        -
        public T setArrayValue(float[] theArray)
        -
        -
        Specified by:
        -
        setArrayValue in interface ControllerInterface<T>
        -
        Parameters:
        theArray -
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setArrayValue

        -
        public T setArrayValue(int theIndex,
        -              float theValue)
        -
        -
        Specified by:
        -
        setArrayValue in interface ControllerInterface<T>
        -
        Parameters:
        theIndex -
        theValue -
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setBehavior

        -
        public T setBehavior(ControlBehavior theBehavior)
        -
        with setBehavior you can add a ControlBehavior to a controller. A ControlBehavior can be used - to e.g. automatically change state, function, position, etc.
        -
        Parameters:
        theBehavior - ControlBehavior
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setBroadcast

        -
        public T setBroadcast(boolean theFlag)
        -
        Use setBroadcast to enable and disable the broadcasting of changes in a controller's value. - By default any value changes are forwarded to function controlEvent inside your program. use - setBroadcast(false) to disable forwarding.
        -
        Parameters:
        theFlag - boolean
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setCaptionLabel

        -
        public T setCaptionLabel(java.lang.String theLabel)
        -
        sets the content of the caption label of a controller.
        -
        -
        Specified by:
        -
        setCaptionLabel in interface ControllerInterface<T>
        -
        Parameters:
        theLabel -
        -
        Returns:
        Controller
        -
      • -
      - - - - - - - - - - - - - - - -
        -
      • -

        setColorCaptionLabel

        -
        public T setColorCaptionLabel(int theColor)
        -
        Parameters:
        theColor -
        -
        Returns:
        Controller
        -
      • -
      - - - - - - - -
        -
      • -

        setColorValueLabel

        -
        public T setColorValueLabel(int theColor)
        -
        Parameters:
        theColor -
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setDecimalPrecision

        -
        public T setDecimalPrecision(int theValue)
        -
        sets the decimal precision of a controller's float value displayed. the precision does not - apply to the returned float value.
        -
        Parameters:
        theValue -
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setDefaultValue

        -
        public T setDefaultValue(float theValue)
        -
        set the default value.
        -
        Parameters:
        theValue - float
        -
        Returns:
        Controller
        -
      • -
      - - - - - - - -
        -
      • -

        setGroup

        -
        public final T setGroup(java.lang.String theName)
        -
        sets the group of the controller.
        -
        Parameters:
        theName - String
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setHeight

        -
        public T setHeight(int theHeight)
        -
        Parameters:
        theHeight -
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setId

        -
        public T setId(int theId)
        -
        set the id of a controller.
        -
        -
        Specified by:
        -
        setId in interface ControllerInterface<T>
        -
        Parameters:
        int - theId
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setImage

        -
        public T setImage(processing.core.PImage theImage)
        -
      • -
      - - - -
        -
      • -

        setImage

        -
        public T setImage(processing.core.PImage theImage,
        -         int theState)
        -
        Parameters:
        theImage -
        theState - use Controller.DEFAULT (background) Controller.OVER (foreground) - Controller.ACTIVE (active)
        -
      • -
      - - - -
        -
      • -

        setImages

        -
        public T setImages(processing.core.PImage... imgs)
        -
      • -
      - - - -
        -
      • -

        setImages

        -
        public T setImages(processing.core.PImage theImageDefault,
        -          processing.core.PImage theImageOver,
        -          processing.core.PImage theImageActive)
        -
        by default controllers use simple shapes, to replace these shapes with images, use - setImages(). This can be handy for buttons, toggles, bangs, for more complex controllers such - as sliders, range, dropdownlist this is not advisable.
        -
        Parameters:
        theImageDefault -
        theImageOver -
        theImageActive -
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setImages

        -
        public T setImages(processing.core.PImage theImageDefault,
        -          processing.core.PImage theImageOver,
        -          processing.core.PImage theImageActive,
        -          processing.core.PImage theImageHighlight)
        -
      • -
      - - - -
        -
      • -

        setLabelVisible

        -
        public T setLabelVisible(boolean theValue)
        -
        show or hide the labels of a controller.
        -
        Parameters:
        theValue - boolean
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setLock

        -
        public T setLock(boolean theValue)
        -
        sets the lock status of the controller
        -
        Parameters:
        theValue -
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setMax

        -
        public T setMax(float theValue)
        -
        sets the maximum value of the Controller.
        -
        Parameters:
        theValue - float
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setMin

        -
        public T setMin(float theValue)
        -
        sets the minimum value of the Controller.
        -
        Parameters:
        theValue - float
        -
        Returns:
        Controller
        -
      • -
      - - - - - - - -
        -
      • -

        setMousePressed

        -
        public final boolean setMousePressed(boolean theStatus)
        -
        -
        Specified by:
        -
        setMousePressed in interface ControllerInterface<T>
        -
        Parameters:
        theStatus - boolean
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        setMoveable

        -
        public T setMoveable(boolean theValue)
        -
        enable or prevent the controller to be moveable. By default a controller is moveable.
        -
        Parameters:
        theValue - boolean
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setParent

        -
        public final T setParent(ControllerInterface<?> theParent)
        -
        set the parent of a parent of a controller. this method is only meant for internal use. this - method is final and can't be overwritten.
        -
        Parameters:
        theParent - ControllerInterface
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setPosition

        -
        public T setPosition(float theX,
        -            float theY)
        -
        set the position of a controller. The position of a controller is relative.
        -
        -
        Specified by:
        -
        setPosition in interface ControllerInterface<T>
        -
        Parameters:
        theX - float
        theY - float
        -
        Returns:
        Controller
        -
      • -
      - - - - - - - -
        -
      • -

        setSize

        -
        public T setSize(int theWidth,
        -        int theHeight)
        -
        Parameters:
        theWidth -
        theHeight -
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setSize

        -
        public T setSize(processing.core.PImage theImage)
        -
        auto-updates the size of a controller according to the dimensions of the PImage.
        -
        Parameters:
        theImage -
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setStringValue

        -
        public T setStringValue(java.lang.String theValue)
        -
        -
        Specified by:
        -
        setStringValue in interface ControllerInterface<T>
        -
        Parameters:
        theValue -
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setTab

        -
        public final T setTab(ControlWindow theWindow,
        -       java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        setTab

        -
        public final T setTab(java.lang.String theName)
        -
        sets the tab of the controller.
        -
        Parameters:
        theName - String
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setUpdate

        -
        public T setUpdate(boolean theFlag)
        -
        disables the update function for a controller.
        -
        -
        Specified by:
        -
        setUpdate in interface ControllerInterface<T>
        -
        Parameters:
        theFlag - boolean
        -
        Returns:
        Controller
        See Also:
        update(), -isUpdate()
        -
      • -
      - - - -
        -
      • -

        setUserInteraction

        -
        public T setUserInteraction(boolean theValue)
        -
      • -
      - - - -
        -
      • -

        setValue

        -
        public T setValue(float theValue)
        -
        -
        Specified by:
        -
        setValue in interface ControllerInterface<T>
        -
        Parameters:
        theValue - float
        -
      • -
      - - - -
        -
      • -

        setValueLabel

        -
        public T setValueLabel(java.lang.String theLabel)
        -
        set or change the value of the value label of a controller. (this is cheating, but maybe - useful for some cases.)
        -
        Parameters:
        theLabel -
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setValueSelf

        -
        public T setValueSelf(float theValue)
        -
      • -
      - - - -
        -
      • -

        setView

        -
        public T setView(ControllerView<T> theDisplay)
        -
        use setDisplay to customize your controller look. A new controller-display class required to - implement interface ControllerView. By default the display mode will be set to CUSTOM when - setting a new display.
        -
        Parameters:
        theDisplay -
        -
        Returns:
        Controller
        See Also:
        ControllerView
        -
      • -
      - - - -
        -
      • -

        setView

        -
        public void setView(ControllerView<T> theDisplay,
        -           int theMode)
        -
      • -
      - - - -
        -
      • -

        setVisible

        -
        public T setVisible(boolean theFlag)
        -
        Parameters:
        theFlag - boolean
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setWidth

        -
        public T setWidth(int theWidth)
        -
        Parameters:
        theWidth -
        -
        Returns:
        Controller
        -
      • -
      - - - - - - - -
        -
      • -

        toString

        -
        public java.lang.String toString()
        -
        -
        Overrides:
        -
        toString in class java.lang.Object
        -
        -
      • -
      - - - -
        -
      • -

        unlock

        -
        public T unlock()
        -
        enables the controller to be moved, changed and controlled by the user.
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        unplugFrom

        -
        public T unplugFrom(java.lang.Object theObject)
        -
        unplugs the Controller for a single object
        -
        Parameters:
        theObject -
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        unplugFrom

        -
        public T unplugFrom(java.lang.Object[] theObjects)
        -
        unplugs the controller from a list of objects
        -
        Parameters:
        theObjects -
        -
        Returns:
        -
      • -
      - - - - - - - -
        -
      • -

        update

        -
        public T update()
        -
        updates the value of the controller without having to set the value explicitly. update does - not visually update the controller. the updating status can be set with setUpdate(true/false) - and checked with isUpdate().
        -
        -
        Specified by:
        -
        update in interface ControllerInterface<T>
        -
        Returns:
        Controller
        See Also:
        setUpdate(boolean), -isUpdate()
        -
      • -
      - - - - - - - -
        -
      • -

        updateEvents

        -
        public final T updateEvents()
        -
        updateEvents is used for internal updates of a controller. this method is final and can't be - overwritten.
        -
        -
        Specified by:
        -
        updateEvents in interface ControllerInterface<T>
        -
        -
      • -
      - - - -
        -
      • -

        updateInternalEvents

        -
        public T updateInternalEvents(processing.core.PApplet theApplet)
        -
        Description copied from interface: ControllerInterface
        -
        a method for putting input events like e.g. mouse or keyboard events and queries. this has - been taken out of the draw method for better overwriting capability.
        -
        -
        Specified by:
        -
        updateInternalEvents in interface ControllerInterface<T>
        -
        See Also:
        ControllerInterface.updateInternalEvents
        -
      • -
      - - - -
        -
      • -

        updateSize

        -
        public T updateSize()
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControllerGroup.html b/reference/controlP5/ControllerGroup.html deleted file mode 100644 index f56aea2..0000000 --- a/reference/controlP5/ControllerGroup.html +++ /dev/null @@ -1,2422 +0,0 @@ - - - - - -ControllerGroup (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ControllerGroup<T>

-
-
- -
- -
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ControllerGroup

        -
        public ControllerGroup(ControlP5 theControlP5,
        -               ControllerGroup<?> theParent,
        -               java.lang.String theName,
        -               float theX,
        -               float theY)
        -
        Parameters:
        theControlP5 - ControlP5
        theParent - ControllerGroup
        theName - String
        theX - float
        theY - float
        -
      • -
      - - - -
        -
      • -

        ControllerGroup

        -
        public ControllerGroup(ControlP5 theControlP5,
        -               java.lang.String theName)
        -
        Convenience constructor to extend ControllerGroup.
        -
        Parameters:
        theControlP5 -
        theName -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        absolutePosition

        -
        @Deprecated
        -public processing.core.PVector absolutePosition()
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        add

        -
        public T add(ControllerInterface<?> theElement)
        -
        Adds a controller to the group, but use Controller.setGroup() instead.
        -
        -
        Specified by:
        -
        add in interface ControllerInterface<T>
        -
        Parameters:
        theElement - ControllerInterface
        -
        Returns:
        ControllerGroup
        -
      • -
      - - - -
        -
      • -

        addCanvas

        -
        public Canvas addCanvas(Canvas theCanvas)
        -
        Adds a canvas to a controllerGroup such as a tab or group. Use processing's draw methods to - add visual content.
        -
        Parameters:
        theCanvas -
        -
        Returns:
        Canvas
        -
      • -
      - - - -
        -
      • -

        addCloseButton

        -
        public T addCloseButton()
        -
        TODO redesign or deprecate add a close button to the controlbar of this controlGroup.
        -
      • -
      - - - -
        -
      • -

        addDrawable

        -
        public T addDrawable(CDrawable theElement)
        -
        Parameters:
        theElement - CDrawable
        -
        Returns:
        ControllerGroup
        -
      • -
      - - - - - - - -
        -
      • -

        arrayValue

        -
        @Deprecated
        -public float[] arrayValue()
        -
        Deprecated. 
        -
      • -
      - - - - - - - - - - - -
        -
      • -

        close

        -
        public T close()
        -
      • -
      - - - -
        -
      • -

        color

        -
        @Deprecated
        -public CColor color()
        -
        Deprecated. 
        -
      • -
      - - - - - - - -
        -
      • -

        controlEvent

        -
        public void controlEvent(ControlEvent theEvent)
        -
        Description copied from interface: ControlListener
        -
        controlEvent is called by controlP5's ControlBroadcaster to inform available listeners about - value changes. Use the CallbackListener to get informed when actions such as pressed, - release, drag, etc are performed.
        -
        -
        Specified by:
        -
        controlEvent in interface ControlListener
        -
        Parameters:
        theEvent - ControlEvent
        See Also:
        CallbackListener, -CallbackEvent
        -
      • -
      - - - -
        -
      • -

        controller

        -
        @Deprecated
        -public Controller<?> controller(java.lang.String theController)
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        disableCollapse

        -
        public T disableCollapse()
        -
        Returns:
        ControllerGroup
        -
      • -
      - - - -
        -
      • -

        draw

        -
        public final void draw(processing.core.PGraphics theGraphics)
        -
        -
        Specified by:
        -
        draw in interface ControllerInterface<T>
        -
        -
      • -
      - - - -
        -
      • -

        enableCollapse

        -
        public T enableCollapse()
        -
        Returns:
        ControllerGroup
        -
      • -
      - - - - - - - - - - - - - - - -
        -
      • -

        getArrayValue

        -
        public float getArrayValue(int theIndex)
        -
        -
        Specified by:
        -
        getArrayValue in interface ControllerInterface<T>
        -
        Parameters:
        theIndex -
        -
        Returns:
        float
        -
      • -
      - - - -
        -
      • -

        getCaptionLabel

        -
        public Label getCaptionLabel()
        -
      • -
      - - - - - - - -
        -
      • -

        getController

        -
        public Controller<?> getController(java.lang.String theController)
        -
      • -
      - - - - - - - - - - - -
        -
      • -

        getInfo

        -
        public java.lang.String getInfo()
        -
      • -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        -
      • -

        getValueLabel

        -
        public Label getValueLabel()
        -
      • -
      - - - - - - - - - - - - - - - -
        -
      • -

        hideArrow

        -
        public T hideArrow()
        -
        Returns:
        ControlGroup
        -
      • -
      - - - -
        -
      • -

        hideBar

        -
        public T hideBar()
        -
      • -
      - - - -
        -
      • -

        id

        -
        @Deprecated
        -public int id()
        -
        Deprecated. 
        -
        -
        Specified by:
        -
        id in interface ControllerInterface<T>
        -
        -
      • -
      - - - - - - - -
        -
      • -

        isBarVisible

        -
        public boolean isBarVisible()
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        isCollapse

        -
        public boolean isCollapse()
        -
      • -
      - - - - - - - -
        -
      • -

        isMoveable

        -
        public boolean isMoveable()
        -
      • -
      - - - -
        -
      • -

        isOpen

        -
        public boolean isOpen()
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        isUpdate

        -
        public boolean isUpdate()
        -
        checks the update status of a controller.
        -
        -
        Specified by:
        -
        isUpdate in interface ControllerInterface<T>
        -
        Returns:
        boolean
        -
      • -
      - - - - - - - -
        -
      • -

        keyEvent

        -
        public void keyEvent(processing.event.KeyEvent theEvent)
        -
        -
        Specified by:
        -
        keyEvent in interface ControllerInterface<T>
        -
        Parameters:
        theEvent - KeyEvent
        -
      • -
      - - - -
        -
      • -

        listenerSize

        -
        public int listenerSize()
        -
        Returns:
        int
        -
      • -
      - - - - - - - - - - - - - - - -
        -
      • -

        moveTo

        -
        public final T moveTo(ControlWindow theControlWindow,
        -       java.lang.String theTabName)
        -
      • -
      - - - -
        -
      • -

        moveTo

        -
        public T moveTo(processing.core.PApplet thePApplet)
        -
      • -
      - - - -
        -
      • -

        moveTo

        -
        public final T moveTo(java.lang.String theTabName)
        -
      • -
      - - - -
        -
      • -

        moveTo

        -
        public final T moveTo(java.lang.String theTabName,
        -       ControlWindow theControlWindow)
        -
      • -
      - - - -
        -
      • -

        moveTo

        -
        public final T moveTo(Tab theTab)
        -
      • -
      - - - -
        -
      • -

        moveTo

        -
        public final T moveTo(Tab theTab,
        -       ControlWindow theControlWindow)
        -
      • -
      - - - -
        -
      • -

        name

        -
        @Deprecated
        -public java.lang.String name()
        -
        Deprecated. 
        -
        -
        Specified by:
        -
        name in interface ControllerInterface<T>
        -
        -
      • -
      - - - -
        -
      • -

        open

        -
        public T open()
        -
      • -
      - - - - - - - -
        -
      • -

        position

        -
        @Deprecated
        -public processing.core.PVector position()
        -
        Deprecated. 
        -
      • -
      - - - - - - - -
        -
      • -

        registerProperty

        -
        public T registerProperty(java.lang.String theSetter,
        -                 java.lang.String theGetter)
        -
        -
        Specified by:
        -
        registerProperty in interface ControllerInterface<T>
        -
        -
      • -
      - - - -
        -
      • -

        remove

        -
        public void remove()
        -
        removes the group from controlP5.
        -
        -
        Specified by:
        -
        remove in interface ControllerInterface<T>
        -
        -
      • -
      - - - -
        -
      • -

        remove

        -
        public T remove(CDrawable theElement)
        -
        Parameters:
        theElement - CDrawable
        -
        Returns:
        ControllerGroup
        -
      • -
      - - - -
        -
      • -

        remove

        -
        public T remove(ControllerInterface<?> theElement)
        -
        Removes a controller from the group, but use Controller.setGroup() instead.
        -
        -
        Specified by:
        -
        remove in interface ControllerInterface<T>
        -
        Parameters:
        theElement - ControllerInterface
        -
        Returns:
        ControllerGroup
        -
      • -
      - - - -
        -
      • -

        removeCanvas

        -
        public T removeCanvas(Canvas theCanvas)
        -
        Removes a canvas from a controller group.
        -
        Parameters:
        theCanvas -
        -
        Returns:
        ControllerGroup
        -
      • -
      - - - -
        -
      • -

        removeCloseButton

        -
        public T removeCloseButton()
        -
        TODO redesign or deprecate remove the close button.
        -
      • -
      - - - -
        -
      • -

        removeListener

        -
        public T removeListener(ControlListener theListener)
        -
        Parameters:
        theListener - ControlListener
        -
        Returns:
        Controller
        See Also:
        ControlListener
        -
      • -
      - - - - - - - -
        -
      • -

        removeProperty

        -
        public T removeProperty(java.lang.String theSetter,
        -               java.lang.String theGetter)
        -
        -
        Specified by:
        -
        removeProperty in interface ControllerInterface<T>
        -
        -
      • -
      - - - - - - - - - - - -
        -
      • -

        setArrayValue

        -
        public T setArrayValue(float[] theArray)
        -
        -
        Specified by:
        -
        setArrayValue in interface ControllerInterface<T>
        -
        Parameters:
        theArray -
        -
        Returns:
        ControllerGroup
        -
      • -
      - - - -
        -
      • -

        setArrayValue

        -
        public T setArrayValue(int theIndex,
        -              float theValue)
        -
        -
        Specified by:
        -
        setArrayValue in interface ControllerInterface<T>
        -
        Parameters:
        theIndex -
        theValue -
        -
        Returns:
        Controller
        -
      • -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        -
      • -

        setGroup

        -
        public final T setGroup(ControllerGroup<?> theGroup)
        -
        Parameters:
        theGroup - ControllerGroup
        -
        Returns:
        ControllerGroup
        -
      • -
      - - - -
        -
      • -

        setGroup

        -
        public final T setGroup(java.lang.String theName)
        -
        Parameters:
        theName - String
        -
        Returns:
        ControllerGroup
        -
      • -
      - - - -
        -
      • -

        setHeight

        -
        public T setHeight(int theHeight)
        -
        Parameters:
        theHeight -
        -
        Returns:
        ControllerGroup
        -
      • -
      - - - - - - - -
        -
      • -

        setLabel

        -
        public T setLabel(java.lang.String theLabel)
        -
        -
        Specified by:
        -
        setLabel in interface ControllerInterface<T>
        -
        Parameters:
        theLabel - String
        -
        Returns:
        ControllerGroup
        -
      • -
      - - - - - - - -
        -
      • -

        setMousePressed

        -
        public boolean setMousePressed(boolean theStatus)
        -
        -
        Specified by:
        -
        setMousePressed in interface ControllerInterface<T>
        -
        Parameters:
        theStatus - boolean
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        setMoveable

        -
        public T setMoveable(boolean theFlag)
        -
        set the moveable status of the group, when false, the group can't be moved.
        -
        Parameters:
        theFlag - boolean
        -
        Returns:
        ControllerGroup
        -
      • -
      - - - -
        -
      • -

        setOpen

        -
        public T setOpen(boolean theFlag)
        -
      • -
      - - - -
        -
      • -

        setPosition

        -
        public T setPosition(float theX,
        -            float theY)
        -
        set the position of this controller.
        -
        -
        Specified by:
        -
        setPosition in interface ControllerInterface<T>
        -
        Parameters:
        theX - float
        theY - float
        -
      • -
      - - - - - - - -
        -
      • -

        setSize

        -
        public T setSize(int theWidth,
        -        int theHeight)
        -
      • -
      - - - - - - - -
        -
      • -

        setTab

        -
        public final T setTab(ControlWindow theWindow,
        -       java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        setTab

        -
        public final T setTab(java.lang.String theName)
        -
        Parameters:
        theName - String
        -
        Returns:
        ControllerGroup
        -
      • -
      - - - -
        -
      • -

        setTab

        -
        public final T setTab(Tab theTab)
        -
        Parameters:
        theTab - Tab
        -
        Returns:
        ControllerGroup
        -
      • -
      - - - -
        -
      • -

        setTitle

        -
        public T setTitle(java.lang.String theTitle)
        -
      • -
      - - - -
        -
      • -

        setUpdate

        -
        public T setUpdate(boolean theFlag)
        -
        enables or disables the update function of a controller.
        -
        -
        Specified by:
        -
        setUpdate in interface ControllerInterface<T>
        -
        Parameters:
        theFlag - boolean
        -
        Returns:
        ControllerGroup
        -
      • -
      - - - - - - - -
        -
      • -

        setVisible

        -
        public T setVisible(boolean theFlag)
        -
        Parameters:
        theFlag - boolean
        -
        Returns:
        ControllerGroup
        -
      • -
      - - - -
        -
      • -

        setWidth

        -
        public T setWidth(int theWidth)
        -
        Parameters:
        theWidth -
        -
        Returns:
        ControllerGroup
        -
      • -
      - - - - - - - -
        -
      • -

        showArrow

        -
        public T showArrow()
        -
        Returns:
        ControlGroup
        -
      • -
      - - - -
        -
      • -

        showBar

        -
        public T showBar()
        -
      • -
      - - - -
        -
      • -

        stringValue

        -
        @Deprecated
        -public java.lang.String stringValue()
        -
        Deprecated. 
        -
        -
        Specified by:
        -
        stringValue in interface ControllerInterface<T>
        -
        -
      • -
      - - - -
        -
      • -

        toString

        -
        public java.lang.String toString()
        -
        -
        Overrides:
        -
        toString in class java.lang.Object
        -
        -
      • -
      - - - - - - - - - - - - - - - -
        -
      • -

        updateInternalEvents

        -
        public T updateInternalEvents(processing.core.PApplet theApplet)
        -
        Description copied from interface: ControllerInterface
        -
        a method for putting input events like e.g. mouse or keyboard events and queries. this has - been taken out of the draw method for better overwriting capability.
        -
        -
        Specified by:
        -
        updateInternalEvents in interface ControllerInterface<T>
        -
        -
      • -
      - - - -
        -
      • -

        value

        -
        @Deprecated
        -public float value()
        -
        Deprecated. 
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControllerInterface.html b/reference/controlP5/ControllerInterface.html deleted file mode 100644 index bfac44e..0000000 --- a/reference/controlP5/ControllerInterface.html +++ /dev/null @@ -1,1043 +0,0 @@ - - - - - -ControllerInterface (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Interface ControllerInterface<T>

-
-
-
- -
-
- -
-
-
    -
  • - -
      -
    • - - -

      Method Detail

      - - - - - - - - - - - -
        -
      • -

        bringToFront

        -
        T bringToFront()
        -
      • -
      - - - - - - - -
        -
      • -

        continuousUpdateEvents

        -
        void continuousUpdateEvents()
        -
      • -
      - - - -
        -
      • -

        draw

        -
        void draw(processing.core.PGraphics theGraphics)
        -
      • -
      - - - -
        -
      • -

        getAbsolutePosition

        -
        processing.core.PVector getAbsolutePosition()
        -
      • -
      - - - -
        -
      • -

        getAddress

        -
        java.lang.String getAddress()
        -
      • -
      - - - -
        -
      • -

        getArrayValue

        -
        float[] getArrayValue()
        -
      • -
      - - - -
        -
      • -

        getArrayValue

        -
        float getArrayValue(int theIndex)
        -
      • -
      - - - -
        -
      • -

        getColor

        -
        CColor getColor()
        -
      • -
      - - - -
        -
      • -

        getHeight

        -
        int getHeight()
        -
      • -
      - - - -
        -
      • -

        getId

        -
        int getId()
        -
      • -
      - - - -
        -
      • -

        getName

        -
        java.lang.String getName()
        -
      • -
      - - - - - - - -
        -
      • -

        getPickingColor

        -
        int getPickingColor()
        -
      • -
      - - - -
        -
      • -

        getPosition

        -
        processing.core.PVector getPosition()
        -
      • -
      - - - - - - - -
        -
      • -

        getProperty

        -
        ControllerProperty getProperty(java.lang.String theSetter,
        -                             java.lang.String theGetter)
        -
      • -
      - - - -
        -
      • -

        getStringValue

        -
        java.lang.String getStringValue()
        -
      • -
      - - - -
        -
      • -

        getTab

        -
        Tab getTab()
        -
      • -
      - - - -
        -
      • -

        getValue

        -
        float getValue()
        -
      • -
      - - - -
        -
      • -

        getWidth

        -
        int getWidth()
        -
      • -
      - - - - - - - -
        -
      • -

        hide

        -
        T hide()
        -
      • -
      - - - -
        -
      • -

        init

        -
        void init()
        -
      • -
      - - - -
        -
      • -

        isMouseOver

        -
        boolean isMouseOver()
        -
      • -
      - - - -
        -
      • -

        isUpdate

        -
        boolean isUpdate()
        -
      • -
      - - - -
        -
      • -

        isVisible

        -
        boolean isVisible()
        -
      • -
      - - - -
        -
      • -

        keyEvent

        -
        void keyEvent(processing.event.KeyEvent theEvent)
        -
      • -
      - - - - - - - - - - - - - - - -
        -
      • -

        registerProperty

        -
        T registerProperty(java.lang.String thePropertyName)
        -
      • -
      - - - -
        -
      • -

        registerProperty

        -
        T registerProperty(java.lang.String theSetter,
        -                 java.lang.String theGetter)
        -
      • -
      - - - -
        -
      • -

        remove

        -
        void remove()
        -
      • -
      - - - - - - - -
        -
      • -

        removeProperty

        -
        T removeProperty(java.lang.String thePropertyName)
        -
      • -
      - - - -
        -
      • -

        removeProperty

        -
        T removeProperty(java.lang.String theSetter,
        -               java.lang.String theGetter)
        -
      • -
      - - - -
        -
      • -

        setAbsolutePosition

        -
        T setAbsolutePosition(processing.core.PVector thePVector)
        -
      • -
      - - - -
        -
      • -

        setAddress

        -
        T setAddress(java.lang.String theAddress)
        -
      • -
      - - - -
        -
      • -

        setArrayValue

        -
        T setArrayValue(float[] theArray)
        -
      • -
      - - - -
        -
      • -

        setArrayValue

        -
        T setArrayValue(int theIndex,
        -              float theValue)
        -
      • -
      - - - -
        -
      • -

        setCaptionLabel

        -
        T setCaptionLabel(java.lang.String theValue)
        -
      • -
      - - - -
        -
      • -

        setColor

        -
        T setColor(CColor theColor)
        -
      • -
      - - - -
        -
      • -

        setColorActive

        -
        T setColorActive(int theColor)
        -
      • -
      - - - -
        -
      • -

        setColorBackground

        -
        T setColorBackground(int theColor)
        -
      • -
      - - - -
        -
      • -

        setColorForeground

        -
        T setColorForeground(int theColor)
        -
      • -
      - - - -
        -
      • -

        setColorLabel

        -
        T setColorLabel(int theColor)
        -
      • -
      - - - -
        -
      • -

        setColorValue

        -
        T setColorValue(int theColor)
        -
      • -
      - - - -
        -
      • -

        setId

        -
        T setId(int theValue)
        -
      • -
      - - - -
        -
      • -

        setLabel

        -
        T setLabel(java.lang.String theString)
        -
      • -
      - - - -
        -
      • -

        setMouseOver

        -
        T setMouseOver(boolean theFlag)
        -
      • -
      - - - -
        -
      • -

        setMousePressed

        -
        boolean setMousePressed(boolean theStatus)
        -
      • -
      - - - -
        -
      • -

        setPosition

        -
        T setPosition(float theX,
        -            float theY)
        -
      • -
      - - - -
        -
      • -

        setPosition

        -
        T setPosition(processing.core.PVector thePVector)
        -
      • -
      - - - -
        -
      • -

        setStringValue

        -
        T setStringValue(java.lang.String theValue)
        -
      • -
      - - - -
        -
      • -

        setUpdate

        -
        T setUpdate(boolean theFlag)
        -
      • -
      - - - -
        -
      • -

        setValue

        -
        T setValue(float theValue)
        -
      • -
      - - - -
        -
      • -

        show

        -
        T show()
        -
      • -
      - - - -
        -
      • -

        update

        -
        T update()
        -
      • -
      - - - -
        -
      • -

        updateAbsolutePosition

        -
        T updateAbsolutePosition()
        -
      • -
      - - - -
        -
      • -

        updateEvents

        -
        T updateEvents()
        -
      • -
      - - - -
        -
      • -

        updateInternalEvents

        -
        T updateInternalEvents(processing.core.PApplet theApplet)
        -
        a method for putting input events like e.g. mouse or keyboard events and queries. this has - been taken out of the draw method for better overwriting capability.
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControllerList.html b/reference/controlP5/ControllerList.html deleted file mode 100644 index 1e128ca..0000000 --- a/reference/controlP5/ControllerList.html +++ /dev/null @@ -1,330 +0,0 @@ - - - - - -ControllerList (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ControllerList

-
-
- -
-
    -
  • -
    -
    -
    public class ControllerList
    -extends java.lang.Object
    -
    Stores objects of type ControllerInterface and CDrawable, mainly for internal use.
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ControllerList

        -
        public ControllerList()
        -
      • -
      -
    • -
    - - -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControllerPlug.html b/reference/controlP5/ControllerPlug.html deleted file mode 100644 index 67bb1a6..0000000 --- a/reference/controlP5/ControllerPlug.html +++ /dev/null @@ -1,401 +0,0 @@ - - - - - -ControllerPlug (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ControllerPlug

-
-
- -
-
    -
  • -
    -
    -
    public class ControllerPlug
    -extends java.lang.Object
    -
    The ControllerPlug is used to do all the reflection procedures to link a controller to a variable - or function inside your main application.
    -
    -
    +Example
    /**
    -* ControlP5 plugTo
    -*
    -* This example demonstrate how to use the plugTo method to
    -* connect a controller to a field or method of a particular object.
    -* 
    -*
    -* find a list of public methods available for the ControlP5 Controller
    -* at the bottom of this sketch.
    -*
    -* by Andreas Schlegel, 2011
    -* www.sojamo.de/libraries/controlp5
    -*
    -*/
    -
    -import controlP5.*;
    -import processing.opengl.*;
    -
    -ControlP5 controlP5;
    -
    -Test[] testarray;
    -
    -Test test;
    -
    -Button b;
    -
    -int cnt;
    -
    -void setup() {
    -  size(600,400);
    -  smooth();
    -  test = new Test(50);
    -  testarray = new Test[10];
    -  for(int i=0;i<10;i++) {
    -    testarray[i] = new Test(200 + i*20);
    -  }
    -  
    -  controlP5 = new ControlP5(this);
    -  
    -  controlP5.begin(100,20);
    -  
    -  b = controlP5.addButton("trigger",1);
    -  b.setColorBackground(ControlP5.RED);
    -  
    -  controlP5.addButton("plug",2);
    -  controlP5.addButton("unplug",3);
    -  
    -  // b is a button previously added to controlP5 with name 'trigger'
    -  // controlP5 no tries to find a field or method inside object test
    -  // in order to connect controller 'trigger' with test.trigger()
    -  b.plugTo(test);
    -  controlP5.end();
    -}
    -
    -// connects controller 'trigger' with objects of type Test contained 
    -// inside arrat testarray
    -void plug(int theValue) {
    -   b.plugTo(testarray);
    -   b.setColorBackground(ControlP5.GREEN);
    -   println("plugging controller b1 to array 'testarray' and variable 'test'.");
    -}
    -
    -// disconnects controller 'trigger' from objects of type Test stored 
    -// inside array testarray
    -void unplug(int theValue) {
    -  b.unplugFrom(testarray);
    -  b.setColorBackground(ControlP5.RED);
    -  println("removing array 'testarray' and variable 'test' from controller b1.");
    -}
    -
    -
    -void draw() {
    -  background(0);
    -  fill(255);
    -  for(int i=0;i<10;i++) {
    -    testarray[i].display();
    -  }
    -  test.display();
    -  cnt++;
    -  if(cnt%30 == 0) {
    -    controlP5.getController("trigger").update();
    -  }
    -}
    -
    -
    -class Test {
    -  float n0 = 0; 
    -  float n1 = 1; 
    -  float x;
    -  
    -  Test(float theX) {
    -    x = theX;
    -  } 
    -  
    -  void trigger(int theValue) {
    -    n1 = random(100);
    -  }
    -  
    -  void display() {
    -    n0 += (n1-n0) * 0.1;
    -    rect(x,200,10,n0);
    -  }
    -
    -  void controlEvent(ControlEvent theEvent) {
    -    //println("\t\t b1 event sub \n\n");
    -  }
    -}
    -
    -
    -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - -
      Constructors 
      Constructor and Description
      ControllerPlug(java.lang.Object theObject, - java.lang.String theName, - int theType, - int theParameterType, - java.lang.Class<?>[] theAcceptClassList) 
      -
    • -
    - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      static booleancheckPlug(java.lang.Object theObject, - java.lang.String thePlugName, - java.lang.Class<?>[] theArgs) 
      voidset(java.lang.Object theObject, - java.lang.String theName, - int theType, - int theParameterType, - java.lang.Class<?>[] theAcceptClassList) 
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ControllerPlug

        -
        public ControllerPlug(java.lang.Object theObject,
        -              java.lang.String theName,
        -              int theType,
        -              int theParameterType,
        -              java.lang.Class<?>[] theAcceptClassList)
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        checkPlug

        -
        public static boolean checkPlug(java.lang.Object theObject,
        -                java.lang.String thePlugName,
        -                java.lang.Class<?>[] theArgs)
        -
      • -
      - - - -
        -
      • -

        set

        -
        public void set(java.lang.Object theObject,
        -       java.lang.String theName,
        -       int theType,
        -       int theParameterType,
        -       java.lang.Class<?>[] theAcceptClassList)
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControllerProperties.html b/reference/controlP5/ControllerProperties.html deleted file mode 100644 index 10c83ab..0000000 --- a/reference/controlP5/ControllerProperties.html +++ /dev/null @@ -1,1040 +0,0 @@ - - - - - -ControllerProperties (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ControllerProperties

-
-
- -
-
    -
  • -
    -
    -
    public class ControllerProperties
    -extends java.lang.Object
    -
    Values of controllers can be stored inside properties files which can be saved to file or memory.
    -
    -
    +Example
    /**
    - * ControlP5 Properties 
    - *
    - *
    - * saves controller values to a properties-file
    - * loads controller values from a properties-file
    - *
    - * Properties will only save values not the Controller itself.
    - * 
    - * Also take a look at the use/ControlP5snapshot example to 
    - * save controller values to memory.
    - *
    - * Use ControllerProperties to load and save serialized controller properties 
    - * to a properties file. 
    - * The controllers implementing save/load properties so far are 
    - * Slider, Knob, Numberbox, Toggle, Checkbox, RadioButton, Textlabel, 
    - * Matrix, Range, Textarea, ListBox, Dropdown, ColorPicker. 
    - * Properties are currently saved in the java serialization format.
    - *
    - * saveProperties(String theFilename) and loadProperties(String theFilename) 
    - * by default properties will be saved to your sketch folder as controlP5.ser
    - * if that file already exists it will be overwritten. for custom property files
    - * see the comments inside keyPressed() below.
    - *
    - * find a list of public methods available for the ControllerProperties class 
    - * at the bottom of this sketch's source code
    - *
    - * default properties load/save key combinations are 
    - * alt+shift+l to load properties
    - * alt+shift+s to save properties
    - *
    - * by andreas schlegel, 2012
    - * www.sojamo.de/libraries/controlp5
    - *
    - */
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -public int myColor = color(0, 0, 0);
    -
    -public int sliderValue = 100;
    -public int sliderTicks1 = 100;
    -public int sliderTicks2 = 30;
    -
    -
    -void setup() {
    -  size(700, 400);
    -  noStroke();
    -  
    -  cp5 = new ControlP5(this);
    -  
    -  cp5.addSlider("slider")
    -     .setBroadcast(false)
    -     .setRange(0, 200)
    -     .setPosition(20, 100)
    -     .setSize(10, 100)
    -     .setBroadcast(true)
    -     .setValue(100)
    -     ;
    -  
    -  cp5.addSlider("sliderTicks1")
    -     .setRange(0, 255)
    -     .setPosition(100, 100)
    -     .setSize(10, 100)
    -     .setNumberOfTickMarks(5)
    -     ;
    -
    -  cp5.addSlider("sliderValue")
    -     .setRange(0, 255)
    -     .setValue(128)
    -     .setPosition(200, 180)
    -     .setSize(100, 10)
    -     ;
    -     
    -  cp5.addSlider("sliderTicks2")
    -     .setRange(0, 255)
    -     .setValue(128)
    -     .setPosition(200, 220)
    -     .setSize(100, 10)
    -     .setNumberOfTickMarks(7)
    -     .setSliderMode(Slider.FLEXIBLE)
    -     ;
    -     
    -}
    -
    -void draw() {
    -  background(sliderTicks1);
    -
    -  fill(sliderValue);
    -  rect(0, 0, width, 100);
    -
    -  fill(myColor);
    -  rect(0, 300, width, 70);
    -
    -  fill(sliderTicks2);
    -  rect(0, 370, width, 30);
    -}
    -
    -public void slider(float theColor) {
    -  myColor = color(theColor);
    -  println("a slider event. setting background to "+theColor);
    -}
    -
    -void keyPressed() {
    -  // default properties load/save key combinations are 
    -  // alt+shift+l to load properties
    -  // alt+shift+s to save properties
    -  if (key=='1') {
    -    cp5.saveProperties(("hello.properties"));
    -  } 
    -  else if (key=='2') {
    -    cp5.loadProperties(("hello.properties"));
    -  }
    -}
    -
    -/*
    -a list of all methods available for the ControllerProperties Controller
    -use ControlP5.printPublicMethodsFor(ControllerProperties.class);
    -to print the following list into the console.
    -
    -You can find further details about class ControllerProperties in the javadoc.
    -
    -Format:
    -ClassName : returnType methodName(parameter type)
    -
    -
    -controlP5.ControllerProperties : ArrayList getSnapshotIndices() 
    -controlP5.ControllerProperties : ControllerProperties addSet(String) 
    -controlP5.ControllerProperties : ControllerProperties delete(ControllerProperty) 
    -controlP5.ControllerProperties : ControllerProperties getSnapshot(String) 
    -controlP5.ControllerProperties : ControllerProperties move(ControllerInterface, String, String) 
    -controlP5.ControllerProperties : ControllerProperties move(ControllerProperty, String, String) 
    -controlP5.ControllerProperties : ControllerProperties only(ControllerProperty, String) 
    -controlP5.ControllerProperties : ControllerProperties print() 
    -controlP5.ControllerProperties : ControllerProperties register(ControllerInterface, String) 
    -controlP5.ControllerProperties : ControllerProperties remove(ControllerInterface) 
    -controlP5.ControllerProperties : ControllerProperties remove(ControllerInterface, String) 
    -controlP5.ControllerProperties : ControllerProperties remove(ControllerInterface, String, String) 
    -controlP5.ControllerProperties : ControllerProperties removeSnapshot(String) 
    -controlP5.ControllerProperties : ControllerProperties saveSnapshot(String) 
    -controlP5.ControllerProperties : ControllerProperties saveSnapshotAs(String, String) 
    -controlP5.ControllerProperties : ControllerProperties setSnapshot(String) 
    -controlP5.ControllerProperties : ControllerProperties updateSnapshot(String) 
    -controlP5.ControllerProperties : ControllerProperty getProperty(ControllerInterface, String) 
    -controlP5.ControllerProperties : ControllerProperty getProperty(ControllerInterface, String, String) 
    -controlP5.ControllerProperties : ControllerProperty register(ControllerInterface, String, String) 
    -controlP5.ControllerProperties : HashSet getPropertySet(ControllerInterface) 
    -controlP5.ControllerProperties : List get(ControllerInterface) 
    -controlP5.ControllerProperties : Map get() 
    -controlP5.ControllerProperties : String toString() 
    -controlP5.ControllerProperties : boolean load() 
    -controlP5.ControllerProperties : boolean load(String) 
    -controlP5.ControllerProperties : boolean save() 
    -controlP5.ControllerProperties : boolean saveAs(String) 
    -controlP5.ControllerProperties : void setFormat(Format) 
    -java.lang.Object : String toString() 
    -java.lang.Object : boolean equals(Object) 
    -
    -
    -*/
    -
    -
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Field Detail

      - - - - - - - -
        -
      • -

        defaultName

        -
        public static java.lang.String defaultName
        -
      • -
      - - - -
        -
      • -

        logger

        -
        public static final java.util.logging.Logger logger
        -
      • -
      - - - - -
    • -
    - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ControllerProperties

        -
        public ControllerProperties(ControlP5 theControlP5)
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - - - - - - - - - - - - - - - - - -
        -
      • -

        get

        -
        public java.util.Map<ControllerProperty,java.util.HashSet<java.lang.String>> get()
        -
      • -
      - - - - - - - - - - - - - - - - - - - - - - - -
        -
      • -

        getSnapshotIndices

        -
        public java.util.ArrayList<java.lang.String> getSnapshotIndices()
        -
        properties stored in memory can be accessed by index, getSnapshotIndices() returns the index of the snapshot - list.
        -
      • -
      - - - -
        -
      • -

        load

        -
        public boolean load()
        -
        load properties from the default properties file 'controlP5.properties'
        -
      • -
      - - - -
        -
      • -

        load

        -
        public boolean load(java.lang.String thePropertiesPath)
        -
      • -
      - - - - - - - -
        -
      • -

        move

        -
        public ControllerProperties move(ControllerProperty theProperty,
        -                        java.lang.String fromSet,
        -                        java.lang.String toSet)
        -
        Moves a ControllerProperty from one set to another.
        -
      • -
      - - - - - - - - - - - -
        -
      • -

        register

        -
        public ControllerProperties register(ControllerInterface<?> theController,
        -                            java.lang.String theProperty)
        -
        registering a property with only one parameter assumes that there is a setter and getter function present for the - Controller. register("value") for example would create a property reference to setValue and getValue. Notice that - the first letter of value is being capitalized.
        -
        Parameters:
        theProperty -
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        register

        -
        public ControllerProperty register(ControllerInterface<?> theController,
        -                          java.lang.String thePropertySetter,
        -                          java.lang.String thePropertyGetter)
        -
        adds a property based on names of setter and getter methods of a controller.
        -
        Parameters:
        thePropertySetter -
        thePropertyGetter -
        -
      • -
      - - - - - - - - - - - - - - - - - - - - - - - -
        -
      • -

        removeSnapshot

        -
        public ControllerProperties removeSnapshot(java.lang.String theKey)
        -
        removes a snapshot by key.
        -
      • -
      - - - -
        -
      • -

        save

        -
        public boolean save()
        -
        saves all registered properties into the default 'controlP5.properties' file into your sketch folder.
        -
      • -
      - - - -
        -
      • -

        saveAs

        -
        public boolean saveAs(java.lang.String thePropertiesPath)
        -
        saves all registered properties into a file specified by parameter thePropertiesPath.
        -
      • -
      - - - -
        -
      • -

        saveAs

        -
        public boolean saveAs(java.lang.String thePropertiesPath,
        -             java.lang.String... theSets)
        -
        saves a list of properties sets into a file specified by parameter thePropertiesPath.
        -
      • -
      - - - -
        -
      • -

        saveSnapshot

        -
        public ControllerProperties saveSnapshot(java.lang.String theKey)
        -
        saves a snapshot into your sketch's sketch folder.
        -
      • -
      - - - -
        -
      • -

        saveSnapshotAs

        -
        public ControllerProperties saveSnapshotAs(java.lang.String thePropertiesPath,
        -                                  java.lang.String theKey)
        -
        saves a snapshot to the file with path given by the first parameter (thePropertiesPath).
        -
      • -
      - - - -
        -
      • -

        setFormat

        -
        public void setFormat(controlP5.ControllerProperties.PropertiesStorageFormat theFormat)
        -
        use ControllerProperties.SERIALIZED, ControllerProperties.XML or ControllerProperties.JSON as parameter.
        -
      • -
      - - - -
        -
      • -

        setSnapshot

        -
        public ControllerProperties setSnapshot(java.lang.String theKey)
        -
        logs all registered properties in memory. Here, clones of properties are stored inside a map and can be accessed - by key using the getLog method.
        -
        Parameters:
        theKey -
        -
        Returns:
        ControllerProperties
        See Also:
        getSnapshot(String)
        -
      • -
      - - - -
        -
      • -

        toString

        -
        public java.lang.String toString()
        -
        -
        Overrides:
        -
        toString in class java.lang.Object
        -
        -
      • -
      - - - -
        -
      • -

        updateSnapshot

        -
        public ControllerProperties updateSnapshot(java.lang.String theKey)
        -
        convenience method, setSnapshot(String) also works here since it will override existing log with the same key.
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControllerProperty.html b/reference/controlP5/ControllerProperty.html deleted file mode 100644 index c5428cd..0000000 --- a/reference/controlP5/ControllerProperty.html +++ /dev/null @@ -1,456 +0,0 @@ - - - - - -ControllerProperty (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ControllerProperty

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    java.io.Serializable, java.lang.Cloneable
    -
    -
    -
    -
    public class ControllerProperty
    -extends java.lang.Object
    -implements java.io.Serializable, java.lang.Cloneable
    -
    A controller property saves the value, address, getter and setter of a registered controller.
    -
    See Also:
    Serialized Form
    -
    +Example
    /**
    - * ControlP5 Properties 
    - *
    - *
    - * saves controller values to a properties-file
    - * loads controller values from a properties-file
    - *
    - * Properties will only save values not the Controller itself.
    - * 
    - * Also take a look at the use/ControlP5snapshot example to 
    - * save controller values to memory.
    - *
    - * Use ControllerProperties to load and save serialized controller properties 
    - * to a properties file. 
    - * The controllers implementing save/load properties so far are 
    - * Slider, Knob, Numberbox, Toggle, Checkbox, RadioButton, Textlabel, 
    - * Matrix, Range, Textarea, ListBox, Dropdown, ColorPicker. 
    - * Properties are currently saved in the java serialization format.
    - *
    - * saveProperties(String theFilename) and loadProperties(String theFilename) 
    - * by default properties will be saved to your sketch folder as controlP5.ser
    - * if that file already exists it will be overwritten. for custom property files
    - * see the comments inside keyPressed() below.
    - *
    - * find a list of public methods available for the ControllerProperties class 
    - * at the bottom of this sketch's source code
    - *
    - * default properties load/save key combinations are 
    - * alt+shift+l to load properties
    - * alt+shift+s to save properties
    - *
    - * by andreas schlegel, 2012
    - * www.sojamo.de/libraries/controlp5
    - *
    - */
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -public int myColor = color(0, 0, 0);
    -
    -public int sliderValue = 100;
    -public int sliderTicks1 = 100;
    -public int sliderTicks2 = 30;
    -
    -
    -void setup() {
    -  size(700, 400);
    -  noStroke();
    -  
    -  cp5 = new ControlP5(this);
    -  
    -  cp5.addSlider("slider")
    -     .setBroadcast(false)
    -     .setRange(0, 200)
    -     .setPosition(20, 100)
    -     .setSize(10, 100)
    -     .setBroadcast(true)
    -     .setValue(100)
    -     ;
    -  
    -  cp5.addSlider("sliderTicks1")
    -     .setRange(0, 255)
    -     .setPosition(100, 100)
    -     .setSize(10, 100)
    -     .setNumberOfTickMarks(5)
    -     ;
    -
    -  cp5.addSlider("sliderValue")
    -     .setRange(0, 255)
    -     .setValue(128)
    -     .setPosition(200, 180)
    -     .setSize(100, 10)
    -     ;
    -     
    -  cp5.addSlider("sliderTicks2")
    -     .setRange(0, 255)
    -     .setValue(128)
    -     .setPosition(200, 220)
    -     .setSize(100, 10)
    -     .setNumberOfTickMarks(7)
    -     .setSliderMode(Slider.FLEXIBLE)
    -     ;
    -     
    -}
    -
    -void draw() {
    -  background(sliderTicks1);
    -
    -  fill(sliderValue);
    -  rect(0, 0, width, 100);
    -
    -  fill(myColor);
    -  rect(0, 300, width, 70);
    -
    -  fill(sliderTicks2);
    -  rect(0, 370, width, 30);
    -}
    -
    -public void slider(float theColor) {
    -  myColor = color(theColor);
    -  println("a slider event. setting background to "+theColor);
    -}
    -
    -void keyPressed() {
    -  // default properties load/save key combinations are 
    -  // alt+shift+l to load properties
    -  // alt+shift+s to save properties
    -  if (key=='1') {
    -    cp5.saveProperties(("hello.properties"));
    -  } 
    -  else if (key=='2') {
    -    cp5.loadProperties(("hello.properties"));
    -  }
    -}
    -
    -/*
    -a list of all methods available for the ControllerProperties Controller
    -use ControlP5.printPublicMethodsFor(ControllerProperties.class);
    -to print the following list into the console.
    -
    -You can find further details about class ControllerProperties in the javadoc.
    -
    -Format:
    -ClassName : returnType methodName(parameter type)
    -
    -
    -controlP5.ControllerProperties : ArrayList getSnapshotIndices() 
    -controlP5.ControllerProperties : ControllerProperties addSet(String) 
    -controlP5.ControllerProperties : ControllerProperties delete(ControllerProperty) 
    -controlP5.ControllerProperties : ControllerProperties getSnapshot(String) 
    -controlP5.ControllerProperties : ControllerProperties move(ControllerInterface, String, String) 
    -controlP5.ControllerProperties : ControllerProperties move(ControllerProperty, String, String) 
    -controlP5.ControllerProperties : ControllerProperties only(ControllerProperty, String) 
    -controlP5.ControllerProperties : ControllerProperties print() 
    -controlP5.ControllerProperties : ControllerProperties register(ControllerInterface, String) 
    -controlP5.ControllerProperties : ControllerProperties remove(ControllerInterface) 
    -controlP5.ControllerProperties : ControllerProperties remove(ControllerInterface, String) 
    -controlP5.ControllerProperties : ControllerProperties remove(ControllerInterface, String, String) 
    -controlP5.ControllerProperties : ControllerProperties removeSnapshot(String) 
    -controlP5.ControllerProperties : ControllerProperties saveSnapshot(String) 
    -controlP5.ControllerProperties : ControllerProperties saveSnapshotAs(String, String) 
    -controlP5.ControllerProperties : ControllerProperties setSnapshot(String) 
    -controlP5.ControllerProperties : ControllerProperties updateSnapshot(String) 
    -controlP5.ControllerProperties : ControllerProperty getProperty(ControllerInterface, String) 
    -controlP5.ControllerProperties : ControllerProperty getProperty(ControllerInterface, String, String) 
    -controlP5.ControllerProperties : ControllerProperty register(ControllerInterface, String, String) 
    -controlP5.ControllerProperties : HashSet getPropertySet(ControllerInterface) 
    -controlP5.ControllerProperties : List get(ControllerInterface) 
    -controlP5.ControllerProperties : Map get() 
    -controlP5.ControllerProperties : String toString() 
    -controlP5.ControllerProperties : boolean load() 
    -controlP5.ControllerProperties : boolean load(String) 
    -controlP5.ControllerProperties : boolean save() 
    -controlP5.ControllerProperties : boolean saveAs(String) 
    -controlP5.ControllerProperties : void setFormat(Format) 
    -java.lang.Object : String toString() 
    -java.lang.Object : boolean equals(Object) 
    -
    -
    -*/
    -
    -
    -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      voiddisable() 
      voidenable() 
      booleanequals(java.lang.Object o) 
      inthashCode() 
      java.lang.StringtoString() 
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -getClass, notify, notifyAll, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        disable

        -
        public void disable()
        -
      • -
      - - - -
        -
      • -

        enable

        -
        public void enable()
        -
      • -
      - - - -
        -
      • -

        equals

        -
        public boolean equals(java.lang.Object o)
        -
        -
        Overrides:
        -
        equals in class java.lang.Object
        -
        -
      • -
      - - - -
        -
      • -

        hashCode

        -
        public int hashCode()
        -
        -
        Overrides:
        -
        hashCode in class java.lang.Object
        -
        -
      • -
      - - - -
        -
      • -

        toString

        -
        public java.lang.String toString()
        -
        -
        Overrides:
        -
        toString in class java.lang.Object
        -
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControllerStyle.html b/reference/controlP5/ControllerStyle.html deleted file mode 100644 index f01b108..0000000 --- a/reference/controlP5/ControllerStyle.html +++ /dev/null @@ -1,784 +0,0 @@ - - - - - -ControllerStyle (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ControllerStyle

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    java.io.Serializable
    -
    -
    -
    -
    public class ControllerStyle
    -extends java.lang.Object
    -implements java.io.Serializable
    -
    Labels use the ControllerStyle class to store margin and padding information.
    -
    See Also:
    Label.getStyle(), -Serialized Form
    -
    +Example
    /**
    -* ControlP5 ControllerStyle
    -*
    -*
    -* find a list of public methods available for the ControllerStyle Controller
    -* at the bottom of this sketch.
    -*
    -* by Andreas Schlegel, 2011
    -* www.sojamo.de/libraries/controlp5
    -*
    -*/
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -float v1 = 50, v2 = 100, v3 = 100, v4 = 100;
    -
    -void setup() {
    -  size(400,600);
    -  smooth();
    -  noStroke();
    -  cp5 = new ControlP5(this);
    -  
    -  cp5.begin(100,100);
    -  cp5.addSlider("v1",0,255).linebreak();
    -  cp5.addSlider("v2",0,200).linebreak();
    -  cp5.addSlider("v3",0,300).linebreak();
    -  cp5.addSlider("v4",0,400);
    -  cp5.end();
    -  
    -  // change the caption label for controller v1 and apply styles
    -  cp5.getController("v1").setCaptionLabel("Background");
    -  style("v1");
    -  
    -  // change the caption label for controller v2 and apply styles
    -  cp5.getController("v2").setCaptionLabel("Ellipse A");
    -  style("v2");
    -  
    -  // change the caption label for controller v3 and apply styles
    -  cp5.getController("v3").setCaptionLabel("Ellipse B");
    -  style("v3");
    -  
    -  // change the caption label for controller v3 and apply styles
    -  cp5.getController("v4").setCaptionLabel("Ellipse C");
    -  style("v4");
    -  
    -  
    -}
    -
    -void style(String theControllerName) {
    -  Controller c = cp5.getController(theControllerName);
    -  // adjust the height of the controller
    -  c.setHeight(15);
    -  
    -  // add some padding to the caption label background
    -  c.getCaptionLabel().getStyle().setPadding(4,4,3,4);
    -  
    -  // shift the caption label up by 4px
    -  c.getCaptionLabel().getStyle().setMargin(-4,0,0,0); 
    -  
    -  // set the background color of the caption label
    -  c.getCaptionLabel().setColorBackground(color(10,20,30,140));
    -}
    -
    -void draw() {
    -  background(v1);
    -  fill(255,255,220,100);
    -  ellipse(width/2-100, height/2-100,v2 + 50,v2 + 50);
    -  ellipse(width/2+100, height/2,v3,v3);
    -  ellipse(width/2, height/2+100,v4,v4);
    -}
    -
    -
    -
    -/*
    -a list of all methods available for the ControllerStyle Controller
    -use ControlP5.printPublicMethodsFor(ControllerStyle.class);
    -to print the following list into the console.
    -
    -You can find further details about class ControllerStyle in the javadoc.
    -
    -Format:
    -ClassName : returnType methodName(parameter type)
    -
    -
    -
    -
    -controlP5.ControllerStyle : ControllerStyle margin(int) 
    -controlP5.ControllerStyle : ControllerStyle margin(int, int, int, int) 
    -controlP5.ControllerStyle : ControllerStyle moveMargin(int, int, int, int) 
    -controlP5.ControllerStyle : ControllerStyle movePadding(int, int, int, int) 
    -controlP5.ControllerStyle : ControllerStyle padding(int) 
    -controlP5.ControllerStyle : ControllerStyle padding(int, int, int, int) 
    -controlP5.ControllerStyle : ControllerStyle setMargin(int, int, int, int) 
    -controlP5.ControllerStyle : ControllerStyle setMarginBottom(int) 
    -controlP5.ControllerStyle : ControllerStyle setMarginLeft(int) 
    -controlP5.ControllerStyle : ControllerStyle setMarginRight(int) 
    -controlP5.ControllerStyle : ControllerStyle setMarginTop(int) 
    -controlP5.ControllerStyle : ControllerStyle setPadding(int, int, int, int) 
    -controlP5.ControllerStyle : ControllerStyle setPaddingBottom(int) 
    -controlP5.ControllerStyle : ControllerStyle setPaddingLeft(int) 
    -controlP5.ControllerStyle : ControllerStyle setPaddingRight(int) 
    -controlP5.ControllerStyle : ControllerStyle setPaddingTop(int) 
    -java.lang.Object : String toString() 
    -java.lang.Object : boolean equals(Object) 
    -
    -
    -*/
    -
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Field Detail

      - - - -
        -
      • -

        background

        -
        public int background
        -
      • -
      - - - -
        -
      • -

        backgroundHeight

        -
        public int backgroundHeight
        -
      • -
      - - - -
        -
      • -

        backgroundWidth

        -
        public int backgroundWidth
        -
      • -
      - - - -
        -
      • -

        color

        -
        public int color
        -
      • -
      - - - -
        -
      • -

        marginBottom

        -
        public int marginBottom
        -
      • -
      - - - -
        -
      • -

        marginLeft

        -
        public int marginLeft
        -
      • -
      - - - -
        -
      • -

        marginRight

        -
        public int marginRight
        -
      • -
      - - - -
        -
      • -

        marginTop

        -
        public int marginTop
        -
      • -
      - - - -
        -
      • -

        paddingBottom

        -
        public int paddingBottom
        -
      • -
      - - - -
        -
      • -

        paddingLeft

        -
        public int paddingLeft
        -
      • -
      - - - -
        -
      • -

        paddingRight

        -
        public int paddingRight
        -
      • -
      - - - -
        -
      • -

        paddingTop

        -
        public int paddingTop
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ControllerStyle

        -
        public ControllerStyle()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - - - - - -
        -
      • -

        margin

        -
        public ControllerStyle margin(int theTop,
        -                     int theRight,
        -                     int theBottom,
        -                     int theLeft)
        -
      • -
      - - - -
        -
      • -

        moveMargin

        -
        public ControllerStyle moveMargin(int theTop,
        -                         int theRight,
        -                         int theBottom,
        -                         int theLeft)
        -
      • -
      - - - -
        -
      • -

        movePadding

        -
        public ControllerStyle movePadding(int theTop,
        -                          int theRight,
        -                          int theBottom,
        -                          int theLeft)
        -
      • -
      - - - - - - - -
        -
      • -

        padding

        -
        public ControllerStyle padding(int theTop,
        -                      int theRight,
        -                      int theBottom,
        -                      int theLeft)
        -
      • -
      - - - -
        -
      • -

        setMargin

        -
        public ControllerStyle setMargin(int theTop,
        -                        int theRight,
        -                        int theBottom,
        -                        int theLeft)
        -
      • -
      - - - -
        -
      • -

        setMarginBottom

        -
        public ControllerStyle setMarginBottom(int theValue)
        -
      • -
      - - - -
        -
      • -

        setMarginLeft

        -
        public ControllerStyle setMarginLeft(int theValue)
        -
      • -
      - - - -
        -
      • -

        setMarginRight

        -
        public ControllerStyle setMarginRight(int theValue)
        -
      • -
      - - - - - - - -
        -
      • -

        setPadding

        -
        public ControllerStyle setPadding(int theTop,
        -                         int theRight,
        -                         int theBottom,
        -                         int theLeft)
        -
      • -
      - - - -
        -
      • -

        setPaddingBottom

        -
        public ControllerStyle setPaddingBottom(int theValue)
        -
      • -
      - - - -
        -
      • -

        setPaddingLeft

        -
        public ControllerStyle setPaddingLeft(int theValue)
        -
      • -
      - - - -
        -
      • -

        setPaddingRight

        -
        public ControllerStyle setPaddingRight(int theValue)
        -
      • -
      - - - -
        -
      • -

        setPaddingTop

        -
        public ControllerStyle setPaddingTop(int theValue)
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ControllerView.html b/reference/controlP5/ControllerView.html deleted file mode 100644 index cf4243d..0000000 --- a/reference/controlP5/ControllerView.html +++ /dev/null @@ -1,218 +0,0 @@ - - - - - -ControllerView (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Interface ControllerView<T>

-
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      voiddisplay(processing.core.PGraphics theGraphics, - T theController) -
      draws your custom controllers.
      -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Method Detail

      - - - - - -
        -
      • -

        display

        -
        void display(processing.core.PGraphics theGraphics,
        -           T theController)
        -
        draws your custom controllers. display() will be called by a controller's draw() function and - will pass a reference of PApplet as well as the Controller itself to your custom display - class.
        -
        Parameters:
        theApplet -
        theController -
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/DropdownList.html b/reference/controlP5/DropdownList.html deleted file mode 100644 index 6931853..0000000 --- a/reference/controlP5/DropdownList.html +++ /dev/null @@ -1,1130 +0,0 @@ - - - - - -DropdownList (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class DropdownList

-
-
- -
- -
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        DropdownList

        -
        public DropdownList(ControlP5 theControlP5,
        -            java.lang.String theName)
        -
        Convenience constructor to extend DropdownList.
        -
        Parameters:
        theControlP5 -
        theName -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      -
    • -
    - - -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/FrameRate.html b/reference/controlP5/FrameRate.html deleted file mode 100644 index 6c34eba..0000000 --- a/reference/controlP5/FrameRate.html +++ /dev/null @@ -1,301 +0,0 @@ - - - - - -FrameRate (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class FrameRate

-
-
- -
- -
-
- -
-
-
    -
  • - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        draw

        -
        public void draw(processing.core.PGraphics theGraphics)
        -
        Description copied from class: Controller
        -
        the default draw function for each controller extending superclass Controller. This draw - function will take care of default matrix operations and will call the display function of - the current ControllerView object active for this particular controller.
        -
        -
        Specified by:
        -
        draw in interface CDrawable
        -
        Specified by:
        -
        draw in interface ControllerInterface<Textlabel>
        -
        Overrides:
        -
        draw in class Textlabel
        -
        See Also:
        ControllerView
        -
      • -
      - - - -
        -
      • -

        setInterval

        -
        public FrameRate setInterval(int theValue)
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Group.html b/reference/controlP5/Group.html deleted file mode 100644 index e4b333a..0000000 --- a/reference/controlP5/Group.html +++ /dev/null @@ -1,464 +0,0 @@ - - - - - -Group (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Group

-
-
- -
- -
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Group

        -
        public Group(ControlP5 theControlP5,
        -     ControllerGroup<?> theParent,
        -     java.lang.String theName,
        -     int theX,
        -     int theY,
        -     int theW,
        -     int theH)
        -
      • -
      - - - -
        -
      • -

        Group

        -
        public Group(ControlP5 theControlP5,
        -     java.lang.String theName)
        -
        Convenience constructor to extend Group.
        -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Knob.html b/reference/controlP5/Knob.html deleted file mode 100644 index 4c78efa..0000000 --- a/reference/controlP5/Knob.html +++ /dev/null @@ -1,1403 +0,0 @@ - - - - - -Knob (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Knob

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    CDrawable, ControllerInterface<Knob>, ControlP5Constants
    -
    -
    -
    -
    public class Knob
    -extends Controller<Knob>
    -
    A knob is a circular slider which can be used with a limited and unlimited range. Knobs come in 3 - designs LINE, ARC and ELIPSE and can be controller with both the mouse and the mouse wheel.
    -
    -
    +Example
    /**
    -* ControlP5 Knob
    -*
    -*
    -* find a list of public methods available for the Knob Controller
    -* at the bottom of this sketch.
    -*
    -* by Andreas Schlegel, 2012
    -* www.sojamo.de/libraries/controlp5
    -*
    -*/
    -
    -import controlP5.*;
    -
    -
    -ControlP5 cp5;
    -
    -int myColorBackground = color(0,0,0);
    -int knobValue = 100;
    -
    -Knob myKnobA;
    -Knob myKnobB;
    -
    -void setup() {
    -  size(700,400);
    -  smooth();
    -  noStroke();
    -  
    -  cp5 = new ControlP5(this);
    -  
    -  myKnobA = cp5.addKnob("knob")
    -               .setRange(0,255)
    -               .setValue(50)
    -               .setPosition(100,70)
    -               .setRadius(50)
    -               .setDragDirection(Knob.VERTICAL)
    -               ;
    -                     
    -  myKnobB = cp5.addKnob("knobValue")
    -               .setRange(0,255)
    -               .setValue(220)
    -               .setPosition(100,210)
    -               .setRadius(50)
    -               .setNumberOfTickMarks(10)
    -               .setTickMarkLength(4)
    -               .snapToTickMarks(true)
    -               .setColorForeground(color(255))
    -               .setColorBackground(color(0, 160, 100))
    -               .setColorActive(color(255,255,0))
    -               .setDragDirection(Knob.HORIZONTAL)
    -               ;
    -}
    -
    -void draw() {
    -  background(myColorBackground);
    -  fill(knobValue);
    -  rect(0,height/2,width,height/2);
    -  fill(0,100);
    -  rect(80,40,140,320);
    -}
    -
    -
    -void knob(int theValue) {
    -  myColorBackground = color(theValue);
    -  println("a knob event. setting background to "+theValue);
    -}
    -
    -
    -void keyPressed() {
    -  switch(key) {
    -    case('1'):myKnobA.setValue(180);break;
    -    case('2'):myKnobB.setConstrained(false).hideTickMarks().snapToTickMarks(false);break;
    -    case('3'):myKnobA.shuffle();myKnobB.shuffle();break;
    -  }
    -  
    -}
    -
    -/*
    -a list of all methods available for the Knob Controller
    -use ControlP5.printPublicMethodsFor(Knob.class);
    -to print the following list into the console.
    -
    -You can find further details about class Knob in the javadoc.
    -
    -Format:
    -ClassName : returnType methodName(parameter type)
    - 
    -controlP5.Knob : Knob setConstrained(boolean) 
    -controlP5.Knob : Knob setDragDirection(int) 
    -controlP5.Knob : Knob setMax(float) 
    -controlP5.Knob : Knob setMin(float) 
    -controlP5.Knob : Knob setNumberOfTickMarks(int) 
    -controlP5.Knob : Knob setRadius(float) 
    -controlP5.Knob : Knob setRange(float) 
    -controlP5.Knob : Knob setResolution(float) 
    -controlP5.Knob : Knob setScrollSensitivity(float) 
    -controlP5.Knob : Knob setSensitivity(float) 
    -controlP5.Knob : Knob setShowRange(boolean) 
    -controlP5.Knob : Knob setStartAngle(float) 
    -controlP5.Knob : Knob setTickMarkLength(int) 
    -controlP5.Knob : Knob setTickMarkWeight(float) 
    -controlP5.Knob : Knob setValue(float) 
    -controlP5.Knob : Knob setViewStyle(int) 
    -controlP5.Knob : Knob showTickMarks(boolean) 
    -controlP5.Knob : Knob shuffle() 
    -controlP5.Knob : Knob snapToTickMarks(boolean) 
    -controlP5.Knob : Knob update() 
    -controlP5.Knob : boolean isConstrained() 
    -controlP5.Knob : boolean isShowRange() 
    -controlP5.Knob : boolean isShowTickMarks() 
    -controlP5.Knob : float getAngle() 
    -controlP5.Knob : float getRadius() 
    -controlP5.Knob : float getRange() 
    -controlP5.Knob : float getResolution() 
    -controlP5.Knob : float getStartAngle() 
    -controlP5.Knob : float getTickMarkWeight() 
    -controlP5.Knob : float getValue() 
    -controlP5.Knob : int getDragDirection() 
    -controlP5.Knob : int getNumberOfTickMarks() 
    -controlP5.Knob : int getTickMarkLength() 
    -controlP5.Knob : int getViewStyle() 
    -controlP5.Controller : CColor getColor() 
    -controlP5.Controller : ControlBehavior getBehavior() 
    -controlP5.Controller : ControlWindow getControlWindow() 
    -controlP5.Controller : ControlWindow getWindow() 
    -controlP5.Controller : ControllerProperty getProperty(String) 
    -controlP5.Controller : ControllerProperty getProperty(String, String) 
    -controlP5.Controller : Knob addCallback(CallbackListener) 
    -controlP5.Controller : Knob addListener(ControlListener) 
    -controlP5.Controller : Knob bringToFront() 
    -controlP5.Controller : Knob bringToFront(ControllerInterface) 
    -controlP5.Controller : Knob hide() 
    -controlP5.Controller : Knob linebreak() 
    -controlP5.Controller : Knob listen(boolean) 
    -controlP5.Controller : Knob lock() 
    -controlP5.Controller : Knob plugTo(Object) 
    -controlP5.Controller : Knob plugTo(Object, String) 
    -controlP5.Controller : Knob plugTo(Object[]) 
    -controlP5.Controller : Knob plugTo(Object[], String) 
    -controlP5.Controller : Knob registerProperty(String) 
    -controlP5.Controller : Knob registerProperty(String, String) 
    -controlP5.Controller : Knob registerTooltip(String) 
    -controlP5.Controller : Knob removeBehavior() 
    -controlP5.Controller : Knob removeCallback() 
    -controlP5.Controller : Knob removeCallback(CallbackListener) 
    -controlP5.Controller : Knob removeListener(ControlListener) 
    -controlP5.Controller : Knob removeProperty(String) 
    -controlP5.Controller : Knob removeProperty(String, String) 
    -controlP5.Controller : Knob setArrayValue(float[]) 
    -controlP5.Controller : Knob setArrayValue(int, float) 
    -controlP5.Controller : Knob setBehavior(ControlBehavior) 
    -controlP5.Controller : Knob setBroadcast(boolean) 
    -controlP5.Controller : Knob setCaptionLabel(String) 
    -controlP5.Controller : Knob setColor(CColor) 
    -controlP5.Controller : Knob setColorActive(int) 
    -controlP5.Controller : Knob setColorBackground(int) 
    -controlP5.Controller : Knob setColorCaptionLabel(int) 
    -controlP5.Controller : Knob setColorForeground(int) 
    -controlP5.Controller : Knob setColorValueLabel(int) 
    -controlP5.Controller : Knob setDecimalPrecision(int) 
    -controlP5.Controller : Knob setDefaultValue(float) 
    -controlP5.Controller : Knob setHeight(int) 
    -controlP5.Controller : Knob setId(int) 
    -controlP5.Controller : Knob setImages(PImage, PImage, PImage) 
    -controlP5.Controller : Knob setImages(PImage, PImage, PImage, PImage) 
    -controlP5.Controller : Knob setLabelVisible(boolean) 
    -controlP5.Controller : Knob setLock(boolean) 
    -controlP5.Controller : Knob setMax(float) 
    -controlP5.Controller : Knob setMin(float) 
    -controlP5.Controller : Knob setMouseOver(boolean) 
    -controlP5.Controller : Knob setMoveable(boolean) 
    -controlP5.Controller : Knob setPosition(PVector) 
    -controlP5.Controller : Knob setPosition(float, float) 
    -controlP5.Controller : Knob setSize(PImage) 
    -controlP5.Controller : Knob setSize(int, int) 
    -controlP5.Controller : Knob setStringValue(String) 
    -controlP5.Controller : Knob setUpdate(boolean) 
    -controlP5.Controller : Knob setValueLabel(String) 
    -controlP5.Controller : Knob setView(ControllerView) 
    -controlP5.Controller : Knob setVisible(boolean) 
    -controlP5.Controller : Knob setWidth(int) 
    -controlP5.Controller : Knob show() 
    -controlP5.Controller : Knob unlock() 
    -controlP5.Controller : Knob unplugFrom(Object) 
    -controlP5.Controller : Knob unplugFrom(Object[]) 
    -controlP5.Controller : Knob unregisterTooltip() 
    -controlP5.Controller : Knob update() 
    -controlP5.Controller : Knob updateSize() 
    -controlP5.Controller : Label getCaptionLabel() 
    -controlP5.Controller : Label getValueLabel() 
    -controlP5.Controller : List getControllerPlugList() 
    -controlP5.Controller : PImage setImage(PImage) 
    -controlP5.Controller : PImage setImage(PImage, int) 
    -controlP5.Controller : PVector getAbsolutePosition() 
    -controlP5.Controller : PVector getPosition() 
    -controlP5.Controller : String getAddress() 
    -controlP5.Controller : String getInfo() 
    -controlP5.Controller : String getName() 
    -controlP5.Controller : String getStringValue() 
    -controlP5.Controller : String toString() 
    -controlP5.Controller : Tab getTab() 
    -controlP5.Controller : boolean isActive() 
    -controlP5.Controller : boolean isBroadcast() 
    -controlP5.Controller : boolean isInside() 
    -controlP5.Controller : boolean isLabelVisible() 
    -controlP5.Controller : boolean isListening() 
    -controlP5.Controller : boolean isLock() 
    -controlP5.Controller : boolean isMouseOver() 
    -controlP5.Controller : boolean isMousePressed() 
    -controlP5.Controller : boolean isMoveable() 
    -controlP5.Controller : boolean isUpdate() 
    -controlP5.Controller : boolean isVisible() 
    -controlP5.Controller : float getArrayValue(int) 
    -controlP5.Controller : float getDefaultValue() 
    -controlP5.Controller : float getMax() 
    -controlP5.Controller : float getMin() 
    -controlP5.Controller : float getValue() 
    -controlP5.Controller : float[] getArrayValue() 
    -controlP5.Controller : int getDecimalPrecision() 
    -controlP5.Controller : int getHeight() 
    -controlP5.Controller : int getId() 
    -controlP5.Controller : int getWidth() 
    -controlP5.Controller : int listenerSize() 
    -controlP5.Controller : void remove() 
    -controlP5.Controller : void setView(ControllerView, int) 
    -java.lang.Object : String toString() 
    -java.lang.Object : boolean equals(Object) 
    -
    -
    -*/
    -
    -
    -
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Field Detail

      - - - -
        -
      • -

        autoHeight

        -
        public static int autoHeight
        -
      • -
      - - - -
        -
      • -

        autoWidth

        -
        public static int autoWidth
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Knob

        -
        public Knob(ControlP5 theControlP5,
        -    ControllerGroup<?> theParent,
        -    java.lang.String theName,
        -    float theMin,
        -    float theMax,
        -    float theDefaultValue,
        -    int theX,
        -    int theY,
        -    int theWidth)
        -
      • -
      - - - -
        -
      • -

        Knob

        -
        public Knob(ControlP5 theControlP5,
        -    java.lang.String theName)
        -
        Convenience constructor to extend Knob.
        -
        Parameters:
        theControlP5 -
        theName -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        getAngle

        -
        public float getAngle()
        -
      • -
      - - - -
        -
      • -

        getAngleRange

        -
        public float getAngleRange()
        -
      • -
      - - - -
        -
      • -

        getDragDirection

        -
        public int getDragDirection()
        -
        Gets the drag direction which is either Controller.HORIZONTAL or Controller.VERTICAL.
        -
        Returns:
        int returns Controller.HORIZONTAL or Controller.VERTICAL
        -
      • -
      - - - -
        -
      • -

        getNumberOfTickMarks

        -
        public int getNumberOfTickMarks()
        -
      • -
      - - - -
        -
      • -

        getRadius

        -
        public float getRadius()
        -
      • -
      - - - -
        -
      • -

        getResolution

        -
        public float getResolution()
        -
      • -
      - - - -
        -
      • -

        getStartAngle

        -
        public float getStartAngle()
        -
        get the start angle, 0 is at 3 o'clock.
        -
      • -
      - - - -
        -
      • -

        getTickMarkLength

        -
        public int getTickMarkLength()
        -
      • -
      - - - -
        -
      • -

        getTickMarkWeight

        -
        public float getTickMarkWeight()
        -
      • -
      - - - - - - - -
        -
      • -

        getViewStyle

        -
        public int getViewStyle()
        -
      • -
      - - - -
        -
      • -

        hideTickMarks

        -
        public Knob hideTickMarks()
        -
      • -
      - - - -
        -
      • -

        isConstrained

        -
        public boolean isConstrained()
        -
      • -
      - - - -
        -
      • -

        isShowAngleRange

        -
        public boolean isShowAngleRange()
        -
      • -
      - - - -
        -
      • -

        isShowTickMarks

        -
        public boolean isShowTickMarks()
        -
      • -
      - - - -
        -
      • -

        mousePressed

        -
        public void mousePressed()
        -
      • -
      - - - -
        -
      • -

        mouseReleasedOutside

        -
        public void mouseReleasedOutside()
        -
      • -
      - - - -
        -
      • -

        scrolled

        -
        public Knob scrolled(int theRotationValue)
        -
        Changes the value of the knob when hovering and using the mouse wheel or the scroll function - of a multi-touch track pad.
        -
      • -
      - - - -
        -
      • -

        setAngleRange

        -
        public Knob setAngleRange(float theRange)
        -
        set the range in between which the know operates. By default the range is PI + HALF_PI
        -
      • -
      - - - -
        -
      • -

        setConstrained

        -
        public Knob setConstrained(boolean theValue)
        -
      • -
      - - - -
        -
      • -

        setDragDirection

        -
        public Knob setDragDirection(int theValue)
        -
        Sets the drag direction, when controlling a knob, parameter is either Controller.HORIZONTAL - or Controller.VERTICAL.
        -
        Parameters:
        theValue - must be Controller.HORIZONTAL or Controller.VERTICAL
        -
        Returns:
        Knob
        -
      • -
      - - - -
        -
      • -

        setMax

        -
        public Knob setMax(float theValue)
        -
        Description copied from class: Controller
        -
        sets the maximum value of the Controller.
        -
        -
        Overrides:
        -
        setMax in class Controller<Knob>
        -
        Parameters:
        theValue - float
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setMin

        -
        public Knob setMin(float theValue)
        -
        Description copied from class: Controller
        -
        sets the minimum value of the Controller.
        -
        -
        Overrides:
        -
        setMin in class Controller<Knob>
        -
        Parameters:
        theValue - float
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setNumberOfTickMarks

        -
        public Knob setNumberOfTickMarks(int theNumber)
        -
      • -
      - - - -
        -
      • -

        setRadius

        -
        public Knob setRadius(float theValue)
        -
      • -
      - - - -
        -
      • -

        setRange

        -
        public Knob setRange(float theMin,
        -            float theMax)
        -
      • -
      - - - -
        -
      • -

        setResolution

        -
        public Knob setResolution(float theValue)
        -
        resolution is a sensitivity value when dragging a knob. the higher the value, the more - sensitive the dragging.
        -
      • -
      - - - -
        -
      • -

        setScrollSensitivity

        -
        public Knob setScrollSensitivity(float theValue)
        -
        Sets the sensitivity for the scroll behavior when using the mouse wheel or the scroll - function of a multi-touch track pad. The smaller the value (closer to 0) the higher the - sensitivity.
        -
        Parameters:
        theValue -
        -
        Returns:
        Knob
        -
      • -
      - - - -
        -
      • -

        setShowAngleRange

        -
        public Knob setShowAngleRange(boolean theValue)
        -
      • -
      - - - -
        -
      • -

        setSize

        -
        public Knob setSize(int theWidth,
        -           int theHeight)
        -
        -
        Overrides:
        -
        setSize in class Controller<Knob>
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setStartAngle

        -
        public Knob setStartAngle(float theAngle)
        -
        The start angle is a value between 0 and TWO_PI. By default the start angle is set to HALF_PI - + PI * 0.25f
        -
      • -
      - - - -
        -
      • -

        setTickMarkLength

        -
        public Knob setTickMarkLength(int theLength)
        -
      • -
      - - - -
        -
      • -

        setTickMarkWeight

        -
        public Knob setTickMarkWeight(float theWeight)
        -
      • -
      - - - - - - - -
        -
      • -

        setViewStyle

        -
        public Knob setViewStyle(int theStyle)
        -
        set the display style of a knob. takes parameters Knob.LINE, Knob.ELLIPSE or Knob.ARC. - default style is Knob.LINE
        -
        Parameters:
        theStyle - use Knob.LINE, Knob.ELLIPSE or Knob.ARC
        -
        Returns:
        Knob
        -
      • -
      - - - -
        -
      • -

        showTickMarks

        -
        public Knob showTickMarks()
        -
      • -
      - - - -
        -
      • -

        shuffle

        -
        public Knob shuffle()
        -
        Assigns a random value to the controller.
        -
      • -
      - - - -
        -
      • -

        snapToTickMarks

        -
        public Knob snapToTickMarks(boolean theFlag)
        -
      • -
      - - - - - - - -
        -
      • -

        updateDisplayMode

        -
        public Knob updateDisplayMode(int theMode)
        -
      • -
      - - - -
        -
      • -

        updateInternalEvents

        -
        public Knob updateInternalEvents(processing.core.PApplet theApplet)
        -
        Description copied from interface: ControllerInterface
        -
        a method for putting input events like e.g. mouse or keyboard events and queries. this has - been taken out of the draw method for better overwriting capability.
        -
        -
        Specified by:
        -
        updateInternalEvents in interface ControllerInterface<Knob>
        -
        Overrides:
        -
        updateInternalEvents in class Controller<Knob>
        -
        See Also:
        ControllerInterface.updateInternalEvents
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Label.html b/reference/controlP5/Label.html deleted file mode 100644 index fa3b885..0000000 --- a/reference/controlP5/Label.html +++ /dev/null @@ -1,1211 +0,0 @@ - - - - - -Label (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Label

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    CDrawable
    -
    -
    -
    -
    public class Label
    -extends java.lang.Object
    -implements CDrawable
    -
    A custom label using controlP5's BitFonts or PFont based ControlFonts.
    -
    See Also:
    ControlFont
    -
    +Example
    /**
    -* ControlP5 Textlabel
    -*
    -*
    -* find a list of public methods available for the Textlabel Controller
    -* at the bottom of this sketch.
    -*
    -* by Andreas Schlegel, 2012
    -* www.sojamo.de/libraries/controlp5
    -*
    -*/
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -Textlabel myTextlabelA;
    -Textlabel myTextlabelB;
    -
    -void setup() {
    -  size(700,400);
    -  cp5 = new ControlP5(this);
    -
    -  myTextlabelA = cp5.addTextlabel("label")
    -                    .setText("A single ControlP5 textlabel, in yellow.")
    -                    .setPosition(100,50)
    -                    .setColorValue(0xffffff00)
    -                    .setFont(createFont("Georgia",20))
    -                    ;
    -
    -  myTextlabelB = new Textlabel(cp5,"Another textlabel, not created through ControlP5 needs to be rendered separately by calling Textlabel.draw(PApplet).",100,100,400,200);
    -
    -}
    -
    -
    -
    -void draw() {
    -  background(0);
    -  myTextlabelB.draw(this); 
    -}
    -
    -
    -
    -/*
    -a list of all methods available for the Textlabel Controller
    -use ControlP5.printPublicMethodsFor(Textlabel.class);
    -to print the following list into the console.
    -
    -You can find further details about class Textlabel in the javadoc.
    -
    -Format:
    -ClassName : returnType methodName(parameter type)
    -
    -controlP5.Textlabel : Label get() 
    -controlP5.Textlabel : Textlabel setColor(int) 
    -controlP5.Textlabel : Textlabel setFont(ControlFont) 
    -controlP5.Textlabel : Textlabel setFont(PFont) 
    -controlP5.Textlabel : Textlabel setFont(int) 
    -controlP5.Textlabel : Textlabel setHeight(int) 
    -controlP5.Textlabel : Textlabel setLetterSpacing(int) 
    -controlP5.Textlabel : Textlabel setMultiline(boolean) 
    -controlP5.Textlabel : Textlabel setStringValue(String) 
    -controlP5.Textlabel : Textlabel setText(String) 
    -controlP5.Textlabel : Textlabel setValue(String) 
    -controlP5.Textlabel : Textlabel setValue(float) 
    -controlP5.Textlabel : Textlabel setWidth(int) 
    -controlP5.Textlabel : void draw() 
    -controlP5.Textlabel : void draw(PApplet) 
    -controlP5.Textlabel : void draw(int, int) 
    -controlP5.Controller : CColor getColor() 
    -controlP5.Controller : ControlBehavior getBehavior() 
    -controlP5.Controller : ControlWindow getControlWindow() 
    -controlP5.Controller : ControlWindow getWindow() 
    -controlP5.Controller : ControllerProperty getProperty(String) 
    -controlP5.Controller : ControllerProperty getProperty(String, String) 
    -controlP5.Controller : Label getCaptionLabel() 
    -controlP5.Controller : Label getValueLabel() 
    -controlP5.Controller : List getControllerPlugList() 
    -controlP5.Controller : PImage setImage(PImage) 
    -controlP5.Controller : PImage setImage(PImage, int) 
    -controlP5.Controller : PVector getAbsolutePosition() 
    -controlP5.Controller : PVector getPosition() 
    -controlP5.Controller : String getAddress() 
    -controlP5.Controller : String getInfo() 
    -controlP5.Controller : String getName() 
    -controlP5.Controller : String getStringValue() 
    -controlP5.Controller : String toString() 
    -controlP5.Controller : Tab getTab() 
    -controlP5.Controller : Textlabel addCallback(CallbackListener) 
    -controlP5.Controller : Textlabel addListener(ControlListener) 
    -controlP5.Controller : Textlabel bringToFront() 
    -controlP5.Controller : Textlabel bringToFront(ControllerInterface) 
    -controlP5.Controller : Textlabel hide() 
    -controlP5.Controller : Textlabel linebreak() 
    -controlP5.Controller : Textlabel listen(boolean) 
    -controlP5.Controller : Textlabel lock() 
    -controlP5.Controller : Textlabel plugTo(Object) 
    -controlP5.Controller : Textlabel plugTo(Object, String) 
    -controlP5.Controller : Textlabel plugTo(Object[]) 
    -controlP5.Controller : Textlabel plugTo(Object[], String) 
    -controlP5.Controller : Textlabel registerProperty(String) 
    -controlP5.Controller : Textlabel registerProperty(String, String) 
    -controlP5.Controller : Textlabel registerTooltip(String) 
    -controlP5.Controller : Textlabel removeBehavior() 
    -controlP5.Controller : Textlabel removeCallback() 
    -controlP5.Controller : Textlabel removeCallback(CallbackListener) 
    -controlP5.Controller : Textlabel removeListener(ControlListener) 
    -controlP5.Controller : Textlabel removeProperty(String) 
    -controlP5.Controller : Textlabel removeProperty(String, String) 
    -controlP5.Controller : Textlabel setArrayValue(float[]) 
    -controlP5.Controller : Textlabel setArrayValue(int, float) 
    -controlP5.Controller : Textlabel setBehavior(ControlBehavior) 
    -controlP5.Controller : Textlabel setBroadcast(boolean) 
    -controlP5.Controller : Textlabel setCaptionLabel(String) 
    -controlP5.Controller : Textlabel setColor(CColor) 
    -controlP5.Controller : Textlabel setColorActive(int) 
    -controlP5.Controller : Textlabel setColorBackground(int) 
    -controlP5.Controller : Textlabel setColorCaptionLabel(int) 
    -controlP5.Controller : Textlabel setColorForeground(int) 
    -controlP5.Controller : Textlabel setColorValueLabel(int) 
    -controlP5.Controller : Textlabel setDecimalPrecision(int) 
    -controlP5.Controller : Textlabel setDefaultValue(float) 
    -controlP5.Controller : Textlabel setHeight(int) 
    -controlP5.Controller : Textlabel setId(int) 
    -controlP5.Controller : Textlabel setImages(PImage, PImage, PImage) 
    -controlP5.Controller : Textlabel setImages(PImage, PImage, PImage, PImage) 
    -controlP5.Controller : Textlabel setLabelVisible(boolean) 
    -controlP5.Controller : Textlabel setLock(boolean) 
    -controlP5.Controller : Textlabel setMax(float) 
    -controlP5.Controller : Textlabel setMin(float) 
    -controlP5.Controller : Textlabel setMouseOver(boolean) 
    -controlP5.Controller : Textlabel setMoveable(boolean) 
    -controlP5.Controller : Textlabel setPosition(PVector) 
    -controlP5.Controller : Textlabel setPosition(float, float) 
    -controlP5.Controller : Textlabel setSize(PImage) 
    -controlP5.Controller : Textlabel setSize(int, int) 
    -controlP5.Controller : Textlabel setStringValue(String) 
    -controlP5.Controller : Textlabel setUpdate(boolean) 
    -controlP5.Controller : Textlabel setValueLabel(String) 
    -controlP5.Controller : Textlabel setView(ControllerView) 
    -controlP5.Controller : Textlabel setVisible(boolean) 
    -controlP5.Controller : Textlabel setWidth(int) 
    -controlP5.Controller : Textlabel show() 
    -controlP5.Controller : Textlabel unlock() 
    -controlP5.Controller : Textlabel unplugFrom(Object) 
    -controlP5.Controller : Textlabel unplugFrom(Object[]) 
    -controlP5.Controller : Textlabel unregisterTooltip() 
    -controlP5.Controller : Textlabel update() 
    -controlP5.Controller : Textlabel updateSize() 
    -controlP5.Controller : boolean isActive() 
    -controlP5.Controller : boolean isBroadcast() 
    -controlP5.Controller : boolean isInside() 
    -controlP5.Controller : boolean isLabelVisible() 
    -controlP5.Controller : boolean isListening() 
    -controlP5.Controller : boolean isLock() 
    -controlP5.Controller : boolean isMouseOver() 
    -controlP5.Controller : boolean isMousePressed() 
    -controlP5.Controller : boolean isMoveable() 
    -controlP5.Controller : boolean isUpdate() 
    -controlP5.Controller : boolean isVisible() 
    -controlP5.Controller : float getArrayValue(int) 
    -controlP5.Controller : float getDefaultValue() 
    -controlP5.Controller : float getMax() 
    -controlP5.Controller : float getMin() 
    -controlP5.Controller : float getValue() 
    -controlP5.Controller : float[] getArrayValue() 
    -controlP5.Controller : int getDecimalPrecision() 
    -controlP5.Controller : int getHeight() 
    -controlP5.Controller : int getId() 
    -controlP5.Controller : int getWidth() 
    -controlP5.Controller : int listenerSize() 
    -controlP5.Controller : void remove() 
    -controlP5.Controller : void setView(ControllerView, int) 
    -java.lang.Object : String toString() 
    -java.lang.Object : boolean equals(Object) 
    -
    -
    -*/
    -
    -
    -
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Field Detail

      - - - -
        -
      • -

        _myPaddingX

        -
        public int _myPaddingX
        -
      • -
      - - - -
        -
      • -

        _myPaddingY

        -
        public int _myPaddingY
        -
      • -
      - - - -
        -
      • -

        paddingX

        -
        public static int paddingX
        -
      • -
      - - - -
        -
      • -

        paddingY

        -
        public static int paddingY
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Label

        -
        public Label(ControlP5 theControlP5,
        -     java.lang.String theValue)
        -
      • -
      - - - -
        -
      • -

        Label

        -
        public Label(ControlP5 theControlP5,
        -     java.lang.String theValue,
        -     int theWidth,
        -     int theHeight,
        -     int theColor)
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        align

        -
        public Label align(int[] a)
        -
      • -
      - - - -
        -
      • -

        align

        -
        public Label align(int theX,
        -          int theY)
        -
      • -
      - - - -
        -
      • -

        alignX

        -
        public Label alignX(int theX)
        -
      • -
      - - - -
        -
      • -

        alignY

        -
        public Label alignY(int theY)
        -
      • -
      - - - -
        -
      • -

        disableColorBackground

        -
        public Label disableColorBackground()
        -
      • -
      - - - -
        -
      • -

        draw

        -
        public void draw(processing.core.PGraphics theGraphics)
        -
        -
        Specified by:
        -
        draw in interface CDrawable
        -
        -
      • -
      - - - -
        -
      • -

        draw

        -
        public void draw(processing.core.PGraphics theGraphics,
        -        int theX,
        -        int theY)
        -
      • -
      - - - -
        -
      • -

        draw

        -
        public void draw(processing.core.PGraphics theGraphics,
        -        int theX,
        -        int theY,
        -        ControllerInterface<?> theController)
        -
      • -
      - - - -
        -
      • -

        enableColorBackground

        -
        public Label enableColorBackground()
        -
      • -
      - - - -
        -
      • -

        getAlign

        -
        public int[] getAlign()
        -
      • -
      - - - -
        -
      • -

        getColor

        -
        public int getColor()
        -
      • -
      - - - - - - - -
        -
      • -

        getHeight

        -
        public int getHeight()
        -
      • -
      - - - -
        -
      • -

        getLetterSpacing

        -
        public int getLetterSpacing()
        -
      • -
      - - - -
        -
      • -

        getLineHeight

        -
        public int getLineHeight()
        -
      • -
      - - - -
        -
      • -

        getOffsetYratio

        -
        public float getOffsetYratio()
        -
      • -
      - - - -
        -
      • -

        getOverflow

        -
        public int getOverflow()
        -
      • -
      - - - - - - - -
        -
      • -

        getText

        -
        public java.lang.String getText()
        -
      • -
      - - - -
        -
      • -

        getTextFormatted

        -
        public java.lang.String getTextFormatted()
        -
      • -
      - - - -
        -
      • -

        getTextHeight

        -
        public int getTextHeight()
        -
      • -
      - - - -
        -
      • -

        getWidth

        -
        public int getWidth()
        -
      • -
      - - - -
        -
      • -

        hide

        -
        public Label hide()
        -
      • -
      - - - -
        -
      • -

        isFixedSize

        -
        public boolean isFixedSize()
        -
      • -
      - - - -
        -
      • -

        isMultiline

        -
        public boolean isMultiline()
        -
      • -
      - - - -
        -
      • -

        isToUpperCase

        -
        public boolean isToUpperCase()
        -
      • -
      - - - -
        -
      • -

        isVisible

        -
        public boolean isVisible()
        -
      • -
      - - - -
        -
      • -

        set

        -
        public Label set(java.lang.String theValue)
        -
      • -
      - - - -
        -
      • -

        setColor

        -
        public Label setColor(int theColor)
        -
      • -
      - - - -
        -
      • -

        setColor

        -
        public Label setColor(int theValue,
        -             boolean theFlag)
        -
      • -
      - - - -
        -
      • -

        setColorBackground

        -
        public Label setColorBackground(int theColor)
        -
      • -
      - - - -
        -
      • -

        setFixedSize

        -
        public Label setFixedSize(boolean theValue)
        -
      • -
      - - - - - - - -
        -
      • -

        setFont

        -
        public Label setFont(int theBitFontIndex)
        -
      • -
      - - - -
        -
      • -

        setFont

        -
        public Label setFont(processing.core.PFont thePFont)
        -
      • -
      - - - -
        -
      • -

        setHeight

        -
        public Label setHeight(int theHeight)
        -
      • -
      - - - -
        -
      • -

        setLetterSpacing

        -
        public Label setLetterSpacing(int theValue)
        -
      • -
      - - - -
        -
      • -

        setLineHeight

        -
        public Label setLineHeight(int theValue)
        -
      • -
      - - - -
        -
      • -

        setMultiline

        -
        public Label setMultiline(boolean theValue)
        -
      • -
      - - - -
        -
      • -

        setOffsetY

        -
        public Label setOffsetY(int theValue)
        -
      • -
      - - - -
        -
      • -

        setOffsetYratio

        -
        public Label setOffsetYratio(float theValue)
        -
      • -
      - - - -
        -
      • -

        setPadding

        -
        public Label setPadding(int thePaddingX,
        -               int thePaddingY)
        -
      • -
      - - - -
        -
      • -

        setPaddingX

        -
        public Label setPaddingX(int thePaddingX)
        -
      • -
      - - - -
        -
      • -

        setPaddingY

        -
        public Label setPaddingY(int thePaddingY)
        -
      • -
      - - - -
        -
      • -

        setSize

        -
        public Label setSize(int theSize)
        -
      • -
      - - - -
        -
      • -

        setText

        -
        public Label setText(java.lang.String theValue)
        -
      • -
      - - - -
        -
      • -

        setVisible

        -
        public Label setVisible(boolean theValue)
        -
      • -
      - - - -
        -
      • -

        setWidth

        -
        public Label setWidth(int theWidth)
        -
      • -
      - - - -
        -
      • -

        show

        -
        public Label show()
        -
      • -
      - - - -
        -
      • -

        toUpperCase

        -
        public Label toUpperCase(boolean theValue)
        -
      • -
      - - - - -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ListBox.html b/reference/controlP5/ListBox.html deleted file mode 100644 index 6125ca8..0000000 --- a/reference/controlP5/ListBox.html +++ /dev/null @@ -1,1353 +0,0 @@ - - - - - -ListBox (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ListBox

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    ControllerInterface<ListBox>, ControlListener, ControlP5Constants
    -
    -
    -
    -
    public class ListBox
    -extends ControlGroup<ListBox>
    -implements ControlListener
    -
    A ListBox is a list of vertically aligned items which can be scrolled if required.
    -
    See Also:
    DropdownList
    -
    +Example
    /**
    -* ControlP5 ListBox
    -*
    -* find a list of public methods available for the ListBox Controller
    -* at the bottom of this sketch.
    -* use the scrollwheel, up or down cursors to scroll through 
    -* a listbox when hovering with the mouse.
    -*
    -* DEPRECATED, use ScrollableList instead.
    -*
    -* by Andreas Schlegel, 2012
    -* www.sojamo.de/libraries/controlp5
    -*
    -*/
    -
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -ListBox l;
    -
    -int cnt = 0;
    -
    -void setup() {
    -  size(700, 400);
    -  
    -  ControlP5.printPublicMethodsFor(ListBox.class);
    -
    -  cp5 = new ControlP5(this);
    -  l = cp5.addListBox("myList")
    -         .setPosition(100, 100)
    -         .setSize(120, 120)
    -         .setItemHeight(15)
    -         .setBarHeight(15)
    -         .setColorBackground(color(255, 128))
    -         .setColorActive(color(0))
    -         .setColorForeground(color(255, 100,0))
    -         ;
    -
    -  l.captionLabel().toUpperCase(true);
    -  l.captionLabel().set("A Listbox");
    -  l.captionLabel().setColor(0xffff0000);
    -  l.captionLabel().style().marginTop = 3;
    -  l.valueLabel().style().marginTop = 3;
    -  
    -  for (int i=0;i<80;i++) {
    -    ListBoxItem lbi = l.addItem("item "+i, i);
    -    lbi.setColorBackground(0xffff0000);
    -  }
    -  
    -}
    -
    -void keyPressed() {
    -  if (key=='0') {
    -    // will activate the listbox item with value 5
    -    l.setValue(5);
    -  }
    -  if (key=='1') {
    -    // set the height of a listBox should always be a multiple of itemHeight
    -    l.setHeight(210);
    -  } 
    -  else if (key=='2') {
    -    // set the height of a listBox should always be a multiple of itemHeight
    -    l.setHeight(120);
    -  } 
    -  else if (key=='3') {
    -    // set the width of a listBox
    -    l.setWidth(200);
    -  }
    -  else if (key=='i') {
    -    // set the height of a listBoxItem, should always be a fraction of the listBox
    -    l.setItemHeight(30);
    -  } 
    -  else if (key=='u') {
    -    // set the height of a listBoxItem, should always be a fraction of the listBox
    -    l.setItemHeight(10);
    -    l.setBackgroundColor(color(100, 0, 0));
    -  } 
    -  else if (key=='a') {
    -    int n = (int)(random(100000));
    -    l.addItem("item "+n, n);
    -  } 
    -  else if (key=='d') {
    -    l.removeItem("item "+cnt);
    -    cnt++;
    -  } else if (key=='c') {
    -    l.clear();
    -  }
    -}
    -
    -void controlEvent(ControlEvent theEvent) {
    -  // ListBox is if type ControlGroup.
    -  // 1 controlEvent will be executed, where the event
    -  // originates from a ControlGroup. therefore
    -  // you need to check the Event with
    -  // if (theEvent.isGroup())
    -  // to avoid an error message from controlP5.
    -
    -  if (theEvent.isGroup()) {
    -    // an event from a group e.g. scrollList
    -    println(theEvent.group().value()+" from "+theEvent.group());
    -  }
    -  
    -  if(theEvent.isGroup() && theEvent.name().equals("myList")){
    -    int test = (int)theEvent.group().value();
    -    println("test "+test);
    -}
    -}
    -
    -void draw() {
    -  background(128);
    -  // scroll the scroll List according to the mouseX position
    -  // when holding down SPACE.
    -  if (keyPressed && key==' ') {
    -    //l.scroll(mouseX/((float)width)); // scroll taks values between 0 and 1
    -  }
    -  if (keyPressed && key==' ') {
    -    l.setWidth(mouseX);
    -  }
    -}
    -
    -
    -
    -/*
    -a list of all methods available for the ListBox Controller
    -use ControlP5.printPublicMethodsFor(ListBox.class);
    -to print the following list into the console.
    -
    -You can find further details about class ListBox in the javadoc.
    -
    -Format:
    -ClassName : returnType methodName(parameter type)
    -
    -
    -controlP5.ControlGroup : ControlGroup activateEvent(boolean) 
    -controlP5.ControlGroup : ControlGroup addListener(ControlListener) 
    -controlP5.ControlGroup : ControlGroup hideBar() 
    -controlP5.ControlGroup : ControlGroup removeListener(ControlListener) 
    -controlP5.ControlGroup : ControlGroup setBackgroundColor(int) 
    -controlP5.ControlGroup : ControlGroup setBackgroundHeight(int) 
    -controlP5.ControlGroup : ControlGroup setBarHeight(int) 
    -controlP5.ControlGroup : ControlGroup showBar() 
    -controlP5.ControlGroup : ControllerGroup updateInternalEvents(PApplet) 
    -controlP5.ControlGroup : String info() 
    -controlP5.ControlGroup : String toString() 
    -controlP5.ControlGroup : boolean isBarVisible() 
    -controlP5.ControlGroup : int getBackgroundHeight() 
    -controlP5.ControlGroup : int getBarHeight() 
    -controlP5.ControlGroup : int listenerSize() 
    -controlP5.ControllerGroup : CColor getColor() 
    -controlP5.ControllerGroup : ControlWindow getWindow() 
    -controlP5.ControllerGroup : ControlWindowCanvas addCanvas(ControlWindowCanvas) 
    -controlP5.ControllerGroup : Controller getController(String) 
    -controlP5.ControllerGroup : ControllerGroup add(ControllerInterface) 
    -controlP5.ControllerGroup : ControllerGroup close() 
    -controlP5.ControllerGroup : ControllerGroup disableCollapse() 
    -controlP5.ControllerGroup : ControllerGroup enableCollapse() 
    -controlP5.ControllerGroup : ControllerGroup hide() 
    -controlP5.ControllerGroup : ControllerGroup moveTo(ControlWindow) 
    -controlP5.ControllerGroup : ControllerGroup open() 
    -controlP5.ControllerGroup : ControllerGroup registerProperty(String) 
    -controlP5.ControllerGroup : ControllerGroup registerProperty(String, String) 
    -controlP5.ControllerGroup : ControllerGroup remove(CDrawable) 
    -controlP5.ControllerGroup : ControllerGroup remove(ControllerInterface) 
    -controlP5.ControllerGroup : ControllerGroup removeCanvas(ControlWindowCanvas) 
    -controlP5.ControllerGroup : ControllerGroup removeProperty(String) 
    -controlP5.ControllerGroup : ControllerGroup removeProperty(String, String) 
    -controlP5.ControllerGroup : ControllerGroup setAddress(String) 
    -controlP5.ControllerGroup : ControllerGroup setArrayValue(float[]) 
    -controlP5.ControllerGroup : ControllerGroup setColor(CColor) 
    -controlP5.ControllerGroup : ControllerGroup setColorActive(int) 
    -controlP5.ControllerGroup : ControllerGroup setColorBackground(int) 
    -controlP5.ControllerGroup : ControllerGroup setColorForeground(int) 
    -controlP5.ControllerGroup : ControllerGroup setColorLabel(int) 
    -controlP5.ControllerGroup : ControllerGroup setColorValue(int) 
    -controlP5.ControllerGroup : ControllerGroup setHeight(int) 
    -controlP5.ControllerGroup : ControllerGroup setId(int) 
    -controlP5.ControllerGroup : ControllerGroup setLabel(String) 
    -controlP5.ControllerGroup : ControllerGroup setMoveable(boolean) 
    -controlP5.ControllerGroup : ControllerGroup setOpen(boolean) 
    -controlP5.ControllerGroup : ControllerGroup setPosition(PVector) 
    -controlP5.ControllerGroup : ControllerGroup setPosition(float, float) 
    -controlP5.ControllerGroup : ControllerGroup setStringValue(String) 
    -controlP5.ControllerGroup : ControllerGroup setUpdate(boolean) 
    -controlP5.ControllerGroup : ControllerGroup setValue(float) 
    -controlP5.ControllerGroup : ControllerGroup setVisible(boolean) 
    -controlP5.ControllerGroup : ControllerGroup setWidth(int) 
    -controlP5.ControllerGroup : ControllerGroup show() 
    -controlP5.ControllerGroup : ControllerGroup update() 
    -controlP5.ControllerGroup : ControllerGroup updateAbsolutePosition() 
    -controlP5.ControllerGroup : ControllerProperty getProperty(String) 
    -controlP5.ControllerGroup : ControllerProperty getProperty(String, String) 
    -controlP5.ControllerGroup : Label captionLabel() 
    -controlP5.ControllerGroup : Label valueLabel() 
    -controlP5.ControllerGroup : PVector getPosition() 
    -controlP5.ControllerGroup : String getAddress() 
    -controlP5.ControllerGroup : String getName() 
    -controlP5.ControllerGroup : String getStringValue() 
    -controlP5.ControllerGroup : String info() 
    -controlP5.ControllerGroup : String toString() 
    -controlP5.ControllerGroup : Tab getTab() 
    -controlP5.ControllerGroup : boolean isCollapse() 
    -controlP5.ControllerGroup : boolean isMouseOver() 
    -controlP5.ControllerGroup : boolean isMoveable() 
    -controlP5.ControllerGroup : boolean isOpen() 
    -controlP5.ControllerGroup : boolean isUpdate() 
    -controlP5.ControllerGroup : boolean isVisible() 
    -controlP5.ControllerGroup : boolean setMousePressed(boolean) 
    -controlP5.ControllerGroup : float getValue() 
    -controlP5.ControllerGroup : float[] getArrayValue() 
    -controlP5.ControllerGroup : int getHeight() 
    -controlP5.ControllerGroup : int getId() 
    -controlP5.ControllerGroup : int getWidth() 
    -controlP5.ControllerGroup : void remove() 
    -controlP5.ListBox : ListBox actAsPulldownMenu(boolean) 
    -controlP5.ListBox : ListBox addItems(List) 
    -controlP5.ListBox : ListBox addItems(List, int) 
    -controlP5.ListBox : ListBox addItems(String[]) 
    -controlP5.ListBox : ListBox clear() 
    -controlP5.ListBox : ListBox hideScrollbar() 
    -controlP5.ListBox : ListBox removeItem(String) 
    -controlP5.ListBox : ListBox scroll(float) 
    -controlP5.ListBox : ListBox setColorActive(int) 
    -controlP5.ListBox : ListBox setColorBackground(int) 
    -controlP5.ListBox : ListBox setColorForeground(int) 
    -controlP5.ListBox : ListBox setColorLabel(int) 
    -controlP5.ListBox : ListBox setHeight(int) 
    -controlP5.ListBox : ListBox setItemHeight(int) 
    -controlP5.ListBox : ListBox setListBoxItems(String[][]) 
    -controlP5.ListBox : ListBox setWidth(int) 
    -controlP5.ListBox : ListBox showScrollbar() 
    -controlP5.ListBox : ListBox toUpperCase(boolean) 
    -controlP5.ListBox : ListBoxItem addItem(String, int) 
    -controlP5.ListBox : ListBoxItem getItem(Controller) 
    -controlP5.ListBox : ListBoxItem getItem(String) 
    -controlP5.ListBox : ListBoxItem getItem(int) 
    -controlP5.ListBox : String[][] getListBoxItems() 
    -controlP5.ListBox : boolean isScrollbarVisible() 
    -java.lang.Object : String toString() 
    -java.lang.Object : String toString() 
    -java.lang.Object : boolean equals(Object) 
    -
    -
    -*/
    -
    -
    -
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ListBox

        -
        public ListBox(ControlP5 theControlP5,
        -       java.lang.String theName)
        -
        Convenience constructor to extend ListBox.
        -
        Parameters:
        theControlP5 -
        theName -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      -
    • -
    - - -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ListBoxItem.html b/reference/controlP5/ListBoxItem.html deleted file mode 100644 index f6dc0b4..0000000 --- a/reference/controlP5/ListBoxItem.html +++ /dev/null @@ -1,455 +0,0 @@ - - - - - -ListBoxItem (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ListBoxItem

-
-
- -
-
    -
  • -
    -
    -
    public class ListBoxItem
    -extends java.lang.Object
    -
    Used by the ListBox class.
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      CColorgetColor() 
      intgetId() -
      returns the id of a listboxitem.
      -
      java.lang.StringgetName() -
      returns the name of the listboxitem.
      -
      java.lang.StringgetText() -
      returns the text displayed for this listboxitem.
      -
      booleangetToUpperCase() -
      returns the uppercase status of this listboxitem.
      -
      intgetValue() -
      returns the value of the listboxitem.
      -
      booleanisActive() -
      TODO no effect yet.
      -
      voidsetColor(CColor theColor) 
      voidsetColorActive(int theColor) 
      voidsetColorBackground(int theColor) 
      voidsetColorForeground(int theColor) 
      voidsetColorLabel(int theColor) 
      voidsetId(int theId) -
      set the id of a listboxitem
      -
      ListBoxItemsetText(java.lang.String theText) -
      change text text of a lsitboxitem's label.
      -
      java.lang.StringtoString()
      voidtoUpperCase(boolean theFlag) -
      by default the text of a listboxitem is set to uppercase, use toUpperCase(false) to make - changes.
      -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        getColor

        -
        public CColor getColor()
        -
      • -
      - - - -
        -
      • -

        getId

        -
        public int getId()
        -
        returns the id of a listboxitem.
        -
        Returns:
        int
        -
      • -
      - - - -
        -
      • -

        getName

        -
        public java.lang.String getName()
        -
        returns the name of the listboxitem. use ListBox.itme(ListBoxItem.getName()) to access a - listboxitem by name.
        -
      • -
      - - - -
        -
      • -

        getText

        -
        public java.lang.String getText()
        -
        returns the text displayed for this listboxitem. use setText(String) to apply changes.
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        getToUpperCase

        -
        public boolean getToUpperCase()
        -
        returns the uppercase status of this listboxitem.
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        getValue

        -
        public int getValue()
        -
        returns the value of the listboxitem.
        -
        Returns:
        int
        -
      • -
      - - - -
        -
      • -

        isActive

        -
        public boolean isActive()
        -
        TODO no effect yet.
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        setColor

        -
        public void setColor(CColor theColor)
        -
      • -
      - - - -
        -
      • -

        setColorActive

        -
        public void setColorActive(int theColor)
        -
      • -
      - - - -
        -
      • -

        setColorBackground

        -
        public void setColorBackground(int theColor)
        -
      • -
      - - - -
        -
      • -

        setColorForeground

        -
        public void setColorForeground(int theColor)
        -
      • -
      - - - -
        -
      • -

        setColorLabel

        -
        public void setColorLabel(int theColor)
        -
      • -
      - - - -
        -
      • -

        setId

        -
        public void setId(int theId)
        -
        set the id of a listboxitem
        -
        Parameters:
        theId -
        -
      • -
      - - - -
        -
      • -

        setText

        -
        public ListBoxItem setText(java.lang.String theText)
        -
        change text text of a lsitboxitem's label.
        -
        Parameters:
        theText -
        -
      • -
      - - - -
        -
      • -

        toString

        -
        public java.lang.String toString()
        -
        -
        Overrides:
        -
        toString in class java.lang.Object
        -
        -
      • -
      - - - -
        -
      • -

        toUpperCase

        -
        public void toUpperCase(boolean theFlag)
        -
        by default the text of a listboxitem is set to uppercase, use toUpperCase(false) to make - changes.
        -
        Parameters:
        theFlag -
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Matrix.html b/reference/controlP5/Matrix.html deleted file mode 100644 index adca802..0000000 --- a/reference/controlP5/Matrix.html +++ /dev/null @@ -1,1228 +0,0 @@ - - - - - -Matrix (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Matrix

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    CDrawable, ControllerInterface<Matrix>, ControlP5Constants
    -
    -
    -
    -
    public class Matrix
    -extends Controller<Matrix>
    -
    A matrix is a 2d array with a pointer that traverses through the matrix in a timed interval. if - an item of a matrix-column is active, the x and y position of the corresponding cell will trigger - an event and notify the program. see the ControlP5matrix example for more information.
    -
    -
    +Example
    /**
    - * ControlP5 Matrix
    - *
    - * A matrix can be used for example as a sequencer, a drum machine.
    - *
    - * find a list of public methods available for the Matrix Controller
    - * at the bottom of this sketch.
    - *
    - * by Andreas Schlegel, 2012
    - * www.sojamo.de/libraries/controlp5
    - *
    - */
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -Dong[][] d;
    -int nx = 10;
    -int ny = 10;
    -
    -void setup() {
    -  size(700, 400);
    -
    -  cp5 = new ControlP5(this);
    -
    -  cp5.addMatrix("myMatrix")
    -     .setPosition(50, 100)
    -     .setSize(200, 200)
    -     .setGrid(nx, ny)
    -     .setGap(10, 1)
    -     .setInterval(200)
    -     .setMode(ControlP5.MULTIPLES)
    -     .setColorBackground(color(120))
    -     .setBackground(color(40))
    -     ;
    -  
    -  cp5.getController("myMatrix").getCaptionLabel().alignX(CENTER);
    -  
    -  // use setMode to change the cell-activation which by 
    -  // default is ControlP5.SINGLE_ROW, 1 active cell per row, 
    -  // but can be changed to ControlP5.SINGLE_COLUMN or 
    -  // ControlP5.MULTIPLES
    -
    -    d = new Dong[nx][ny];
    -  for (int x = 0;x
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Matrix

        -
        public Matrix(ControlP5 theControlP5,
        -      ControllerGroup<?> theParent,
        -      java.lang.String theName,
        -      int theCellX,
        -      int theCellY,
        -      int theX,
        -      int theY,
        -      int theWidth,
        -      int theHeight)
        -
      • -
      - - - -
        -
      • -

        Matrix

        -
        public Matrix(ControlP5 theControlP5,
        -      java.lang.String theName)
        -
        Convenience constructor to extend Matrix.
        -
        Parameters:
        theControlP5 -
        theName -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        clear

        -
        public Matrix clear()
        -
      • -
      - - - -
        -
      • -

        get

        -
        public boolean get(int theX,
        -          int theY)
        -
      • -
      - - - -
        -
      • -

        getCells

        -
        public int[][] getCells()
        -
      • -
      - - - -
        -
      • -

        getInterval

        -
        public int getInterval()
        -
      • -
      - - - -
        -
      • -

        getMode

        -
        public int getMode()
        -
      • -
      - - - -
        -
      • -

        getX

        -
        public static int getX(float thePosition)
        -
      • -
      - - - -
        -
      • -

        getX

        -
        public static int getX(int thePosition)
        -
      • -
      - - - -
        -
      • -

        getY

        -
        public static int getY(float thePosition)
        -
      • -
      - - - -
        -
      • -

        getY

        -
        public static int getY(int thePosition)
        -
      • -
      - - - -
        -
      • -

        isPlaying

        -
        public boolean isPlaying()
        -
      • -
      - - - -
        -
      • -

        mousePressed

        -
        public void mousePressed()
        -
      • -
      - - - -
        -
      • -

        mouseReleased

        -
        public void mouseReleased()
        -
      • -
      - - - -
        -
      • -

        pause

        -
        public Matrix pause()
        -
      • -
      - - - -
        -
      • -

        play

        -
        public Matrix play()
        -
      • -
      - - - - - - - -
        -
      • -

        plugTo

        -
        public Matrix plugTo(java.lang.Object theObject,
        -            java.lang.String thePlugName)
        -
        -
        Overrides:
        -
        plugTo in class Controller<Matrix>
        -
        -
      • -
      - - - - - - - -
        -
      • -

        set

        -
        public Matrix set(int theX,
        -         int theY,
        -         boolean theValue)
        -
        set the state of a particular cell inside a matrix. use true or false for parameter theValue
        -
        Parameters:
        theX -
        theY -
        theValue -
        -
        Returns:
        Matrix
        -
      • -
      - - - -
        -
      • -

        setBackground

        -
        public Matrix setBackground(int c)
        -
      • -
      - - - -
        -
      • -

        setCells

        -
        public Matrix setCells(int[][] theCells)
        -
      • -
      - - - -
        -
      • -

        setGap

        -
        public Matrix setGap(int theX,
        -            int theY)
        -
      • -
      - - - -
        -
      • -

        setGrid

        -
        public Matrix setGrid(int theCellX,
        -             int theCellY)
        -
      • -
      - - - -
        -
      • -

        setInterval

        -
        public Matrix setInterval(int theInterval)
        -
        set the speed of intervals in millis iterating through the matrix.
        -
        Parameters:
        theInterval - int
        -
        Returns:
        Matrix
        -
      • -
      - - - -
        -
      • -

        setMode

        -
        public Matrix setMode(int theMode)
        -
        use setMode to change the cell-activation which by default is ControlP5.SINGLE_ROW, 1 active - cell per row, but can be changed to ControlP5.SINGLE_COLUMN or ControlP5.MULTIPLES
        -
        Parameters:
        theMode - return Matrix
        -
      • -
      - - - - - - - -
        -
      • -

        stop

        -
        public Matrix stop()
        -
      • -
      - - - -
        -
      • -

        trigger

        -
        public Matrix trigger(int theColumn)
        -
      • -
      - - - - - - - -
        -
      • -

        updateDisplayMode

        -
        public Matrix updateDisplayMode(int theMode)
        -
      • -
      - - - - -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/MultiList.html b/reference/controlP5/MultiList.html deleted file mode 100644 index 51af43f..0000000 --- a/reference/controlP5/MultiList.html +++ /dev/null @@ -1,921 +0,0 @@ - - - - - -MultiList (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class MultiList

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    CDrawable, ControllerInterface<MultiList>, ControlListener, ControlP5Constants
    -
    -
    -
    -
    public class MultiList
    -extends Controller<MultiList>
    -implements ControlListener
    -
    A Multilist is a multi-menu-tree controller. see the example for more information and how to use.
    -
    -
    +Example
    /**
    - * ControlP5 MultiList
    - * by andreas schlegel, 2009
    - */
    -
    -import controlP5.*;
    -
    -ControlP5 controlP5;
    -MultiList l;
    -
    -void setup() {
    -  size(700,400);
    -  frameRate(30);
    -  controlP5 = new ControlP5(this);
    -  
    -  // add a multiList to controlP5.
    -  // elements of the list have default dimensions
    -  // here, a width of 100 and a height of 12
    -  l = controlP5.addMultiList("myList",20,20,100,12);
    -  
    -  // create a multiListButton which we will use to
    -  // add new buttons to the multilist
    -  MultiListButton b;
    -  b = l.add("level1",1);
    -  
    -  // add items to a sublist of button "level1"
    -  b.add("level11",11).setLabel("level1 item1");
    -  b.add("level12",12).setLabel("level1 item2");
    -
    -  b = l.add("level2",2);
    -  
    -  int cnt = 100;
    -  
    -  // add some more sublists.
    -  for(int i=0;i<10;i++) {
    -    MultiListButton c = b.add("level2"+(i+1),20+i+1);
    -    c.setLabel("level2 item"+(i+1));
    -    c.setColorBackground(color(64 + 18*i,0,0));
    -    
    -    if(i==4) {
    -    // changing the width and the height of a button
    -    // will be inherited by its sublists.
    -    c.setWidth(100);
    -    c.setHeight(20);
    -    }
    -    cnt++;
    -    
    -    if(i==4) {
    -      for(int j=0;j<10;j++) {
    -        cnt++;
    -        MultiListButton d;
    -        d = c.add("level2"+i+""+j,250+j+1);
    -        d.setLabel("level2 item"+(i+1)+" "+"item"+(j+1));
    -        d.setColorBackground(color(64 + 18*j,(64 + 18*j)/2,0));
    -        d.setId(cnt);
    -        d.setWidth(200);
    -      }
    -    }
    -  }
    -  
    -  MultiListButton cc = (MultiListButton)controlP5.controller("level21");
    -  cc.setHeight(40);
    -}
    -
    -
    -void controlEvent(ControlEvent theEvent) {
    -  println(theEvent.controller().name()+" = "+theEvent.value());  
    -  // uncomment the line below to remove a multilist item when clicked.
    -  // theEvent.controller().remove();
    -}
    -
    -
    -void draw() {
    -  background(0);
    -}
    -
    -void keyPressed() {
    -  if(controlP5.controller("level23")!=null) {
    -    println("removing multilist button level23.");
    -    controlP5.controller("level23").remove();
    -  }
    -}
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Field Detail

      - - - -
        -
      • -

        closeDelay

        -
        public int closeDelay
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        MultiList

        -
        public MultiList(ControlP5 theControlP5,
        -         java.lang.String theName)
        -
        Convenience constructor to extend MultiList.
        -
        Parameters:
        theControlP5 -
        theName -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      - - - -
        -
      • -

        MultiList

        -
        public MultiList(ControlP5 theControlP5,
        -         Tab theParent,
        -         java.lang.String theName,
        -         int theX,
        -         int theY,
        -         int theWidth,
        -         int theHeight)
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        add

        -
        public MultiListButton add(java.lang.String theName,
        -                  int theValue)
        -
        adds multilist buttons to the multilist.
        -
        Parameters:
        theName - String
        theValue - int
        -
        Returns:
        MultiListButton
        -
      • -
      - - - -
        -
      • -

        close

        -
        public void close()
        -
      • -
      - - - -
        -
      • -

        close

        -
        public void close(controlP5.MultiListInterface theInterface)
        -
        Parameters:
        theInterface - MultiListInterface
        -
      • -
      - - - -
        -
      • -

        controlEvent

        -
        public void controlEvent(ControlEvent theEvent)
        -
        Description copied from interface: ControlListener
        -
        controlEvent is called by controlP5's ControlBroadcaster to inform available listeners about - value changes. Use the CallbackListener to get informed when actions such as pressed, - release, drag, etc are performed.
        -
        -
        Specified by:
        -
        controlEvent in interface ControlListener
        -
        Parameters:
        theEvent -
        See Also:
        CallbackListener, -CallbackEvent
        -
      • -
      - - - -
        -
      • -

        draw

        -
        public void draw(processing.core.PGraphics theGraphics)
        -
        the default draw function for each controller extending superclass Controller. This draw - function will take care of default matrix operations and will call the display function of - the current ControllerView object active for this particular controller.
        -
        -
        Specified by:
        -
        draw in interface CDrawable
        -
        Specified by:
        -
        draw in interface ControllerInterface<MultiList>
        -
        Overrides:
        -
        draw in class Controller<MultiList>
        -
        See Also:
        ControllerView
        -
      • -
      - - - -
        -
      • -

        getChildren

        -
        @Deprecated
        -public java.util.List<MultiListButton> getChildren()
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        getDirection

        -
        public int getDirection()
        -
      • -
      - - - -
        -
      • -

        observe

        -
        public boolean observe()
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        occupied

        -
        public void occupied(boolean theFlag)
        -
        Parameters:
        theFlag - boolean
        -
      • -
      - - - -
        -
      • -

        open

        -
        public void open()
        -
      • -
      - - - - - - - -
        -
      • -

        setup

        -
        public void setup()
        -
      • -
      - - - - - - - -
        -
      • -

        subelements

        -
        @Deprecated
        -public java.util.List<MultiListButton> subelements()
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        toUpperCase

        -
        public MultiList toUpperCase(boolean theValue)
        -
      • -
      - - - - - - - -
        -
      • -

        update

        -
        public boolean update(processing.core.PApplet theApplet)
        -
        Parameters:
        theApplet -
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        updateLocation

        -
        public void updateLocation(float theX,
        -                  float theY)
        -
        Parameters:
        theX - float
        theY - float
        -
      • -
      - - - -
        -
      • -

        name

        -
        public java.lang.String name()
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/MultiListButton.html b/reference/controlP5/MultiListButton.html deleted file mode 100644 index 59e4efb..0000000 --- a/reference/controlP5/MultiListButton.html +++ /dev/null @@ -1,614 +0,0 @@ - - - - - -MultiListButton (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class MultiListButton

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    CDrawable, ControllerInterface<Button>, ControlP5Constants
    -
    -
    -
    -
    public class MultiListButton
    -extends Button
    -
    Used by MultiList.
    -
    -
    +Example
    /**
    - * ControlP5 MultiList
    - * by andreas schlegel, 2009
    - */
    -
    -import controlP5.*;
    -
    -ControlP5 controlP5;
    -MultiList l;
    -
    -void setup() {
    -  size(700,400);
    -  frameRate(30);
    -  controlP5 = new ControlP5(this);
    -  
    -  // add a multiList to controlP5.
    -  // elements of the list have default dimensions
    -  // here, a width of 100 and a height of 12
    -  l = controlP5.addMultiList("myList",20,20,100,12);
    -  
    -  // create a multiListButton which we will use to
    -  // add new buttons to the multilist
    -  MultiListButton b;
    -  b = l.add("level1",1);
    -  
    -  // add items to a sublist of button "level1"
    -  b.add("level11",11).setLabel("level1 item1");
    -  b.add("level12",12).setLabel("level1 item2");
    -
    -  b = l.add("level2",2);
    -  
    -  int cnt = 100;
    -  
    -  // add some more sublists.
    -  for(int i=0;i<10;i++) {
    -    MultiListButton c = b.add("level2"+(i+1),20+i+1);
    -    c.setLabel("level2 item"+(i+1));
    -    c.setColorBackground(color(64 + 18*i,0,0));
    -    
    -    if(i==4) {
    -    // changing the width and the height of a button
    -    // will be inherited by its sublists.
    -    c.setWidth(100);
    -    c.setHeight(20);
    -    }
    -    cnt++;
    -    
    -    if(i==4) {
    -      for(int j=0;j<10;j++) {
    -        cnt++;
    -        MultiListButton d;
    -        d = c.add("level2"+i+""+j,250+j+1);
    -        d.setLabel("level2 item"+(i+1)+" "+"item"+(j+1));
    -        d.setColorBackground(color(64 + 18*j,(64 + 18*j)/2,0));
    -        d.setId(cnt);
    -        d.setWidth(200);
    -      }
    -    }
    -  }
    -  
    -  MultiListButton cc = (MultiListButton)controlP5.controller("level21");
    -  cc.setHeight(40);
    -}
    -
    -
    -void controlEvent(ControlEvent theEvent) {
    -  println(theEvent.controller().name()+" = "+theEvent.value());  
    -  // uncomment the line below to remove a multilist item when clicked.
    -  // theEvent.controller().remove();
    -}
    -
    -
    -void draw() {
    -  background(0);
    -}
    -
    -void keyPressed() {
    -  if(controlP5.controller("level23")!=null) {
    -    println("removing multilist button level23.");
    -    controlP5.controller("level23").remove();
    -  }
    -}
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        add

        -
        public MultiListButton add(java.lang.String theName,
        -                  float theValue)
        -
        add a new button to the sublist of this multilist button.
        -
        Parameters:
        theName - String
        theValue - int
        -
        Returns:
        MultiListButton
        -
      • -
      - - - -
        -
      • -

        close

        -
        public void close()
        -
      • -
      - - - -
        -
      • -

        close

        -
        public void close(controlP5.MultiListInterface theInterface)
        -
      • -
      - - - -
        -
      • -

        getChildren

        -
        @Deprecated
        -public java.util.List<MultiListButton> getChildren()
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        getDirection

        -
        public int getDirection()
        -
      • -
      - - - - - - - -
        -
      • -

        observe

        -
        public boolean observe()
        -
      • -
      - - - -
        -
      • -

        open

        -
        public void open()
        -
      • -
      - - - - - - - -
        -
      • -

        setHeight

        -
        public MultiListButton setHeight(int theHeight)
        -
        set the height of a multlist button.
        -
        -
        Overrides:
        -
        setHeight in class Controller<Button>
        -
        Parameters:
        theHeight - int
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setWidth

        -
        public MultiListButton setWidth(int theWidth)
        -
        set the width of a multlist button.
        -
        -
        Overrides:
        -
        setWidth in class Controller<Button>
        -
        Parameters:
        theWidth - int
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        toUpperCase

        -
        public MultiListButton toUpperCase(boolean theValue)
        -
      • -
      - - - -
        -
      • -

        updateLocation

        -
        public void updateLocation(float theX,
        -                  float theY)
        -
      • -
      - - - -
        -
      • -

        updateRect

        -
        public void updateRect(float theX,
        -              float theY,
        -              float theW,
        -              float theH)
        -
      • -
      - - - -
        -
      • -

        draw

        -
        public void draw(processing.core.PGraphics theGraphics)
        -
      • -
      - - - -
        -
      • -

        name

        -
        public java.lang.String name()
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Numberbox.html b/reference/controlP5/Numberbox.html deleted file mode 100644 index 5d7a053..0000000 --- a/reference/controlP5/Numberbox.html +++ /dev/null @@ -1,1057 +0,0 @@ - - - - - -Numberbox (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Numberbox

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    CDrawable, ControllerInterface<Numberbox>, ControlP5Constants
    -
    -
    -
    -
    public class Numberbox
    -extends Controller<Numberbox>
    -
    Click and drag the mouse inside a numberbox and move up and down to change the value of a - numberbox. By default the value changes when dragging the mouse up and down. use - setDirection(Controller.HORIZONTAL) to change the mouse control to left and right. - - Why do I get -1000000 as initial value when creating a numberbox without a default value? the - value of a numberbox defaults back to its minValue, which is -1000000. either use a default value - or link a variable to the numberbox - this is done by giving a float or int variable the same - name as the numberbox. - - Use setMultiplier(float) to change the sensitivity of values increasing/decreasing, by default - the multiplier is 1.
    -
    -
    +Example
    /**
    -* ControlP5 Numberbox
    -*
    -*
    -* find a list of public methods available for the Numberbox Controller
    -* at the bottom of this sketch.
    -*
    -* by Andreas Schlegel, 2012
    -* www.sojamo.de/libraries/controlp5
    -*
    -*/
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -int myColorBackground = color(0,0,0);
    -
    -public float numberboxValue = 100;
    -
    -void setup() {
    -  size(700,400);
    -  noStroke();
    -  cp5 = new ControlP5(this);
    -  
    -  cp5.addNumberbox("numberbox")
    -     .setPosition(100,160)
    -     .setSize(100,14)
    -     .setScrollSensitivity(1.1)
    -     .setValue(50)
    -     ;
    -  
    -
    -  cp5.addNumberbox("numberboxValue")
    -     .setPosition(100,200)
    -     .setSize(100,14)
    -     .setRange(0,200)
    -     .setMultiplier(0.1) // set the sensitifity of the numberbox
    -     .setDirection(Controller.HORIZONTAL) // change the control direction to left/right
    -     .setValue(100)
    -     ;
    -  
    -}
    -
    -void draw() {
    -  background(myColorBackground);
    -  fill(numberboxValue);
    -  rect(0,0,width,100);
    -}
    -
    -void numberbox(int theColor) {
    -  myColorBackground = color(theColor);
    -  println("a numberbox event. setting background to "+theColor);
    -}
    -
    -
    -
    -/*
    -a list of all methods available for the Numberbox Controller
    -use ControlP5.printPublicMethodsFor(Numberbox.class);
    -to print the following list into the console.
    -
    -You can find further details about class Numberbox in the javadoc.
    -
    -Format:
    -ClassName : returnType methodName(parameter type)
    -
    -controlP5.Numberbox : Numberbox linebreak() 
    -controlP5.Numberbox : Numberbox setDirection(int) 
    -controlP5.Numberbox : Numberbox setMultiplier(float) 
    -controlP5.Numberbox : Numberbox setRange(float, float) 
    -controlP5.Numberbox : Numberbox setScrollSensitivity(float) 
    -controlP5.Numberbox : Numberbox setValue(float) 
    -controlP5.Numberbox : Numberbox shuffle() 
    -controlP5.Numberbox : Numberbox update() 
    -controlP5.Numberbox : float getMultiplier() 
    -controlP5.Controller : CColor getColor() 
    -controlP5.Controller : ControlBehavior getBehavior() 
    -controlP5.Controller : ControlWindow getControlWindow() 
    -controlP5.Controller : ControlWindow getWindow() 
    -controlP5.Controller : ControllerProperty getProperty(String) 
    -controlP5.Controller : ControllerProperty getProperty(String, String) 
    -controlP5.Controller : Label getCaptionLabel() 
    -controlP5.Controller : Label getValueLabel() 
    -controlP5.Controller : List getControllerPlugList() 
    -controlP5.Controller : Numberbox addCallback(CallbackListener) 
    -controlP5.Controller : Numberbox addListener(ControlListener) 
    -controlP5.Controller : Numberbox bringToFront() 
    -controlP5.Controller : Numberbox bringToFront(ControllerInterface) 
    -controlP5.Controller : Numberbox hide() 
    -controlP5.Controller : Numberbox linebreak() 
    -controlP5.Controller : Numberbox listen(boolean) 
    -controlP5.Controller : Numberbox lock() 
    -controlP5.Controller : Numberbox plugTo(Object) 
    -controlP5.Controller : Numberbox plugTo(Object, String) 
    -controlP5.Controller : Numberbox plugTo(Object[]) 
    -controlP5.Controller : Numberbox plugTo(Object[], String) 
    -controlP5.Controller : Numberbox registerProperty(String) 
    -controlP5.Controller : Numberbox registerProperty(String, String) 
    -controlP5.Controller : Numberbox registerTooltip(String) 
    -controlP5.Controller : Numberbox removeBehavior() 
    -controlP5.Controller : Numberbox removeCallback() 
    -controlP5.Controller : Numberbox removeCallback(CallbackListener) 
    -controlP5.Controller : Numberbox removeListener(ControlListener) 
    -controlP5.Controller : Numberbox removeProperty(String) 
    -controlP5.Controller : Numberbox removeProperty(String, String) 
    -controlP5.Controller : Numberbox setArrayValue(float[]) 
    -controlP5.Controller : Numberbox setArrayValue(int, float) 
    -controlP5.Controller : Numberbox setBehavior(ControlBehavior) 
    -controlP5.Controller : Numberbox setBroadcast(boolean) 
    -controlP5.Controller : Numberbox setCaptionLabel(String) 
    -controlP5.Controller : Numberbox setColor(CColor) 
    -controlP5.Controller : Numberbox setColorActive(int) 
    -controlP5.Controller : Numberbox setColorBackground(int) 
    -controlP5.Controller : Numberbox setColorCaptionLabel(int) 
    -controlP5.Controller : Numberbox setColorForeground(int) 
    -controlP5.Controller : Numberbox setColorValueLabel(int) 
    -controlP5.Controller : Numberbox setDecimalPrecision(int) 
    -controlP5.Controller : Numberbox setDefaultValue(float) 
    -controlP5.Controller : Numberbox setHeight(int) 
    -controlP5.Controller : Numberbox setId(int) 
    -controlP5.Controller : Numberbox setImages(PImage, PImage, PImage) 
    -controlP5.Controller : Numberbox setImages(PImage, PImage, PImage, PImage) 
    -controlP5.Controller : Numberbox setLabelVisible(boolean) 
    -controlP5.Controller : Numberbox setLock(boolean) 
    -controlP5.Controller : Numberbox setMax(float) 
    -controlP5.Controller : Numberbox setMin(float) 
    -controlP5.Controller : Numberbox setMouseOver(boolean) 
    -controlP5.Controller : Numberbox setMoveable(boolean) 
    -controlP5.Controller : Numberbox setPosition(PVector) 
    -controlP5.Controller : Numberbox setPosition(float, float) 
    -controlP5.Controller : Numberbox setSize(PImage) 
    -controlP5.Controller : Numberbox setSize(int, int) 
    -controlP5.Controller : Numberbox setStringValue(String) 
    -controlP5.Controller : Numberbox setUpdate(boolean) 
    -controlP5.Controller : Numberbox setValueLabel(String) 
    -controlP5.Controller : Numberbox setView(ControllerView) 
    -controlP5.Controller : Numberbox setVisible(boolean) 
    -controlP5.Controller : Numberbox setWidth(int) 
    -controlP5.Controller : Numberbox show() 
    -controlP5.Controller : Numberbox unlock() 
    -controlP5.Controller : Numberbox unplugFrom(Object) 
    -controlP5.Controller : Numberbox unplugFrom(Object[]) 
    -controlP5.Controller : Numberbox unregisterTooltip() 
    -controlP5.Controller : Numberbox update() 
    -controlP5.Controller : Numberbox updateSize() 
    -controlP5.Controller : PImage setImage(PImage) 
    -controlP5.Controller : PImage setImage(PImage, int) 
    -controlP5.Controller : PVector getAbsolutePosition() 
    -controlP5.Controller : PVector getPosition() 
    -controlP5.Controller : String getAddress() 
    -controlP5.Controller : String getInfo() 
    -controlP5.Controller : String getName() 
    -controlP5.Controller : String getStringValue() 
    -controlP5.Controller : String toString() 
    -controlP5.Controller : Tab getTab() 
    -controlP5.Controller : boolean isActive() 
    -controlP5.Controller : boolean isBroadcast() 
    -controlP5.Controller : boolean isInside() 
    -controlP5.Controller : boolean isLabelVisible() 
    -controlP5.Controller : boolean isListening() 
    -controlP5.Controller : boolean isLock() 
    -controlP5.Controller : boolean isMouseOver() 
    -controlP5.Controller : boolean isMousePressed() 
    -controlP5.Controller : boolean isMoveable() 
    -controlP5.Controller : boolean isUpdate() 
    -controlP5.Controller : boolean isVisible() 
    -controlP5.Controller : float getArrayValue(int) 
    -controlP5.Controller : float getDefaultValue() 
    -controlP5.Controller : float getMax() 
    -controlP5.Controller : float getMin() 
    -controlP5.Controller : float getValue() 
    -controlP5.Controller : float[] getArrayValue() 
    -controlP5.Controller : int getDecimalPrecision() 
    -controlP5.Controller : int getHeight() 
    -controlP5.Controller : int getId() 
    -controlP5.Controller : int getWidth() 
    -controlP5.Controller : int listenerSize() 
    -controlP5.Controller : void remove() 
    -controlP5.Controller : void setView(ControllerView, int)   
    -java.lang.Object : String toString() 
    -java.lang.Object : boolean equals(Object) 
    -
    -
    -*/
    -
    -
    -
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Field Detail

      - - - -
        -
      • -

        autoHeight

        -
        public static int autoHeight
        -
      • -
      - - - -
        -
      • -

        autoWidth

        -
        public static int autoWidth
        -
      • -
      - - - -
        -
      • -

        DOWN

        -
        public static int DOWN
        -
      • -
      - - - -
        -
      • -

        LEFT

        -
        public static int LEFT
        -
      • -
      - - - -
        -
      • -

        RIGHT

        -
        public static int RIGHT
        -
      • -
      - - - -
        -
      • -

        UP

        -
        public static int UP
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Numberbox

        -
        public Numberbox(ControlP5 theControlP5,
        -         java.lang.String theName)
        -
        Convenience constructor to extend Numberbox.
        -
        Parameters:
        theControlP5 -
        theName -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      - - - -
        -
      • -

        Numberbox

        -
        public Numberbox(ControlP5 theControlP5,
        -         Tab theParent,
        -         java.lang.String theName,
        -         float theDefaultValue,
        -         int theX,
        -         int theY,
        -         int theWidth,
        -         int theHeight)
        -
        Parameters:
        theControlP5 - ControlP5
        theParent - Tab
        theName - String
        theDefaultValue - float
        theX - int
        theY - int
        theWidth - int
        theHeight - int
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        getMultiplier

        -
        public float getMultiplier()
        -
        Returns:
        float
        -
      • -
      - - - - - - - -
        -
      • -

        mousePressed

        -
        public void mousePressed()
        -
      • -
      - - - -
        -
      • -

        mouseReleased

        -
        public void mouseReleased()
        -
      • -
      - - - -
        -
      • -

        mouseReleasedOutside

        -
        public void mouseReleasedOutside()
        -
      • -
      - - - -
        -
      • -

        scrolled

        -
        public Numberbox scrolled(int theRotationValue)
        -
        changes the value of the numberbox when hovering and using the mouse wheel or the scroll - function of a multi-touch track pad.
        -
        Parameters:
        theRotationValue -
        -
        Returns:
        Numberbox
        -
      • -
      - - - -
        -
      • -

        setDirection

        -
        public Numberbox setDirection(int theValue)
        -
        set the direction for changing the numberbox value when dragging the mouse. by default this - is up/down (VERTICAL), use setDirection(Controller.HORIZONTAL) to change to left/right or - back with setDirection(Controller.VERTICAL).
        -
        Parameters:
        theValue -
        -
      • -
      - - - -
        -
      • -

        setMultiplier

        -
        public Numberbox setMultiplier(float theMultiplier)
        -
        Parameters:
        theMultiplier -
        -
        Returns:
        Numberbox
        -
      • -
      - - - -
        -
      • -

        setRange

        -
        public Numberbox setRange(float theMin,
        -                 float theMax)
        -
      • -
      - - - -
        -
      • -

        setScrollSensitivity

        -
        public Numberbox setScrollSensitivity(float theValue)
        -
        sets the sensitivity for the scroll behavior when using the mouse wheel or the scroll - function of a multi-touch track pad. The smaller the value (closer to 0) the higher the - sensitivity.
        -
        Parameters:
        theValue -
        -
        Returns:
        Numberbox
        -
      • -
      - - - - - - - - - - - -
        -
      • -

        shuffle

        -
        public Numberbox shuffle()
        -
        assigns a random value to the controller.
        -
        Returns:
        Numberbox
        -
      • -
      - - - - - - - -
        -
      • -

        updateDisplayMode

        -
        public Numberbox updateDisplayMode(int theMode)
        -
      • -
      - - - - -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Pointer.html b/reference/controlP5/Pointer.html deleted file mode 100644 index 7855a9f..0000000 --- a/reference/controlP5/Pointer.html +++ /dev/null @@ -1,305 +0,0 @@ - - - - - -Pointer (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Interface Pointer

-
-
-
-
    -
  • -
    -
    -
    public interface Pointer
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      longdt() 
      intdx() 
      intdy() 
      longpt() 
      intpx() 
      intpy() 
      longt() 
      intx() 
      inty() 
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        dt

        -
        long dt()
        -
      • -
      - - - -
        -
      • -

        dx

        -
        int dx()
        -
      • -
      - - - -
        -
      • -

        dy

        -
        int dy()
        -
      • -
      - - - -
        -
      • -

        pt

        -
        long pt()
        -
      • -
      - - - -
        -
      • -

        px

        -
        int px()
        -
      • -
      - - - -
        -
      • -

        py

        -
        int py()
        -
      • -
      - - - -
        -
      • -

        t

        -
        long t()
        -
      • -
      - - - -
        -
      • -

        x

        -
        int x()
        -
      • -
      - - - -
        -
      • -

        y

        -
        int y()
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Println.html b/reference/controlP5/Println.html deleted file mode 100644 index 485fd89..0000000 --- a/reference/controlP5/Println.html +++ /dev/null @@ -1,290 +0,0 @@ - - - - - -Println (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Println

-
-
- -
-
    -
  • -
    -
    -
    public class Println
    -extends java.lang.Object
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - -
      Constructors 
      Constructor and Description
      Println(Textarea theTextarea) 
      -
    • -
    - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      voidclear() 
      voidpause() 
      voidplay() 
      PrintlnsetMax(int theMax) 
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Println

        -
        public Println(Textarea theTextarea)
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        clear

        -
        public void clear()
        -
      • -
      - - - -
        -
      • -

        pause

        -
        public void pause()
        -
      • -
      - - - -
        -
      • -

        play

        -
        public void play()
        -
      • -
      - - - -
        -
      • -

        setMax

        -
        public Println setMax(int theMax)
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Radio.html b/reference/controlP5/Radio.html deleted file mode 100644 index 12b3f06..0000000 --- a/reference/controlP5/Radio.html +++ /dev/null @@ -1,286 +0,0 @@ - - - - - -Radio (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Radio

-
-
- -
- -
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Radio

        -
        public Radio(ControlP5 theControlP5,
        -     ControllerGroup<?> theParent,
        -     java.lang.String theName,
        -     int theX,
        -     int theY)
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/RadioButton.html b/reference/controlP5/RadioButton.html deleted file mode 100644 index 858663a..0000000 --- a/reference/controlP5/RadioButton.html +++ /dev/null @@ -1,1370 +0,0 @@ - - - - - -RadioButton (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class RadioButton

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    ControllerInterface<RadioButton>, ControlListener, ControlP5Constants
    -
    -
    -
    Direct Known Subclasses:
    -
    Radio
    -
    -
    -
    -
    public class RadioButton
    -extends ControlGroup<RadioButton>
    -
    A radioButton is a list of toggles that can be turned on or off. radioButton is of type - ControllerGroup, therefore a controllerPlug can't be set. this means that an event from a - radioButton can't be forwarded to a method other than controlEvent in a sketch. - - a radioButton has 2 sets of values. radioButton.getValue() returns the value of the active - radioButton item. radioButton.getArrayValue() returns a float array that represents the active - (1) and inactive (0) items of a radioButton. - - ControlP5 CheckBox Toggle
    -
    -
    +Example
    /**
    -* ControlP5 RadioButton
    -*
    -*
    -* find a list of public methods available for the RadioButton Controller
    -* at the bottom of this sketch.
    -*
    -* by Andreas Schlegel, 2012
    -* www.sojamo.de/libraries/controlp5
    -*
    -*/
    -
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -int myColorBackground = color(0,0,0);
    -
    -RadioButton r;
    -
    -void setup() {
    -  size(700,400);
    -  
    -  cp5 = new ControlP5(this);
    -  r = cp5.addRadioButton("radioButton")
    -         .setPosition(20,160)
    -         .setSize(40,20)
    -         .setColorForeground(color(120))
    -         .setColorActive(color(255))
    -         .setColorLabel(color(255))
    -         .setItemsPerRow(5)
    -         .setSpacingColumn(50)
    -         .addItem("50",1)
    -         .addItem("100",2)
    -         .addItem("150",3)
    -         .addItem("200",4)
    -         .addItem("250",5)
    -         ;
    -     
    -     for(Toggle t:r.getItems()) {
    -       t.captionLabel().setColorBackground(color(255,80));
    -       t.captionLabel().style().moveMargin(-7,0,0,-3);
    -       t.captionLabel().style().movePadding(7,0,0,3);
    -       t.captionLabel().style().backgroundWidth = 45;
    -       t.captionLabel().style().backgroundHeight = 13;
    -     }
    -}
    -
    -
    -void draw() {
    -  background(myColorBackground);
    -}
    -
    -
    -void keyPressed() {
    -  switch(key) {
    -    case('0'): r.deactivateAll(); break;
    -    case('1'): r.activate(0); break;
    -    case('2'): r.activate(1); break;
    -    case('3'): r.activate(2); break;
    -    case('4'): r.activate(3); break;
    -    case('5'): r.activate(4); break;
    -  }
    -  
    -}
    -
    -void controlEvent(ControlEvent theEvent) {
    -  if(theEvent.isFrom(r)) {
    -    print("got an event from "+theEvent.getName()+"\t");
    -    for(int i=0;i
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        RadioButton

        -
        public RadioButton(ControlP5 theControlP5,
        -           ControllerGroup<?> theParent,
        -           java.lang.String theName,
        -           int theX,
        -           int theY)
        -
        Parameters:
        theControlP5 -
        theParent -
        theName -
        theX -
        theY -
        -
      • -
      - - - -
        -
      • -

        RadioButton

        -
        public RadioButton(ControlP5 theControlP5,
        -           java.lang.String theName)
        -
        Convenience constructor to extend RadioButton.
        -
        Parameters:
        theControlP5 -
        theName -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        activate

        -
        public RadioButton activate(int theIndex)
        -
        Deactivates all active RadioButton items and only activates the item corresponding to - theIndex. - TODO does not trigger function or value when called by code, fix!
        -
        Parameters:
        theIndex -
        -
      • -
      - - - -
        -
      • -

        activate

        -
        public RadioButton activate(java.lang.String theName)
        -
        Actives an item of the Radio button by name.
        -
        Parameters:
        theName -
        -
      • -
      - - - -
        -
      • -

        addItem

        -
        public RadioButton addItem(java.lang.String theName,
        -                  float theValue)
        -
        Parameters:
        theName -
        theValue -
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        addItem

        -
        public RadioButton addItem(Toggle theToggle,
        -                  float theValue)
        -
        Parameters:
        theToggle -
        theValue -
        -
        Returns:
        -
      • -
      - - - - - - - -
        -
      • -

        align

        -
        public RadioButton align(int theX,
        -                int theY)
        -
      • -
      - - - - - - - - - - - - - - - -
        -
      • -

        deactivate

        -
        public RadioButton deactivate(int theIndex)
        -
        Parameters:
        theIndex -
        -
      • -
      - - - -
        -
      • -

        deactivate

        -
        public RadioButton deactivate(java.lang.String theName)
        -
        Deactivates a RadioButton by name and sets the value of the RadioButton to the default value - -1.
        -
        Parameters:
        theName -
        -
      • -
      - - - -
        -
      • -

        deactivateAll

        -
        public RadioButton deactivateAll()
        -
      • -
      - - - -
        -
      • -

        getAlign

        -
        public int[] getAlign()
        -
      • -
      - - - - - - - -
        -
      • -

        getItem

        -
        public Toggle getItem(int theIndex)
        -
        Gets a radio button item by index.
        -
        Parameters:
        theIndex -
        -
        Returns:
        Toggle
        -
      • -
      - - - -
        -
      • -

        getItem

        -
        public Toggle getItem(java.lang.String theName)
        -
      • -
      - - - -
        -
      • -

        getItems

        -
        public java.util.List<Toggle> getItems()
        -
      • -
      - - - -
        -
      • -

        getState

        -
        public boolean getState(int theIndex)
        -
        Gets the state of an item - this can be true (for on) or false (for off) - by index.
        -
        Parameters:
        theIndex -
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        getState

        -
        public boolean getState(java.lang.String theName)
        -
        Gets the state of an item - this can be true (for on) or false (for off) - by name.
        -
        Parameters:
        theName -
        -
        Returns:
        -
      • -
      - - - - - - - -
        -
      • -

        plugTo

        -
        public RadioButton plugTo(java.lang.Object theObject)
        -
      • -
      - - - -
        -
      • -

        plugTo

        -
        public RadioButton plugTo(java.lang.Object theObject,
        -                 java.lang.String thePlugName)
        -
      • -
      - - - -
        -
      • -

        removeItem

        -
        public RadioButton removeItem(java.lang.String theName)
        -
        Parameters:
        theName -
        -
      • -
      - - - - - - - -
        -
      • -

        setColorLabels

        -
        public RadioButton setColorLabels(int theColor)
        -
      • -
      - - - -
        -
      • -

        setImage

        -
        public RadioButton setImage(processing.core.PImage theImage)
        -
        Parameters:
        theImage -
        -
      • -
      - - - -
        -
      • -

        setImage

        -
        public RadioButton setImage(processing.core.PImage theImage,
        -                   int theState)
        -
        Parameters:
        theImage -
        theState - use Controller.DEFAULT (background), or Controller.OVER (foreground), or - Controller.ACTIVE (active)
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        setImages

        -
        public RadioButton setImages(processing.core.PImage theDefaultImage,
        -                    processing.core.PImage theOverImage,
        -                    processing.core.PImage theActiveImage)
        -
        Parameters:
        theDefaultImage -
        theOverImage -
        theActiveImage -
        -
        Returns:
        RadioButton
        -
      • -
      - - - -
        -
      • -

        setItemHeight

        -
        public RadioButton setItemHeight(int theItemHeight)
        -
        set the height of a radioButton/checkBox item. by default the height is 11px. in order to - recognize a custom height, the itemHeight has to be set before adding items to a - radioButton/checkBox.
        -
        Parameters:
        theItemHeight -
        -
      • -
      - - - -
        -
      • -

        setItemsPerRow

        -
        public RadioButton setItemsPerRow(int theValue)
        -
        Items of a radioButton or a checkBox are organized in columns and rows. SetItemsPerRow sets - the limit of items per row. items exceeding the limit will be pushed to the next row.
        -
        Parameters:
        theValue -
        -
      • -
      - - - -
        -
      • -

        setItemWidth

        -
        public RadioButton setItemWidth(int theItemWidth)
        -
        set the width of a radioButton/checkBox item. by default the width is 11px. in order to - recognize a custom width, the itemWidth has to be set before adding items to a - radioButton/checkBox.
        -
        Parameters:
        theItemWidth -
        -
      • -
      - - - -
        -
      • -

        setLabelPadding

        -
        public RadioButton setLabelPadding(int thePaddingX,
        -                          int thePaddingY)
        -
      • -
      - - - -
        -
      • -

        setNoneSelectedAllowed

        -
        public RadioButton setNoneSelectedAllowed(boolean theValue)
        -
        In order to always have 1 item selected, use setNoneSelectedAllowed(false), by default this - is true. setNoneSelectedAllowed does not apply when in multipleChoice mode.
        -
        Parameters:
        theValue -
        -
      • -
      - - - - - - - -
        -
      • -

        setSize

        -
        public RadioButton setSize(processing.core.PImage theImage)
        -
      • -
      - - - -
        -
      • -

        setSpacingColumn

        -
        public RadioButton setSpacingColumn(int theSpacing)
        -
        Sets the spacing in pixels between columns.
        -
        Parameters:
        theSpacing -
        -
      • -
      - - - -
        -
      • -

        setSpacingRow

        -
        public RadioButton setSpacingRow(int theSpacing)
        -
        Sets the spacing in pixels between rows.
        -
        Parameters:
        theSpacing -
        -
      • -
      - - - - - - - -
        -
      • -

        toggle

        -
        public RadioButton toggle(int theIndex)
        -
        Parameters:
        theIndex -
        -
      • -
      - - - -
        -
      • -

        toUpperCase

        -
        public RadioButton toUpperCase(boolean theValue)
        -
      • -
      - - - -
        -
      • -

        updateLayout

        -
        public void updateLayout()
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Range.html b/reference/controlP5/Range.html deleted file mode 100644 index 32572af..0000000 --- a/reference/controlP5/Range.html +++ /dev/null @@ -1,1370 +0,0 @@ - - - - - -Range (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Range

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    CDrawable, ControllerInterface<Range>, ControlP5Constants
    -
    -
    -
    -
    public class Range
    -extends Controller<Range>
    -
    A range slider works just like a slider but can be adjusted on both ends.
    -
    See Also:
    Slider
    -
    +Example
    /**
    -* ControlP5 Range
    -*
    -* find a list of public methods available for the Range Controller
    -* at the bottom of this sketch.
    -*
    -* by Andreas Schlegel, 2012
    -* www.sojamo.de/libraries/controlp5
    -*
    -*/
    -
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -int myColorBackground = color(0,0,0);
    -
    -int colorMin = 100;
    -
    -int colorMax = 100;
    -
    -Range range;
    -
    -void setup() {
    -  size(700,400);
    -  cp5 = new ControlP5(this);
    -  range = cp5.addRange("rangeController")
    -             // disable broadcasting since setRange and setRangeValues will trigger an event
    -             .setBroadcast(false) 
    -             .setPosition(50,50)
    -             .setSize(400,40)
    -             .setHandleSize(20)
    -             .setRange(0,255)
    -             .setRangeValues(50,100)
    -             // after the initialization we turn broadcast back on again
    -             .setBroadcast(true)
    -             .setColorForeground(color(255,40))
    -             .setColorBackground(color(255,40))  
    -             ;
    -             
    -  noStroke();             
    -}
    -
    -void draw() {
    -  background(colorMax);
    -  fill(colorMin);
    -  rect(0,0,width,height/2);
    -}
    -
    -void controlEvent(ControlEvent theControlEvent) {
    -  if(theControlEvent.isFrom("rangeController")) {
    -    // min and max values are stored in an array.
    -    // access this array with controller().arrayValue().
    -    // min is at index 0, max is at index 1.
    -    colorMin = int(theControlEvent.getController().getArrayValue(0));
    -    colorMax = int(theControlEvent.getController().getArrayValue(1));
    -    println("range update, done.");
    -  }
    -  
    -}
    -
    -
    -void keyPressed() {
    -  switch(key) {
    -    case('1'):range.setLowValue(0);break;
    -    case('2'):range.setLowValue(100);break;
    -    case('3'):range.setHighValue(120);break;
    -    case('4'):range.setHighValue(200);break;
    -    case('5'):range.setRangeValues(40,60);break;
    -  }
    -}
    -
    -
    -/*
    -a list of all methods available for the Range Controller
    -use ControlP5.printPublicMethodsFor(Range.class);
    -to print the following list into the console.
    -
    -You can find further details about class Range in the javadoc.
    -
    -Format:
    -ClassName : returnType methodName(parameter type)
    -
    -
    -controlP5.Range : Range setArrayValue(float[]) 
    -controlP5.Range : Range setColorCaptionLabel(int) 
    -controlP5.Range : Range setColorTickMark(int) 
    -controlP5.Range : Range setColorValueLabel(int) 
    -controlP5.Range : Range setHandleSize(int) 
    -controlP5.Range : Range setHeight(int) 
    -controlP5.Range : Range setHighValue(float) 
    -controlP5.Range : Range setHighValueLabel(String) 
    -controlP5.Range : Range setLowValue(float) 
    -controlP5.Range : Range setLowValueLabel(String) 
    -controlP5.Range : Range setMax(float) 
    -controlP5.Range : Range setMin(float) 
    -controlP5.Range : Range setNumberOfTickMarks(int) 
    -controlP5.Range : Range setRange(float, float) 
    -controlP5.Range : Range setRangeValues(float, float) 
    -controlP5.Range : Range setWidth(int) 
    -controlP5.Range : Range showTickMarks(boolean) 
    -controlP5.Range : Range snapToTickMarks(boolean)
    -controlP5.Range : ArrayList getTickMarks() 
    -controlP5.Range : float getHighValue() 
    -controlP5.Range : float getLowValue() 
    -controlP5.Range : float[] getArrayValue()
    -controlP5.Controller : CColor getColor() 
    -controlP5.Controller : ControlBehavior getBehavior() 
    -controlP5.Controller : ControlWindow getControlWindow() 
    -controlP5.Controller : ControlWindow getWindow() 
    -controlP5.Controller : ControllerProperty getProperty(String) 
    -controlP5.Controller : ControllerProperty getProperty(String, String) 
    -controlP5.Controller : Label getCaptionLabel() 
    -controlP5.Controller : Label getValueLabel() 
    -controlP5.Controller : List getControllerPlugList() 
    -controlP5.Controller : PImage setImage(PImage) 
    -controlP5.Controller : PImage setImage(PImage, int) 
    -controlP5.Controller : PVector getAbsolutePosition() 
    -controlP5.Controller : PVector getPosition() 
    -controlP5.Controller : Range addCallback(CallbackListener) 
    -controlP5.Controller : Range addListener(ControlListener) 
    -controlP5.Controller : Range bringToFront() 
    -controlP5.Controller : Range bringToFront(ControllerInterface) 
    -controlP5.Controller : Range hide() 
    -controlP5.Controller : Range linebreak() 
    -controlP5.Controller : Range listen(boolean) 
    -controlP5.Controller : Range lock() 
    -controlP5.Controller : Range plugTo(Object) 
    -controlP5.Controller : Range plugTo(Object, String) 
    -controlP5.Controller : Range plugTo(Object[]) 
    -controlP5.Controller : Range plugTo(Object[], String) 
    -controlP5.Controller : Range registerProperty(String) 
    -controlP5.Controller : Range registerProperty(String, String) 
    -controlP5.Controller : Range registerTooltip(String) 
    -controlP5.Controller : Range removeBehavior() 
    -controlP5.Controller : Range removeCallback() 
    -controlP5.Controller : Range removeCallback(CallbackListener) 
    -controlP5.Controller : Range removeListener(ControlListener) 
    -controlP5.Controller : Range removeProperty(String) 
    -controlP5.Controller : Range removeProperty(String, String) 
    -controlP5.Controller : Range setArrayValue(float[]) 
    -controlP5.Controller : Range setArrayValue(int, float) 
    -controlP5.Controller : Range setBehavior(ControlBehavior) 
    -controlP5.Controller : Range setBroadcast(boolean) 
    -controlP5.Controller : Range setCaptionLabel(String) 
    -controlP5.Controller : Range setColor(CColor) 
    -controlP5.Controller : Range setColorActive(int) 
    -controlP5.Controller : Range setColorBackground(int) 
    -controlP5.Controller : Range setColorCaptionLabel(int) 
    -controlP5.Controller : Range setColorForeground(int) 
    -controlP5.Controller : Range setColorValueLabel(int) 
    -controlP5.Controller : Range setDecimalPrecision(int) 
    -controlP5.Controller : Range setDefaultValue(float) 
    -controlP5.Controller : Range setHeight(int) 
    -controlP5.Controller : Range setId(int) 
    -controlP5.Controller : Range setImages(PImage, PImage, PImage) 
    -controlP5.Controller : Range setImages(PImage, PImage, PImage, PImage) 
    -controlP5.Controller : Range setLabelVisible(boolean) 
    -controlP5.Controller : Range setLock(boolean) 
    -controlP5.Controller : Range setMax(float) 
    -controlP5.Controller : Range setMin(float) 
    -controlP5.Controller : Range setMouseOver(boolean) 
    -controlP5.Controller : Range setMoveable(boolean) 
    -controlP5.Controller : Range setPosition(PVector) 
    -controlP5.Controller : Range setPosition(float, float) 
    -controlP5.Controller : Range setSize(PImage) 
    -controlP5.Controller : Range setSize(int, int) 
    -controlP5.Controller : Range setStringValue(String) 
    -controlP5.Controller : Range setUpdate(boolean) 
    -controlP5.Controller : Range setValueLabel(String) 
    -controlP5.Controller : Range setView(ControllerView) 
    -controlP5.Controller : Range setVisible(boolean) 
    -controlP5.Controller : Range setWidth(int) 
    -controlP5.Controller : Range show() 
    -controlP5.Controller : Range unlock() 
    -controlP5.Controller : Range unplugFrom(Object) 
    -controlP5.Controller : Range unplugFrom(Object[]) 
    -controlP5.Controller : Range unregisterTooltip() 
    -controlP5.Controller : Range update() 
    -controlP5.Controller : Range updateSize() 
    -controlP5.Controller : String getAddress() 
    -controlP5.Controller : String getInfo() 
    -controlP5.Controller : String getName() 
    -controlP5.Controller : String getStringValue() 
    -controlP5.Controller : String toString() 
    -controlP5.Controller : Tab getTab() 
    -controlP5.Controller : boolean isActive() 
    -controlP5.Controller : boolean isBroadcast() 
    -controlP5.Controller : boolean isInside() 
    -controlP5.Controller : boolean isLabelVisible() 
    -controlP5.Controller : boolean isListening() 
    -controlP5.Controller : boolean isLock() 
    -controlP5.Controller : boolean isMouseOver() 
    -controlP5.Controller : boolean isMousePressed() 
    -controlP5.Controller : boolean isMoveable() 
    -controlP5.Controller : boolean isUpdate() 
    -controlP5.Controller : boolean isVisible() 
    -controlP5.Controller : float getArrayValue(int) 
    -controlP5.Controller : float getDefaultValue() 
    -controlP5.Controller : float getMax() 
    -controlP5.Controller : float getMin() 
    -controlP5.Controller : float getValue() 
    -controlP5.Controller : float[] getArrayValue() 
    -controlP5.Controller : int getDecimalPrecision() 
    -controlP5.Controller : int getHeight() 
    -controlP5.Controller : int getId() 
    -controlP5.Controller : int getWidth() 
    -controlP5.Controller : int listenerSize() 
    -controlP5.Controller : void remove() 
    -controlP5.Controller : void setView(ControllerView, int) 
    -java.lang.Object : String toString() 
    -java.lang.Object : boolean equals(Object) 
    -
    -
    -*/
    -
    -
    -
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Field Detail

      - - - -
        -
      • -

        alignValueLabel

        -
        public int alignValueLabel
        -
      • -
      - - - -
        -
      • -

        autoHeight

        -
        public static int autoHeight
        -
      • -
      - - - -
        -
      • -

        autoSpacing

        -
        public static processing.core.PVector autoSpacing
        -
      • -
      - - - -
        -
      • -

        autoWidth

        -
        public static int autoWidth
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Range

        -
        public Range(ControlP5 theControlP5,
        -     ControllerGroup<?> theParent,
        -     java.lang.String theName,
        -     float theMin,
        -     float theMax,
        -     float theDefaultMinValue,
        -     float theDefaultMaxValue,
        -     int theX,
        -     int theY,
        -     int theWidth,
        -     int theHeight)
        -
        Parameters:
        theControlP5 - ControlP5
        theParent - ControllerGroup
        theName - String
        theMin - float
        theMax - float
        theDefaultValue - float
        theX - int
        theY - int
        theWidth - int
        theHeight - int
        -
      • -
      - - - -
        -
      • -

        Range

        -
        public Range(ControlP5 theControlP5,
        -     java.lang.String theName)
        -
        Convenience constructor to extend Range.
        -
        Parameters:
        theControlP5 -
        theName -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        arrayValue

        -
        @Deprecated
        -public float[] arrayValue()
        -
        Deprecated. 
        -
        -
        Overrides:
        -
        arrayValue in class Controller<Range>
        -
        -
      • -
      - - - - - - - -
        -
      • -

        getHighValue

        -
        public float getHighValue()
        -
      • -
      - - - -
        -
      • -

        getLowValue

        -
        public float getLowValue()
        -
      • -
      - - - -
        -
      • -

        getTickMark

        -
        public TickMark getTickMark()
        -
      • -
      - - - -
        -
      • -

        getTickMarks

        -
        public java.util.ArrayList<TickMark> getTickMarks()
        -
      • -
      - - - -
        -
      • -

        highValue

        -
        @Deprecated
        -public float highValue()
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        lowValue

        -
        @Deprecated
        -public float lowValue()
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        mousePressed

        -
        public void mousePressed()
        -
      • -
      - - - -
        -
      • -

        mouseReleased

        -
        public void mouseReleased()
        -
      • -
      - - - -
        -
      • -

        mouseReleasedOutside

        -
        public void mouseReleasedOutside()
        -
      • -
      - - - -
        -
      • -

        onLeave

        -
        public void onLeave()
        -
      • -
      - - - - - - - - - - - -
        -
      • -

        setColorTickMark

        -
        public Range setColorTickMark(int theColor)
        -
      • -
      - - - - - - - -
        -
      • -

        setDraggable

        -
        public Range setDraggable(boolean theFlag)
        -
      • -
      - - - -
        -
      • -

        setHandleSize

        -
        public Range setHandleSize(int theSize)
        -
      • -
      - - - - - - - -
        -
      • -

        setHighValue

        -
        public Range setHighValue(float theValue)
        -
      • -
      - - - -
        -
      • -

        setHighValueLabel

        -
        public Range setHighValueLabel(java.lang.String theLabel)
        -
      • -
      - - - -
        -
      • -

        setLowValue

        -
        public Range setLowValue(float theValue)
        -
      • -
      - - - -
        -
      • -

        setLowValueLabel

        -
        public Range setLowValueLabel(java.lang.String theLabel)
        -
      • -
      - - - -
        -
      • -

        setMax

        -
        public Range setMax(float theValue)
        -
        Description copied from class: Controller
        -
        sets the maximum value of the Controller.
        -
        -
        Overrides:
        -
        setMax in class Controller<Range>
        -
        Parameters:
        theValue - float
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setMin

        -
        public Range setMin(float theValue)
        -
        Description copied from class: Controller
        -
        sets the minimum value of the Controller.
        -
        -
        Overrides:
        -
        setMin in class Controller<Range>
        -
        Parameters:
        theValue - float
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setNumberOfTickMarks

        -
        public Range setNumberOfTickMarks(int theNumber)
        -
      • -
      - - - -
        -
      • -

        setRange

        -
        public Range setRange(float theMinValue,
        -             float theMaxValue)
        -
      • -
      - - - -
        -
      • -

        setRangeValues

        -
        public Range setRangeValues(float theLowValue,
        -                   float theHighValue)
        -
      • -
      - - - -
        -
      • -

        setSliderMode

        -
        public Range setSliderMode(int theMode)
        -
      • -
      - - - - - - - - - - - -
        -
      • -

        showTickMarks

        -
        public Range showTickMarks(boolean theFlag)
        -
      • -
      - - - -
        -
      • -

        snapToTickMarks

        -
        public Range snapToTickMarks(boolean theFlag)
        -
      • -
      - - - - - - - - - - - -
        -
      • -

        updateDisplayMode

        -
        public Range updateDisplayMode(int theMode)
        -
      • -
      - - - -
        -
      • -

        updateInternalEvents

        -
        public Range updateInternalEvents(processing.core.PApplet theApplet)
        -
        Description copied from interface: ControllerInterface
        -
        a method for putting input events like e.g. mouse or keyboard events and queries. this has - been taken out of the draw method for better overwriting capability.
        -
        -
        Specified by:
        -
        updateInternalEvents in interface ControllerInterface<Range>
        -
        Overrides:
        -
        updateInternalEvents in class Controller<Range>
        -
        See Also:
        ControllerInterface.updateInternalEvents
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ScrollableList.ScrollableListView.html b/reference/controlP5/ScrollableList.ScrollableListView.html deleted file mode 100644 index 954deb1..0000000 --- a/reference/controlP5/ScrollableList.ScrollableListView.html +++ /dev/null @@ -1,272 +0,0 @@ - - - - - -ScrollableList.ScrollableListView (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ScrollableList.ScrollableListView

-
-
- -
- -
-
-
    -
  • - - - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      voiddisplay(processing.core.PGraphics g, - ScrollableList c) -
      draws your custom controllers.
      -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ScrollableList.ScrollableListView

        -
        public ScrollableList.ScrollableListView()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        display

        -
        public void display(processing.core.PGraphics g,
        -           ScrollableList c)
        -
        Description copied from interface: ControllerView
        -
        draws your custom controllers. display() will be called by a controller's draw() function and - will pass a reference of PApplet as well as the Controller itself to your custom display - class.
        -
        -
        Specified by:
        -
        display in interface ControllerView<ScrollableList>
        -
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/ScrollableList.html b/reference/controlP5/ScrollableList.html deleted file mode 100644 index 1e1bdd8..0000000 --- a/reference/controlP5/ScrollableList.html +++ /dev/null @@ -1,842 +0,0 @@ - - - - - -ScrollableList (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class ScrollableList

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    CDrawable, ControllerInterface<ScrollableList>, ControlListener, ControlP5Constants
    -
    -
    -
    -
    public class ScrollableList
    -extends Controller<ScrollableList>
    -implements ControlListener
    -
    A ScrollableList is a list of vertically aligned items - which can be scrolled if required.
    -
    -
    +Example
    /**
    - * ControlP5 ScrollableList
    - *
    - * replaces DropdownList and and ListBox. 
    - * List can be scrolled by dragging the list or using the scroll-wheel. 
    - *
    - * by Andreas Schlegel, 2014
    - * www.sojamo.de/libraries/controlp5
    - *
    - */
    -
    -
    -import controlP5.*;
    -import java.util.*;
    -
    -
    -ControlP5 cp5;
    -
    -void setup() {
    -  size(400, 400);
    -  cp5 = new ControlP5(this);
    -  List l = Arrays.asList("a", "b", "c", "d", "e", "f", "g", "h");
    -  /* add a ScrollableList, by default it behaves like a DropdownList */
    -  cp5.addScrollableList("dropdown").setPosition(100, 100).setSize(200, 100).setItemHeight(20).addItems(l);
    -}
    -
    -void draw() {
    -  background(240);
    -}
    -
    -void dropdown(int n) {
    -  println(n, cp5.get(ScrollableList.class, "dropdown").getItem(n).get("text"));
    -  List l = Arrays.asList("a-1", "b-1", "c-1", "d-1", "e-1", "f-1", "g-1", "h-1", "i-1", "j-1", "k-1");
    -  cp5.get(ScrollableList.class, "dropdown").setItems(l);
    -}
    -
    -void keyPressed() {
    -  switch(key) {
    -    case('1'):
    -    /* make the ScrollableList behave like a ListBox */
    -    cp5.get(ScrollableList.class, "dropdown").setType(ControlP5.LIST);
    -    break;
    -    case('2'):
    -    /* make the ScrollableList behave like a DropdownList */
    -    cp5.get(ScrollableList.class, "dropdown").setType(ControlP5.DROPDOWN);
    -    break;
    -  }
    -}
    -
    -
    -
  • -
-
-
- -
-
-
    -
  • - - - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ScrollableList

        -
        public ScrollableList(ControlP5 theControlP5,
        -              java.lang.String theName)
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        addItem

        -
        public java.util.Map<java.lang.String,java.lang.Object> addItem(java.lang.String theName,
        -                                                       java.lang.Object theValue)
        -
        Adds an item to the ScrollableList.
        -
        Parameters:
        theName - String
        theValue - int
        See Also:
        controlP5.ListBox#removeItem(String,int)
        -
      • -
      - - - -
        -
      • -

        addItems

        -
        public ScrollableList addItems(java.util.List<?> theItems)
        -
      • -
      - - - -
        -
      • -

        addItems

        -
        public ScrollableList addItems(java.util.List<?> theItems,
        -                      int theOffset)
        -
      • -
      - - - -
        -
      • -

        addItems

        -
        public ScrollableList addItems(java.lang.String[] theItems)
        -
        adds a list of items from a string array. when - iterating through the array, the index of each item - will be used as value.
        -
        Parameters:
        theItems -
        -
      • -
      - - - - - - - -
        -
      • -

        controlEvent

        -
        public void controlEvent(ControlEvent theEvent)
        -
        Description copied from interface: ControlListener
        -
        controlEvent is called by controlP5's ControlBroadcaster to inform available listeners about - value changes. Use the CallbackListener to get informed when actions such as pressed, - release, drag, etc are performed.
        -
        -
        Specified by:
        -
        controlEvent in interface ControlListener
        -
        Parameters:
        theEvent - ControlEvent
        See Also:
        CallbackListener, -CallbackEvent
        -
      • -
      - - - -
        -
      • -

        getBackgroundColor

        -
        public int getBackgroundColor()
        -
      • -
      - - - - - - - -
        -
      • -

        getItem

        -
        public java.util.Map<java.lang.String,java.lang.Object> getItem(int theIndex)
        -
        returns a listBoxItem by index form the list of - items.
        -
        Parameters:
        theIndex -
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        getItem

        -
        public java.util.Map<java.lang.String,java.lang.Object> getItem(java.lang.String theItemName)
        -
        TODO faulty returns a listBoxItem by name.
        -
        Parameters:
        theItemName -
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        getItems

        -
        public java.util.List getItems()
        -
      • -
      - - - -
        -
      • -

        isBarVisible

        -
        public boolean isBarVisible()
        -
      • -
      - - - -
        -
      • -

        isOpen

        -
        public boolean isOpen()
        -
      • -
      - - - - - - - -
        -
      • -

        removeItem

        -
        public ScrollableList removeItem(java.lang.String theItemName)
        -
        Removes an item from the ScrollableList using the - unique name of the item given when added to the list.
        -
        Parameters:
        theItemName - String
        See Also:
        ListBox.addItem(String,int)
        -
      • -
      - - - -
        -
      • -

        setBackgroundColor

        -
        public ScrollableList setBackgroundColor(int theColor)
        -
      • -
      - - - -
        -
      • -

        setBarHeight

        -
        public ScrollableList setBarHeight(int theHeight)
        -
      • -
      - - - -
        -
      • -

        setBarVisible

        -
        public ScrollableList setBarVisible(boolean b)
        -
      • -
      - - - -
        -
      • -

        setDirection

        -
        public void setDirection(int theDirection)
        -
      • -
      - - - -
        -
      • -

        setItemHeight

        -
        public ScrollableList setItemHeight(int theHeight)
        -
      • -
      - - - -
        -
      • -

        setItems

        -
        public ScrollableList setItems(java.util.List<?> theItems)
        -
      • -
      - - - -
        -
      • -

        setItems

        -
        public ScrollableList setItems(java.util.List<?> theItems,
        -                      int theOffset)
        -
      • -
      - - - -
        -
      • -

        setItems

        -
        public ScrollableList setItems(java.lang.String[] theItems)
        -
      • -
      - - - - - - - -
        -
      • -

        setScrollSensitivity

        -
        public ScrollableList setScrollSensitivity(float theSensitivity)
        -
      • -
      - - - - - - - -
        -
      • -

        updateDisplayMode

        -
        public ScrollableList updateDisplayMode(int theMode)
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Slider.html b/reference/controlP5/Slider.html deleted file mode 100644 index 7ac7826..0000000 --- a/reference/controlP5/Slider.html +++ /dev/null @@ -1,1453 +0,0 @@ - - - - - -Slider (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Slider

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    CDrawable, ControllerInterface<Slider>, ControlP5Constants
    -
    -
    -
    -
    public class Slider
    -extends Controller<Slider>
    -
    A slider is either used horizontally or vertically. when adding a slider to controlP5, the width - is compared against the height. if the width is bigger, you get a horizontal slider, is the - height bigger, you get a vertical slider. a slider can have a fixed slider handle (one end of the - slider is fixed to the left or bottom side of the controller), or a flexible slider handle (a - handle you can drag).
    -
    -
    +Example
    /**
    - * ControlP5 Slider. Horizontal and vertical sliders, 
    - * with and without tick marks and snap-to-tick behavior.
    - * by andreas schlegel, 2010
    - */
    -
    -/**
    -* ControlP5 Slider
    -*
    -* Horizontal and vertical sliders, 
    -* With and without tick marks and snap-to-tick behavior.
    -*
    -* find a list of public methods available for the Slider Controller
    -* at the bottom of this sketch.
    -*
    -* by Andreas Schlegel, 2012
    -* www.sojamo.de/libraries/controlp5
    -*
    -*/
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -int myColor = color(0,0,0);
    -
    -int sliderValue = 100;
    -int sliderTicks1 = 100;
    -int sliderTicks2 = 30;
    -Slider abc;
    -
    -void setup() {
    -  size(700,400);
    -  noStroke();
    -  cp5 = new ControlP5(this);
    -  
    -  // add a horizontal sliders, the value of this slider will be linked
    -  // to variable 'sliderValue' 
    -  cp5.addSlider("sliderValue")
    -     .setPosition(100,50)
    -     .setRange(0,255)
    -     ;
    -  
    -  // create another slider with tick marks, now without
    -  // default value, the initial value will be set according to
    -  // the value of variable sliderTicks2 then.
    -  cp5.addSlider("sliderTicks1")
    -     .setPosition(100,140)
    -     .setSize(20,100)
    -     .setRange(0,255)
    -     .setNumberOfTickMarks(5)
    -     ;
    -     
    -     
    -  // add a vertical slider
    -  cp5.addSlider("slider")
    -     .setPosition(100,305)
    -     .setSize(200,20)
    -     .setRange(0,200)
    -     .setValue(128)
    -     ;
    -  
    -  // reposition the Label for controller 'slider'
    -  cp5.getController("slider").getValueLabel().align(ControlP5.LEFT, ControlP5.BOTTOM_OUTSIDE).setPaddingX(0);
    -  cp5.getController("slider").getCaptionLabel().align(ControlP5.RIGHT, ControlP5.BOTTOM_OUTSIDE).setPaddingX(0);
    -  
    -
    -  cp5.addSlider("sliderTicks2")
    -     .setPosition(100,370)
    -     .setWidth(400)
    -     .setRange(255,0) // values can range from big to small as well
    -     .setValue(128)
    -     .setNumberOfTickMarks(7)
    -     .setSliderMode(Slider.FLEXIBLE)
    -     ;
    -  // use Slider.FIX or Slider.FLEXIBLE to change the slider handle
    -  // by default it is Slider.FIX
    -  
    -
    -}
    -
    -void draw() {
    -  background(sliderTicks1);
    -
    -  fill(sliderValue);
    -  rect(0,0,width,100);
    -  
    -  fill(myColor);
    -  rect(0,280,width,70);
    -  
    -  fill(sliderTicks2);
    -  rect(0,350,width,50);
    -}
    -
    -void slider(float theColor) {
    -  myColor = color(theColor);
    -  println("a slider event. setting background to "+theColor);
    -}
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -/**
    -* ControlP5 Slider
    -*
    -*
    -* find a list of public methods available for the Slider Controller
    -* at the bottom of this sketch.
    -*
    -* by Andreas Schlegel, 2012
    -* www.sojamo.de/libraries/controlp5
    -*
    -*/
    -
    -/*
    -a list of all methods available for the Slider Controller
    -use ControlP5.printPublicMethodsFor(Slider.class);
    -to print the following list into the console.
    -
    -You can find further details about class Slider in the javadoc.
    -
    -Format:
    -ClassName : returnType methodName(parameter type)
    -
    -controlP5.Slider : ArrayList getTickMarks() 
    -controlP5.Slider : Slider setColorTickMark(int) 
    -controlP5.Slider : Slider setHandleSize(int) 
    -controlP5.Slider : Slider setHeight(int) 
    -controlP5.Slider : Slider setMax(float) 
    -controlP5.Slider : Slider setMin(float) 
    -controlP5.Slider : Slider setNumberOfTickMarks(int) 
    -controlP5.Slider : Slider setRange(float, float) 
    -controlP5.Slider : Slider setScrollSensitivity(float) 
    -controlP5.Slider : Slider setSize(int, int) 
    -controlP5.Slider : Slider setSliderMode(int) 
    -controlP5.Slider : Slider setTriggerEvent(int) 
    -controlP5.Slider : Slider setValue(float) 
    -controlP5.Slider : Slider setWidth(int) 
    -controlP5.Slider : Slider showTickMarks(boolean) 
    -controlP5.Slider : Slider shuffle() 
    -controlP5.Slider : Slider snapToTickMarks(boolean) 
    -controlP5.Slider : Slider update() 
    -controlP5.Slider : TickMark getTickMark(int) 
    -controlP5.Slider : float getValue() 
    -controlP5.Slider : float getValuePosition() 
    -controlP5.Slider : int getDirection() 
    -controlP5.Slider : int getHandleSize() 
    -controlP5.Slider : int getNumberOfTickMarks() 
    -controlP5.Slider : int getSliderMode() 
    -controlP5.Slider : int getTriggerEvent() 
    -controlP5.Controller : CColor getColor() 
    -controlP5.Controller : ControlBehavior getBehavior() 
    -controlP5.Controller : ControlWindow getControlWindow() 
    -controlP5.Controller : ControlWindow getWindow() 
    -controlP5.Controller : ControllerProperty getProperty(String) 
    -controlP5.Controller : ControllerProperty getProperty(String, String) 
    -controlP5.Controller : Label getCaptionLabel() 
    -controlP5.Controller : Label getValueLabel() 
    -controlP5.Controller : List getControllerPlugList() 
    -controlP5.Controller : PImage setImage(PImage) 
    -controlP5.Controller : PImage setImage(PImage, int) 
    -controlP5.Controller : PVector getAbsolutePosition() 
    -controlP5.Controller : PVector getPosition() 
    -controlP5.Controller : Slider addCallback(CallbackListener) 
    -controlP5.Controller : Slider addListener(ControlListener) 
    -controlP5.Controller : Slider bringToFront() 
    -controlP5.Controller : Slider bringToFront(ControllerInterface) 
    -controlP5.Controller : Slider hide() 
    -controlP5.Controller : Slider linebreak() 
    -controlP5.Controller : Slider listen(boolean) 
    -controlP5.Controller : Slider lock() 
    -controlP5.Controller : Slider plugTo(Object) 
    -controlP5.Controller : Slider plugTo(Object, String) 
    -controlP5.Controller : Slider plugTo(Object[]) 
    -controlP5.Controller : Slider plugTo(Object[], String) 
    -controlP5.Controller : Slider registerProperty(String) 
    -controlP5.Controller : Slider registerProperty(String, String) 
    -controlP5.Controller : Slider registerTooltip(String) 
    -controlP5.Controller : Slider removeBehavior() 
    -controlP5.Controller : Slider removeCallback() 
    -controlP5.Controller : Slider removeCallback(CallbackListener) 
    -controlP5.Controller : Slider removeListener(ControlListener) 
    -controlP5.Controller : Slider removeProperty(String) 
    -controlP5.Controller : Slider removeProperty(String, String) 
    -controlP5.Controller : Slider setArrayValue(float[]) 
    -controlP5.Controller : Slider setArrayValue(int, float) 
    -controlP5.Controller : Slider setBehavior(ControlBehavior) 
    -controlP5.Controller : Slider setBroadcast(boolean) 
    -controlP5.Controller : Slider setCaptionLabel(String) 
    -controlP5.Controller : Slider setColor(CColor) 
    -controlP5.Controller : Slider setColorActive(int) 
    -controlP5.Controller : Slider setColorBackground(int) 
    -controlP5.Controller : Slider setColorCaptionLabel(int) 
    -controlP5.Controller : Slider setColorForeground(int) 
    -controlP5.Controller : Slider setColorValueLabel(int) 
    -controlP5.Controller : Slider setDecimalPrecision(int) 
    -controlP5.Controller : Slider setDefaultValue(float) 
    -controlP5.Controller : Slider setHeight(int) 
    -controlP5.Controller : Slider setId(int) 
    -controlP5.Controller : Slider setImages(PImage, PImage, PImage) 
    -controlP5.Controller : Slider setImages(PImage, PImage, PImage, PImage) 
    -controlP5.Controller : Slider setLabelVisible(boolean) 
    -controlP5.Controller : Slider setLock(boolean) 
    -controlP5.Controller : Slider setMax(float) 
    -controlP5.Controller : Slider setMin(float) 
    -controlP5.Controller : Slider setMouseOver(boolean) 
    -controlP5.Controller : Slider setMoveable(boolean) 
    -controlP5.Controller : Slider setPosition(PVector) 
    -controlP5.Controller : Slider setPosition(float, float) 
    -controlP5.Controller : Slider setSize(PImage) 
    -controlP5.Controller : Slider setSize(int, int) 
    -controlP5.Controller : Slider setStringValue(String) 
    -controlP5.Controller : Slider setUpdate(boolean) 
    -controlP5.Controller : Slider setValueLabel(String) 
    -controlP5.Controller : Slider setView(ControllerView) 
    -controlP5.Controller : Slider setVisible(boolean) 
    -controlP5.Controller : Slider setWidth(int) 
    -controlP5.Controller : Slider show() 
    -controlP5.Controller : Slider unlock() 
    -controlP5.Controller : Slider unplugFrom(Object) 
    -controlP5.Controller : Slider unplugFrom(Object[]) 
    -controlP5.Controller : Slider unregisterTooltip() 
    -controlP5.Controller : Slider update() 
    -controlP5.Controller : Slider updateSize() 
    -controlP5.Controller : String getAddress() 
    -controlP5.Controller : String getInfo() 
    -controlP5.Controller : String getName() 
    -controlP5.Controller : String getStringValue() 
    -controlP5.Controller : String toString() 
    -controlP5.Controller : Tab getTab() 
    -controlP5.Controller : boolean isActive() 
    -controlP5.Controller : boolean isBroadcast() 
    -controlP5.Controller : boolean isInside() 
    -controlP5.Controller : boolean isLabelVisible() 
    -controlP5.Controller : boolean isListening() 
    -controlP5.Controller : boolean isLock() 
    -controlP5.Controller : boolean isMouseOver() 
    -controlP5.Controller : boolean isMousePressed() 
    -controlP5.Controller : boolean isMoveable() 
    -controlP5.Controller : boolean isUpdate() 
    -controlP5.Controller : boolean isVisible() 
    -controlP5.Controller : float getArrayValue(int) 
    -controlP5.Controller : float getDefaultValue() 
    -controlP5.Controller : float getMax() 
    -controlP5.Controller : float getMin() 
    -controlP5.Controller : float getValue() 
    -controlP5.Controller : float[] getArrayValue() 
    -controlP5.Controller : int getDecimalPrecision() 
    -controlP5.Controller : int getHeight() 
    -controlP5.Controller : int getId() 
    -controlP5.Controller : int getWidth() 
    -controlP5.Controller : int listenerSize() 
    -controlP5.Controller : void remove() 
    -controlP5.Controller : void setView(ControllerView, int) 
    -java.lang.Object : String toString() 
    -java.lang.Object : boolean equals(Object) 
    -
    -
    -*/
    -
    -
    -
    -
    -
  • -
-
-
- -
-
-
    -
  • - - - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Slider

        -
        public Slider(ControlP5 theControlP5,
        -      ControllerGroup<?> theParent,
        -      java.lang.String theName,
        -      float theMin,
        -      float theMax,
        -      float theDefaultValue,
        -      int theX,
        -      int theY,
        -      int theWidth,
        -      int theHeight)
        -
      • -
      - - - -
        -
      • -

        Slider

        -
        public Slider(ControlP5 theControlP5,
        -      java.lang.String theName)
        -
        Convenience constructor to extend Slider.
        -
        Parameters:
        theControlP5 -
        theName -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        getDirection

        -
        public int getDirection()
        -
      • -
      - - - -
        -
      • -

        getHandleSize

        -
        public int getHandleSize()
        -
      • -
      - - - -
        -
      • -

        getMax

        -
        public float getMax()
        -
        Description copied from class: Controller
        -
        returns the maximum value of the controller.
        -
        -
        Overrides:
        -
        getMax in class Controller<Slider>
        -
        Returns:
        float
        -
      • -
      - - - -
        -
      • -

        getMin

        -
        public float getMin()
        -
        Description copied from class: Controller
        -
        returns the minimum value of the controller.
        -
        -
        Overrides:
        -
        getMin in class Controller<Slider>
        -
        Returns:
        float
        -
      • -
      - - - -
        -
      • -

        getNumberOfTickMarks

        -
        public int getNumberOfTickMarks()
        -
        returns the amount of tickmarks available for a slider
        -
        Returns:
        int
        -
      • -
      - - - -
        -
      • -

        getSliderMode

        -
        public int getSliderMode()
        -
      • -
      - - - -
        -
      • -

        getTickMark

        -
        public TickMark getTickMark(int theIndex)
        -
        returns an instance of a tickmark by index.
        -
        Parameters:
        theIndex -
        -
        Returns:
        See Also:
        TickMark
        -
      • -
      - - - -
        -
      • -

        getTickMarks

        -
        public java.util.ArrayList<TickMark> getTickMarks()
        -
        returns an ArrayList of available tick marks for a slider.
        -
        Returns:
        ArrayList
        -
      • -
      - - - -
        -
      • -

        getTriggerEvent

        -
        public int getTriggerEvent()
        -
        returns the current trigger event which is either Slider.PRESSED or Slider.RELEASE
        -
        Returns:
        int
        -
      • -
      - - - - - - - -
        -
      • -

        getValuePosition

        -
        public float getValuePosition()
        -
      • -
      - - - - - - - - - - - -
        -
      • -

        scrolled

        -
        public Slider scrolled(int theRotationValue)
        -
        changes the value of the slider when hovering and using the mouse wheel or the scroll - function of a multi-touch track pad.
        -
        Parameters:
        theRotationValue -
        -
        Returns:
        Slider
        -
      • -
      - - - -
        -
      • -

        setColorTickMark

        -
        public Slider setColorTickMark(int theColor)
        -
        sets the color of tick marks if enabled. by default the color is set to white.
        -
        Parameters:
        theColor -
        -
        Returns:
        Slider
        -
      • -
      - - - -
        -
      • -

        setHandleSize

        -
        public Slider setHandleSize(int theSize)
        -
        sets the size of the Slider handle, by default it is set to either the width or height of the - slider.
        -
        Parameters:
        theSize -
        -
      • -
      - - - -
        -
      • -

        setHeight

        -
        public Slider setHeight(int theValue)
        -
        set the height of the slider.
        -
        -
        Overrides:
        -
        setHeight in class Controller<Slider>
        -
        Parameters:
        theValue - int
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setMax

        -
        public Slider setMax(float theValue)
        -
        set the maximum value of the slider.
        -
        -
        Overrides:
        -
        setMax in class Controller<Slider>
        -
        Parameters:
        theValue - float
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setMin

        -
        public Slider setMin(float theValue)
        -
        sets the minimum value of the slider.
        -
        -
        Overrides:
        -
        setMin in class Controller<Slider>
        -
        Parameters:
        theValue - float
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setNumberOfTickMarks

        -
        public Slider setNumberOfTickMarks(int theNumber)
        -
        sets the number of tickmarks for a slider, by default tick marks are turned off.
        -
        Parameters:
        theNumber -
        -
      • -
      - - - -
        -
      • -

        setRange

        -
        public Slider setRange(float theMin,
        -              float theMax)
        -
      • -
      - - - -
        -
      • -

        setScrollSensitivity

        -
        public Slider setScrollSensitivity(float theValue)
        -
        sets the sensitivity for the scroll behavior when using the mouse wheel or the scroll - function of a multi-touch track pad. The smaller the value (closer to 0) the higher the - sensitivity. by default this value is set to 0.1
        -
        Parameters:
        theValue -
        -
        Returns:
        Slider
        -
      • -
      - - - -
        -
      • -

        setSensitivity

        -
        @Deprecated
        -public Slider setSensitivity(float theValue)
        -
        Deprecated. 
        -
        Parameters:
        theValue -
        -
        Returns:
        Slider
        See Also:
        setScrollSensitivity(float)
        -
      • -
      - - - -
        -
      • -

        setSize

        -
        public Slider setSize(int theWidth,
        -             int theHeight)
        -
        -
        Overrides:
        -
        setSize in class Controller<Slider>
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        setSliderBarSize

        -
        @Deprecated
        -public void setSliderBarSize(int theSize)
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        setSliderMode

        -
        public Slider setSliderMode(int theMode)
        -
        use the slider mode to set the mode of the slider bar, which can be Slider.FLEXIBLE or - Slider.FIX
        -
        Parameters:
        theMode - int
        -
      • -
      - - - -
        -
      • -

        setTriggerEvent

        -
        public Slider setTriggerEvent(int theEventID)
        -
        the trigger event is set to Slider.PRESSED by default but can be changed to Slider.RELEASE so - that events are triggered when the slider is released.
        -
        Parameters:
        theEventID -
        -
      • -
      - - - - - - - -
        -
      • -

        setWidth

        -
        public Slider setWidth(int theValue)
        -
        set the width of the slider.
        -
        -
        Overrides:
        -
        setWidth in class Controller<Slider>
        -
        Parameters:
        theValue - int
        -
        Returns:
        Controller
        -
      • -
      - - - -
        -
      • -

        showTickMarks

        -
        public Slider showTickMarks(boolean theFlag)
        -
        shows or hides tickmarks for a slider
        -
        Parameters:
        theFlag -
        -
        Returns:
        Slider
        -
      • -
      - - - -
        -
      • -

        shuffle

        -
        public Slider shuffle()
        -
        assigns a random value to the slider.
        -
      • -
      - - - -
        -
      • -

        snapToTickMarks

        -
        public Slider snapToTickMarks(boolean theFlag)
        -
        enables or disables snap to tick marks.
        -
        Parameters:
        theFlag -
        -
        Returns:
        Slider
        -
      • -
      - - - - - - - -
        -
      • -

        updateDisplayMode

        -
        public Slider updateDisplayMode(int theMode)
        -
      • -
      - - - - -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Slider2D.html b/reference/controlP5/Slider2D.html deleted file mode 100644 index 647e4ee..0000000 --- a/reference/controlP5/Slider2D.html +++ /dev/null @@ -1,1058 +0,0 @@ - - - - - -Slider2D (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Slider2D

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    CDrawable, ControllerInterface<Slider2D>, ControlP5Constants
    -
    -
    -
    -
    public class Slider2D
    -extends Controller<Slider2D>
    -
    The Slider2D allows to control a handle within a 2D area. This controller returns an arrayValue - with the current xy position of its handle.
    -
    Author:
    -
    andreas schlegel
    - -
    +Example
    /**
    -* ControlP5 Slider2D
    -*
    -*
    -* find a list of public methods available for the Slider2D Controller
    -* at the bottom of this sketch.
    -*
    -* by Andreas Schlegel, 2012
    -* www.sojamo.de/libraries/controlp5
    -*
    -*/
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -Slider2D s;
    -
    -void setup() {
    -  size(700,400);
    -  cp5 = new ControlP5(this);
    -  s = cp5.addSlider2D("wave")
    -         .setPosition(30,40)
    -         .setSize(100,100)
    -         .setArrayValue(new float[] {50, 50})
    -         //.disableCrosshair()
    -         ;
    -         
    -  smooth();
    -}
    -
    -float cnt;
    -void draw() {
    -  background(0);
    -  pushMatrix();
    -  translate(160,140);
    -  noStroke();
    -  fill(50);
    -  rect(0, -100, 400,200);
    -  strokeWeight(1);
    -  line(0,0,200, 0);
    -  stroke(255);
    -  
    -  for(int i=1;i<400;i++) {
    -    float y0 = cos(map(i-1,0,s.arrayValue()[0],-PI,PI)) * s.arrayValue()[1]; 
    -    float y1 = cos(map(i,0,s.arrayValue()[0],-PI,PI)) * s.arrayValue()[1];
    -    line((i-1),y0,i,y1);
    -  }
    -  
    -  popMatrix();
    -}
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -/*
    -a list of all methods available for the Slider2D Controller
    -use ControlP5.printPublicMethodsFor(Slider2D.class);
    -to print the following list into the console.
    -
    -You can find further details about class Slider2D in the javadoc.
    -
    -Format:
    -ClassName : returnType methodName(parameter type)
    -
    -controlP5.Slider2D : Slider2D enableCrosshair()
    -controlP5.Slider2D : Slider2D disableCrosshair()
    -controlP5.Slider2D : Slider2D setArrayValue(float[]) 
    -controlP5.Slider2D : Slider2D setMaxX(float) 
    -controlP5.Slider2D : Slider2D setMaxY(float) 
    -controlP5.Slider2D : Slider2D setMinX(float) 
    -controlP5.Slider2D : Slider2D setMinY(float) 
    -controlP5.Slider2D : Slider2D setValue(float) 
    -controlP5.Slider2D : Slider2D shuffle() 
    -controlP5.Slider2D : float getCursorHeight() 
    -controlP5.Slider2D : float getCursorWidth() 
    -controlP5.Slider2D : float getCursorX() 
    -controlP5.Slider2D : float getCursorY() 
    -controlP5.Slider2D : float getMaxX() 
    -controlP5.Slider2D : float getMaxY() 
    -controlP5.Slider2D : float getMinX() 
    -controlP5.Slider2D : float getMinY() 
    -controlP5.Slider2D : float[] getArrayValue() 
    -controlP5.Slider2D : void setValueLabelSeparator(String) 
    -controlP5.Controller : CColor getColor() 
    -controlP5.Controller : ControlBehavior getBehavior() 
    -controlP5.Controller : ControlWindow getControlWindow() 
    -controlP5.Controller : ControlWindow getWindow() 
    -controlP5.Controller : ControllerProperty getProperty(String) 
    -controlP5.Controller : ControllerProperty getProperty(String, String) 
    -controlP5.Controller : Label getCaptionLabel() 
    -controlP5.Controller : Label getValueLabel() 
    -controlP5.Controller : List getControllerPlugList() 
    -controlP5.Controller : PImage setImage(PImage) 
    -controlP5.Controller : PImage setImage(PImage, int) 
    -controlP5.Controller : PVector getAbsolutePosition() 
    -controlP5.Controller : PVector getPosition() 
    -controlP5.Controller : Slider2D addCallback(CallbackListener) 
    -controlP5.Controller : Slider2D addListener(ControlListener) 
    -controlP5.Controller : Slider2D bringToFront() 
    -controlP5.Controller : Slider2D bringToFront(ControllerInterface) 
    -controlP5.Controller : Slider2D hide() 
    -controlP5.Controller : Slider2D linebreak() 
    -controlP5.Controller : Slider2D listen(boolean) 
    -controlP5.Controller : Slider2D lock() 
    -controlP5.Controller : Slider2D plugTo(Object) 
    -controlP5.Controller : Slider2D plugTo(Object, String) 
    -controlP5.Controller : Slider2D plugTo(Object[]) 
    -controlP5.Controller : Slider2D plugTo(Object[], String) 
    -controlP5.Controller : Slider2D registerProperty(String) 
    -controlP5.Controller : Slider2D registerProperty(String, String) 
    -controlP5.Controller : Slider2D registerTooltip(String) 
    -controlP5.Controller : Slider2D removeBehavior() 
    -controlP5.Controller : Slider2D removeCallback() 
    -controlP5.Controller : Slider2D removeCallback(CallbackListener) 
    -controlP5.Controller : Slider2D removeListener(ControlListener) 
    -controlP5.Controller : Slider2D removeProperty(String) 
    -controlP5.Controller : Slider2D removeProperty(String, String) 
    -controlP5.Controller : Slider2D setArrayValue(float[]) 
    -controlP5.Controller : Slider2D setArrayValue(int, float) 
    -controlP5.Controller : Slider2D setBehavior(ControlBehavior) 
    -controlP5.Controller : Slider2D setBroadcast(boolean) 
    -controlP5.Controller : Slider2D setCaptionLabel(String) 
    -controlP5.Controller : Slider2D setColor(CColor) 
    -controlP5.Controller : Slider2D setColorActive(int) 
    -controlP5.Controller : Slider2D setColorBackground(int) 
    -controlP5.Controller : Slider2D setColorCaptionLabel(int) 
    -controlP5.Controller : Slider2D setColorForeground(int) 
    -controlP5.Controller : Slider2D setColorValueLabel(int) 
    -controlP5.Controller : Slider2D setDecimalPrecision(int) 
    -controlP5.Controller : Slider2D setDefaultValue(float) 
    -controlP5.Controller : Slider2D setHeight(int) 
    -controlP5.Controller : Slider2D setId(int) 
    -controlP5.Controller : Slider2D setImages(PImage, PImage, PImage) 
    -controlP5.Controller : Slider2D setImages(PImage, PImage, PImage, PImage) 
    -controlP5.Controller : Slider2D setLabelVisible(boolean) 
    -controlP5.Controller : Slider2D setLock(boolean) 
    -controlP5.Controller : Slider2D setMax(float) 
    -controlP5.Controller : Slider2D setMin(float) 
    -controlP5.Controller : Slider2D setMouseOver(boolean) 
    -controlP5.Controller : Slider2D setMoveable(boolean) 
    -controlP5.Controller : Slider2D setPosition(PVector) 
    -controlP5.Controller : Slider2D setPosition(float, float) 
    -controlP5.Controller : Slider2D setSize(PImage) 
    -controlP5.Controller : Slider2D setSize(int, int) 
    -controlP5.Controller : Slider2D setStringValue(String) 
    -controlP5.Controller : Slider2D setUpdate(boolean) 
    -controlP5.Controller : Slider2D setValueLabel(String) 
    -controlP5.Controller : Slider2D setView(ControllerView) 
    -controlP5.Controller : Slider2D setVisible(boolean) 
    -controlP5.Controller : Slider2D setWidth(int) 
    -controlP5.Controller : Slider2D show() 
    -controlP5.Controller : Slider2D unlock() 
    -controlP5.Controller : Slider2D unplugFrom(Object) 
    -controlP5.Controller : Slider2D unplugFrom(Object[]) 
    -controlP5.Controller : Slider2D unregisterTooltip() 
    -controlP5.Controller : Slider2D update() 
    -controlP5.Controller : Slider2D updateSize() 
    -controlP5.Controller : String getAddress() 
    -controlP5.Controller : String getInfo() 
    -controlP5.Controller : String getName() 
    -controlP5.Controller : String getStringValue() 
    -controlP5.Controller : String toString() 
    -controlP5.Controller : Tab getTab() 
    -controlP5.Controller : boolean isActive() 
    -controlP5.Controller : boolean isBroadcast() 
    -controlP5.Controller : boolean isInside() 
    -controlP5.Controller : boolean isLabelVisible() 
    -controlP5.Controller : boolean isListening() 
    -controlP5.Controller : boolean isLock() 
    -controlP5.Controller : boolean isMouseOver() 
    -controlP5.Controller : boolean isMousePressed() 
    -controlP5.Controller : boolean isMoveable() 
    -controlP5.Controller : boolean isUpdate() 
    -controlP5.Controller : boolean isVisible() 
    -controlP5.Controller : float getArrayValue(int) 
    -controlP5.Controller : float getDefaultValue() 
    -controlP5.Controller : float getMax() 
    -controlP5.Controller : float getMin() 
    -controlP5.Controller : float getValue() 
    -controlP5.Controller : float[] getArrayValue() 
    -controlP5.Controller : int getDecimalPrecision() 
    -controlP5.Controller : int getHeight() 
    -controlP5.Controller : int getId() 
    -controlP5.Controller : int getWidth() 
    -controlP5.Controller : int listenerSize() 
    -controlP5.Controller : void remove() 
    -controlP5.Controller : void setView(ControllerView, int) 
    -java.lang.Object : String toString() 
    -java.lang.Object : boolean equals(Object) 
    -
    -
    -*/
    -
    -
    -
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Field Detail

      - - - -
        -
      • -

        isCrosshairs

        -
        public boolean isCrosshairs
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Slider2D

        -
        public Slider2D(ControlP5 theControlP5,
        -        java.lang.String theName)
        -
        Convenience constructor to extend Slider2D.
        -
        Parameters:
        theControlP5 -
        theName -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        disableCrosshair

        -
        public Slider2D disableCrosshair()
        -
      • -
      - - - -
        -
      • -

        enableCrosshair

        -
        public Slider2D enableCrosshair()
        -
      • -
      - - - - - - - -
        -
      • -

        getCursorHeight

        -
        public float getCursorHeight()
        -
      • -
      - - - -
        -
      • -

        getCursorWidth

        -
        public float getCursorWidth()
        -
      • -
      - - - -
        -
      • -

        getCursorX

        -
        public float getCursorX()
        -
      • -
      - - - -
        -
      • -

        getCursorY

        -
        public float getCursorY()
        -
      • -
      - - - -
        -
      • -

        getMaxX

        -
        public float getMaxX()
        -
      • -
      - - - -
        -
      • -

        getMaxY

        -
        public float getMaxY()
        -
      • -
      - - - -
        -
      • -

        getMinX

        -
        public float getMinX()
        -
      • -
      - - - -
        -
      • -

        getMinY

        -
        public float getMinY()
        -
      • -
      - - - - - - - -
        -
      • -

        setCursorX

        -
        public Slider2D setCursorX(float theValue)
        -
      • -
      - - - -
        -
      • -

        setCursorY

        -
        public Slider2D setCursorY(float theValue)
        -
      • -
      - - - -
        -
      • -

        setMaxX

        -
        public Slider2D setMaxX(float theMaxX)
        -
        sets the maximum value for the x-axis
        -
        Parameters:
        theMaxX -
        -
        Returns:
        Slider2D
        -
      • -
      - - - -
        -
      • -

        setMaxY

        -
        public Slider2D setMaxY(float theMaxY)
        -
        sets the maximum value for the y-axis
        -
        Parameters:
        theMaxY -
        -
        Returns:
        Slider2D
        -
      • -
      - - - -
        -
      • -

        setMinX

        -
        public Slider2D setMinX(float theMinX)
        -
        sets the minimum value for the x-axis
        -
        Parameters:
        theMinX -
        -
        Returns:
        Slider2D
        -
      • -
      - - - -
        -
      • -

        setMinY

        -
        public Slider2D setMinY(float theMinY)
        -
        sets the minimum value for the y-axis
        -
        Parameters:
        theMinY -
        -
        Returns:
        Slider2D
        -
      • -
      - - - - - - - -
        -
      • -

        setValueLabelSeparator

        -
        public void setValueLabelSeparator(java.lang.String theSeparator)
        -
      • -
      - - - -
        -
      • -

        shuffle

        -
        public Slider2D shuffle()
        -
        assigns a random value to the controller.
        -
      • -
      - - - -
        -
      • -

        updateDisplayMode

        -
        public Slider2D updateDisplayMode(int theMode)
        -
      • -
      - - - - -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Tab.html b/reference/controlP5/Tab.html deleted file mode 100644 index 48ad097..0000000 --- a/reference/controlP5/Tab.html +++ /dev/null @@ -1,833 +0,0 @@ - - - - - -Tab (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Tab

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    ControllerInterface<Tab>, ControlListener, ControlP5Constants
    -
    -
    -
    -
    public class Tab
    -extends ControllerGroup<Tab>
    -
    Tabs are used to organize controllers. Tabs are arranged horizontally from the top-left corner by - default, Tab extends ControllerGroup, for more available methods see the ControllerGroup - documentation. Reposition tabs with ControlWindow.setPositionOfTabs(int, int)
    -
    -
    +Example
    /**
    -* ControlP5 Tab
    -*
    -*
    -* find a list of public methods available for the Tab Controller
    -* at the bottom of this sketch.
    -*
    -* by Andreas Schlegel, 2012
    -* www.sojamo.de/libraries/controlp5
    -*
    -*/
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -int myColorBackground = color(128);
    -
    -int sliderValue = 100;
    -
    -void setup() {
    -  size(700,400);
    -  noStroke();
    -  cp5 = new ControlP5(this);
    -  
    -  // By default all controllers are stored inside Tab 'default' 
    -  // add a second tab with name 'extra'
    -  
    -  cp5.addTab("extra")
    -     .setColorBackground(color(0, 160, 100))
    -     .setColorLabel(color(255))
    -     .setColorActive(color(255,128,0))
    -     ;
    -     
    -  // if you want to receive a controlEvent when
    -  // a  tab is clicked, use activeEvent(true)
    -  
    -  cp5.getTab("default")
    -     .activateEvent(true)
    -     .setLabel("my default tab")
    -     .setId(1)
    -     ;
    -
    -  cp5.getTab("extra")
    -     .activateEvent(true)
    -     .setId(2)
    -     ;
    -
    -  
    -  // create a few controllers
    -  
    -  cp5.addButton("button")
    -     .setBroadcast(false)
    -     .setPosition(100,100)
    -     .setSize(80,40)
    -     .setValue(1)
    -     .setBroadcast(true)
    -     .getCaptionLabel().align(CENTER,CENTER)
    -     ;
    -     
    -  cp5.addButton("buttonValue")
    -     .setBroadcast(false)
    -     .setPosition(220,100)
    -     .setSize(80,40)
    -     .setValue(2)
    -     .setBroadcast(true)
    -     .getCaptionLabel().align(CENTER,CENTER)
    -     ;
    -  
    -  cp5.addSlider("slider")
    -     .setBroadcast(false)
    -     .setRange(100,200)
    -     .setValue(128)
    -     .setPosition(100,160)
    -     .setSize(200,20)
    -     .setBroadcast(true)
    -     ;
    -     
    -  cp5.addSlider("sliderValue")
    -     .setBroadcast(false)
    -     .setRange(0,255)
    -     .setValue(128)
    -     .setPosition(100,200)
    -     .setSize(200,20)
    -     .setBroadcast(true)
    -     ;
    -     
    -  // arrange controller in separate tabs
    -  
    -  cp5.getController("sliderValue").moveTo("extra");
    -  cp5.getController("slider").moveTo("global");
    -  
    -  // Tab 'global' is a tab that lies on top of any 
    -  // other tab and is always visible
    -  
    -}
    -
    -void draw() {
    -  background(myColorBackground);
    -  fill(sliderValue);
    -  rect(0,0,width,100);
    -}
    -
    -void controlEvent(ControlEvent theControlEvent) {
    -  if (theControlEvent.isTab()) {
    -    println("got an event from tab : "+theControlEvent.getTab().getName()+" with id "+theControlEvent.getTab().getId());
    -  }
    -}
    -
    -void slider(int theColor) {
    -  myColorBackground = color(theColor);
    -  println("a slider event. setting background to "+theColor);
    -}
    -
    -
    -void keyPressed() {
    -  if(keyCode==TAB) {
    -    cp5.getTab("extra").bringToFront();
    -  }
    -}
    -
    -/*
    -a list of all methods available for the Tab Controller
    -use ControlP5.printPublicMethodsFor(Tab.class);
    -to print the following list into the console.
    -
    -You can find further details about class Tab in the javadoc.
    -
    -Format:
    -ClassName : returnType methodName(parameter type)
    -
    -controlP5.Tab : String getStringValue() 
    -controlP5.Tab : Tab activateEvent(boolean) 
    -controlP5.Tab : Tab bringToFront() 
    -controlP5.Tab : Tab moveTo(ControlWindow) 
    -controlP5.Tab : Tab setActive(boolean) 
    -controlP5.Tab : Tab setHeight(int) 
    -controlP5.Tab : Tab setLabel(String) 
    -controlP5.Tab : Tab setValue(float) 
    -controlP5.Tab : Tab setWidth(int) 
    -controlP5.Tab : float getValue() 
    -controlP5.ControllerGroup : CColor getColor() 
    -controlP5.ControllerGroup : ControlWindow getWindow() 
    -controlP5.ControllerGroup : ControlWindowCanvas addCanvas(ControlWindowCanvas) 
    -controlP5.ControllerGroup : Controller getController(String) 
    -controlP5.ControllerGroup : ControllerProperty getProperty(String) 
    -controlP5.ControllerGroup : ControllerProperty getProperty(String, String) 
    -controlP5.ControllerGroup : Label getCaptionLabel() 
    -controlP5.ControllerGroup : Label getValueLabel() 
    -controlP5.ControllerGroup : PVector getPosition() 
    -controlP5.ControllerGroup : String getAddress() 
    -controlP5.ControllerGroup : String getInfo() 
    -controlP5.ControllerGroup : String getName() 
    -controlP5.ControllerGroup : String getStringValue() 
    -controlP5.ControllerGroup : String toString() 
    -controlP5.ControllerGroup : Tab add(ControllerInterface) 
    -controlP5.ControllerGroup : Tab bringToFront() 
    -controlP5.ControllerGroup : Tab bringToFront(ControllerInterface) 
    -controlP5.ControllerGroup : Tab close() 
    -controlP5.ControllerGroup : Tab disableCollapse() 
    -controlP5.ControllerGroup : Tab enableCollapse() 
    -controlP5.ControllerGroup : Tab getTab() 
    -controlP5.ControllerGroup : Tab hide() 
    -controlP5.ControllerGroup : Tab moveTo(ControlWindow) 
    -controlP5.ControllerGroup : Tab moveTo(PApplet) 
    -controlP5.ControllerGroup : Tab open() 
    -controlP5.ControllerGroup : Tab registerProperty(String) 
    -controlP5.ControllerGroup : Tab registerProperty(String, String) 
    -controlP5.ControllerGroup : Tab remove(CDrawable) 
    -controlP5.ControllerGroup : Tab remove(ControllerInterface) 
    -controlP5.ControllerGroup : Tab removeCanvas(ControlWindowCanvas) 
    -controlP5.ControllerGroup : Tab removeProperty(String) 
    -controlP5.ControllerGroup : Tab removeProperty(String, String) 
    -controlP5.ControllerGroup : Tab setAddress(String) 
    -controlP5.ControllerGroup : Tab setArrayValue(float[]) 
    -controlP5.ControllerGroup : Tab setColor(CColor) 
    -controlP5.ControllerGroup : Tab setColorActive(int) 
    -controlP5.ControllerGroup : Tab setColorBackground(int) 
    -controlP5.ControllerGroup : Tab setColorForeground(int) 
    -controlP5.ControllerGroup : Tab setColorLabel(int) 
    -controlP5.ControllerGroup : Tab setColorValue(int) 
    -controlP5.ControllerGroup : Tab setHeight(int) 
    -controlP5.ControllerGroup : Tab setId(int) 
    -controlP5.ControllerGroup : Tab setLabel(String) 
    -controlP5.ControllerGroup : Tab setMouseOver(boolean) 
    -controlP5.ControllerGroup : Tab setMoveable(boolean) 
    -controlP5.ControllerGroup : Tab setOpen(boolean) 
    -controlP5.ControllerGroup : Tab setPosition(PVector) 
    -controlP5.ControllerGroup : Tab setPosition(float, float) 
    -controlP5.ControllerGroup : Tab setStringValue(String) 
    -controlP5.ControllerGroup : Tab setUpdate(boolean) 
    -controlP5.ControllerGroup : Tab setValue(float) 
    -controlP5.ControllerGroup : Tab setVisible(boolean) 
    -controlP5.ControllerGroup : Tab setWidth(int) 
    -controlP5.ControllerGroup : Tab show() 
    -controlP5.ControllerGroup : Tab update() 
    -controlP5.ControllerGroup : Tab updateAbsolutePosition() 
    -controlP5.ControllerGroup : boolean isCollapse() 
    -controlP5.ControllerGroup : boolean isMouseOver() 
    -controlP5.ControllerGroup : boolean isMoveable() 
    -controlP5.ControllerGroup : boolean isOpen() 
    -controlP5.ControllerGroup : boolean isUpdate() 
    -controlP5.ControllerGroup : boolean isVisible() 
    -controlP5.ControllerGroup : boolean setMousePressed(boolean) 
    -controlP5.ControllerGroup : float getValue() 
    -controlP5.ControllerGroup : float[] getArrayValue() 
    -controlP5.ControllerGroup : int getHeight() 
    -controlP5.ControllerGroup : int getId() 
    -controlP5.ControllerGroup : int getWidth() 
    -controlP5.ControllerGroup : void remove() 
    -java.lang.Object : String toString() 
    -java.lang.Object : boolean equals(Object) 
    -
    -
    -*/
    -
    -
    -
    -
    -
    -
    -
  • -
-
-
- -
-
- -
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Textarea.html b/reference/controlP5/Textarea.html deleted file mode 100644 index 0c35c03..0000000 --- a/reference/controlP5/Textarea.html +++ /dev/null @@ -1,1229 +0,0 @@ - - - - - -Textarea (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Textarea

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    ControllerInterface<Textarea>, ControlListener, ControlP5Constants
    -
    -
    -
    -
    public class Textarea
    -extends ControllerGroup<Textarea>
    -implements ControlListener
    -
    a textarea can be used to leave notes, it uses the controlP5 BitFont to render text. Scrollbars - will automatically be added when text extends the visible area. Textarea extends ControllerGroup, - for more methods available see the ControllerGroup documentation.
    -
    -
    +Example
    /**
    -* ControlP5 Textarea
    -*
    -*
    -* find a list of public methods available for the Textarea Controller
    -* at the bottom of this sketch.
    -*
    -* by Andreas Schlegel, 2012
    -* www.sojamo.de/libraries/controlp5
    -*
    -*/
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -Textarea myTextarea;
    -
    -void setup() {
    -  size(700,400);
    -  cp5 = new ControlP5(this);
    -  
    -  myTextarea = cp5.addTextarea("txt")
    -                  .setPosition(100,100)
    -                  .setSize(200,200)
    -                  .setFont(createFont("arial",12))
    -                  .setLineHeight(14)
    -                  .setColor(color(128))
    -                  .setColorBackground(color(255,100))
    -                  .setColorForeground(color(255,100));
    -                  ;
    -  myTextarea.setText("Lorem Ipsum is simply dummy text of the printing and typesetting"
    -                    +" industry. Lorem Ipsum has been the industry's standard dummy text"
    -                    +" ever since the 1500s, when an unknown printer took a galley of type"
    -                    +" and scrambled it to make a type specimen book. It has survived not"
    -                    +" only five centuries, but also the leap into electronic typesetting,"
    -                    +" remaining essentially unchanged. It was popularised in the 1960s"
    -                    +" with the release of Letraset sheets containing Lorem Ipsum passages,"
    -                    +" and more recently with desktop publishing software like Aldus"
    -                    +" PageMaker including versions of Lorem Ipsum."
    -                    );
    -    
    -  cp5.addSlider("changeWidth")
    -     .setRange(100,400)
    -     .setValue(200)
    -     .setPosition(100,20)
    -     .setSize(100,19)
    -     ;
    -     
    -  cp5.addSlider("changeHeight")
    -     .setRange(100,400)
    -     .setValue(200)
    -     .setPosition(100,40)
    -     .setSize(100,19)
    -     ;
    -  
    -}
    -
    -
    -void keyPressed() {
    -  if(key=='r') {
    -    myTextarea.setText("Lorem ipsum dolor sit amet, consectetur adipiscing elit."
    -                      +" Quisque sed velit nec eros scelerisque adipiscing vitae eu sem."
    -                      +" Quisque malesuada interdum lectus. Pellentesque pellentesque molestie"
    -                      +" vestibulum. Maecenas ultricies, neque at porttitor lacinia, tellus enim"
    -                      +" suscipit tortor, ut dapibus orci lorem non ipsum. Mauris ut velit velit."
    -                      +" Fusce at purus in augue semper tincidunt imperdiet sit amet eros."
    -                      +" Vestibulum nunc diam, fringilla vitae tristique ut, viverra ut felis."
    -                      +" Proin aliquet turpis ornare leo aliquam dapibus. Integer dui nisi, condimentum"
    -                      +" ut sagittis non, fringilla vestibulum sapien. Sed ullamcorper libero et massa"
    -                      +" congue in facilisis mauris lobortis. Fusce cursus risus sit amet leo imperdiet"
    -                      +" lacinia faucibus turpis tempus. Pellentesque pellentesque augue sed purus varius"
    -                      +" sed volutpat dui rhoncus. Lorem ipsum dolor sit amet, consectetur adipiscing elit"
    -                      );
    -                      
    -  } else if(key=='c') {
    -    myTextarea.setColor(0xffffffff);
    -  }
    -}
    -void draw() {
    -  background(0);
    -  if(keyPressed && key==' ') {
    -    myTextarea.scroll((float)mouseX/(float)width);
    -  }
    -  if(keyPressed && key=='l') {
    -    myTextarea.setLineHeight(mouseY);
    -  }
    -}
    -
    -void changeWidth(int theValue) {
    -  myTextarea.setWidth(theValue);
    -}
    -
    -void changeHeight(int theValue) {
    -  myTextarea.setHeight(theValue);
    -}
    -
    -
    -
    -
    -/*
    -a list of all methods available for the Textarea Controller
    -use ControlP5.printPublicMethodsFor(Textarea.class);
    -to print the following list into the console.
    -
    -You can find further details about class Textarea in the javadoc.
    -
    -Format:
    -ClassName : returnType methodName(parameter type)
    -
    -controlP5.Textarea : Label getValueLabel() 
    -controlP5.Textarea : String getStringValue() 
    -controlP5.Textarea : String getText() 
    -controlP5.Textarea : Textarea disableColorBackground() 
    -controlP5.Textarea : Textarea enableColorBackground() 
    -controlP5.Textarea : Textarea hideScrollbar() 
    -controlP5.Textarea : Textarea scroll(float) 
    -controlP5.Textarea : Textarea setBorderColor(int) 
    -controlP5.Textarea : Textarea setColor(int) 
    -controlP5.Textarea : Textarea setColorBackground(int) 
    -controlP5.Textarea : Textarea setFont(ControlFont) 
    -controlP5.Textarea : Textarea setFont(PFont) 
    -controlP5.Textarea : Textarea setFont(int) 
    -controlP5.Textarea : Textarea setHeight(int) 
    -controlP5.Textarea : Textarea setLineHeight(int) 
    -controlP5.Textarea : Textarea setScrollActive(int) 
    -controlP5.Textarea : Textarea setScrollBackground(int) 
    -controlP5.Textarea : Textarea setScrollForeground(int) 
    -controlP5.Textarea : Textarea setSize(int, int) 
    -controlP5.Textarea : Textarea setText(String) 
    -controlP5.Textarea : Textarea setWidth(int) 
    -controlP5.Textarea : Textarea showScrollbar() 
    -controlP5.Textarea : boolean isScrollable() 
    -controlP5.Textarea : float getValue() 
    -controlP5.Textarea : void controlEvent(ControlEvent) 
    -controlP5.ControllerGroup : CColor getColor() 
    -controlP5.ControllerGroup : ControlWindow getWindow() 
    -controlP5.ControllerGroup : ControlWindowCanvas addCanvas(ControlWindowCanvas) 
    -controlP5.ControllerGroup : Controller getController(String) 
    -controlP5.ControllerGroup : ControllerProperty getProperty(String) 
    -controlP5.ControllerGroup : ControllerProperty getProperty(String, String) 
    -controlP5.ControllerGroup : Label getCaptionLabel() 
    -controlP5.ControllerGroup : Label getValueLabel() 
    -controlP5.ControllerGroup : PVector getPosition() 
    -controlP5.ControllerGroup : String getAddress() 
    -controlP5.ControllerGroup : String getInfo() 
    -controlP5.ControllerGroup : String getName() 
    -controlP5.ControllerGroup : String getStringValue() 
    -controlP5.ControllerGroup : String toString() 
    -controlP5.ControllerGroup : Tab getTab() 
    -controlP5.ControllerGroup : Textarea add(ControllerInterface) 
    -controlP5.ControllerGroup : Textarea bringToFront() 
    -controlP5.ControllerGroup : Textarea bringToFront(ControllerInterface) 
    -controlP5.ControllerGroup : Textarea close() 
    -controlP5.ControllerGroup : Textarea disableCollapse() 
    -controlP5.ControllerGroup : Textarea enableCollapse() 
    -controlP5.ControllerGroup : Textarea hide() 
    -controlP5.ControllerGroup : Textarea moveTo(ControlWindow) 
    -controlP5.ControllerGroup : Textarea moveTo(PApplet) 
    -controlP5.ControllerGroup : Textarea open() 
    -controlP5.ControllerGroup : Textarea registerProperty(String) 
    -controlP5.ControllerGroup : Textarea registerProperty(String, String) 
    -controlP5.ControllerGroup : Textarea remove(CDrawable) 
    -controlP5.ControllerGroup : Textarea remove(ControllerInterface) 
    -controlP5.ControllerGroup : Textarea removeCanvas(ControlWindowCanvas) 
    -controlP5.ControllerGroup : Textarea removeProperty(String) 
    -controlP5.ControllerGroup : Textarea removeProperty(String, String) 
    -controlP5.ControllerGroup : Textarea setAddress(String) 
    -controlP5.ControllerGroup : Textarea setArrayValue(float[]) 
    -controlP5.ControllerGroup : Textarea setColor(CColor) 
    -controlP5.ControllerGroup : Textarea setColorActive(int) 
    -controlP5.ControllerGroup : Textarea setColorBackground(int) 
    -controlP5.ControllerGroup : Textarea setColorForeground(int) 
    -controlP5.ControllerGroup : Textarea setColorLabel(int) 
    -controlP5.ControllerGroup : Textarea setColorValue(int) 
    -controlP5.ControllerGroup : Textarea setHeight(int) 
    -controlP5.ControllerGroup : Textarea setId(int) 
    -controlP5.ControllerGroup : Textarea setLabel(String) 
    -controlP5.ControllerGroup : Textarea setMouseOver(boolean) 
    -controlP5.ControllerGroup : Textarea setMoveable(boolean) 
    -controlP5.ControllerGroup : Textarea setOpen(boolean) 
    -controlP5.ControllerGroup : Textarea setPosition(PVector) 
    -controlP5.ControllerGroup : Textarea setPosition(float, float) 
    -controlP5.ControllerGroup : Textarea setStringValue(String) 
    -controlP5.ControllerGroup : Textarea setUpdate(boolean) 
    -controlP5.ControllerGroup : Textarea setValue(float) 
    -controlP5.ControllerGroup : Textarea setVisible(boolean) 
    -controlP5.ControllerGroup : Textarea setWidth(int) 
    -controlP5.ControllerGroup : Textarea show() 
    -controlP5.ControllerGroup : Textarea update() 
    -controlP5.ControllerGroup : Textarea updateAbsolutePosition() 
    -controlP5.ControllerGroup : boolean isCollapse() 
    -controlP5.ControllerGroup : boolean isMouseOver() 
    -controlP5.ControllerGroup : boolean isMoveable() 
    -controlP5.ControllerGroup : boolean isOpen() 
    -controlP5.ControllerGroup : boolean isUpdate() 
    -controlP5.ControllerGroup : boolean isVisible() 
    -controlP5.ControllerGroup : boolean setMousePressed(boolean) 
    -controlP5.ControllerGroup : float getValue() 
    -controlP5.ControllerGroup : float[] getArrayValue() 
    -controlP5.ControllerGroup : int getHeight() 
    -controlP5.ControllerGroup : int getId() 
    -controlP5.ControllerGroup : int getWidth() 
    -controlP5.ControllerGroup : void remove() 
    -java.lang.Object : String toString() 
    -java.lang.Object : boolean equals(Object) 
    -
    -
    -*/
    -
    -
    -
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Textarea

        -
        public Textarea(ControlP5 theControlP5,
        -        java.lang.String theName)
        -
        Convenience constructor to extend Textarea.
        -
        Parameters:
        theControlP5 -
        theName -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      - - - -
        -
      • -

        Textarea

        -
        public Textarea(java.lang.String theText,
        -        int theX,
        -        int theY)
        -
        Parameters:
        theText - String
        theX - int
        theY - int
        -
      • -
      -
    • -
    - - -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Textfield.InputFilter.html b/reference/controlP5/Textfield.InputFilter.html deleted file mode 100644 index dc30182..0000000 --- a/reference/controlP5/Textfield.InputFilter.html +++ /dev/null @@ -1,344 +0,0 @@ - - - - - -Textfield.InputFilter (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Enum Textfield.InputFilter

-
-
- -
- -
-
-
    -
  • - - - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      static Textfield.InputFiltervalueOf(java.lang.String name) -
      Returns the enum constant of this type with the specified name.
      -
      static Textfield.InputFilter[]values() -
      Returns an array containing the constants of this enum type, in -the order they are declared.
      -
      -
        -
      • - - -

        Methods inherited from class java.lang.Enum

        -compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -getClass, notify, notifyAll, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - - - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        valueOf

        -
        public static Textfield.InputFilter valueOf(java.lang.String name)
        -
        Returns the enum constant of this type with the specified name. -The string must match exactly an identifier used to declare an -enum constant in this type. (Extraneous whitespace characters are -not permitted.)
        -
        Parameters:
        name - the name of the enum constant to be returned.
        -
        Returns:
        the enum constant with the specified name
        -
        Throws:
        -
        java.lang.IllegalArgumentException - if this enum type has no constant -with the specified name
        -
        java.lang.NullPointerException - if the argument is null
        -
      • -
      - - - -
        -
      • -

        values

        -
        public static Textfield.InputFilter[] values()
        -
        Returns an array containing the constants of this enum type, in -the order they are declared. This method may be used to iterate -over the constants as follows: -
        -for (Textfield.InputFilter c : Textfield.InputFilter.values())
        -    System.out.println(c);
        -
        -
        Returns:
        an array containing the constants of this enum type, in -the order they are declared
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Textfield.html b/reference/controlP5/Textfield.html deleted file mode 100644 index d045719..0000000 --- a/reference/controlP5/Textfield.html +++ /dev/null @@ -1,1114 +0,0 @@ - - - - - -Textfield (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Textfield

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    CDrawable, ControllerInterface<Textfield>, ControlP5Constants
    -
    -
    -
    -
    public class Textfield
    -extends Controller<Textfield>
    -
    A singleline input textfield, use arrow keys to go back and forth, use backspace to delete - characters. Using the up and down arrows lets you cycle through the history of the textfield. - - This is the best you can get. Font handling, font switching, measuring, left align, right align, - etc. was giving me a big headache. not perfect, i think this is a good compromise.
    -
    -
    +Example
    /**
    -* ControlP5 Textfield
    -*
    -*
    -* find a list of public methods available for the Textfield Controller
    -* at the bottom of this sketch.
    -*
    -* by Andreas Schlegel, 2012
    -* www.sojamo.de/libraries/controlp5
    -*
    -*/
    -
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -String textValue = "";
    -
    -void setup() {
    -  size(700,400);
    -  
    -  PFont font = createFont("arial",20);
    -  
    -  cp5 = new ControlP5(this);
    -  
    -  cp5.addTextfield("input")
    -     .setPosition(20,100)
    -     .setSize(200,40)
    -     .setFont(font)
    -     .setFocus(true)
    -     .setColor(color(255,0,0))
    -     ;
    -                 
    -  cp5.addTextfield("textValue")
    -     .setPosition(20,170)
    -     .setSize(200,40)
    -     .setFont(createFont("arial",20))
    -     .setAutoClear(false)
    -     ;
    -       
    -  cp5.addBang("clear")
    -     .setPosition(240,170)
    -     .setSize(80,40)
    -     .getCaptionLabel().align(ControlP5.CENTER, ControlP5.CENTER)
    -     ;    
    -  
    -  cp5.addTextfield("default")
    -     .setPosition(20,350)
    -     .setAutoClear(false)
    -     ;
    -     
    -  textFont(font);
    -}
    -
    -void draw() {
    -  background(0);
    -  fill(255);
    -  text(cp5.get(Textfield.class,"input").getText(), 360,130);
    -  text(textValue, 360,180);
    -}
    -
    -public void clear() {
    -  cp5.get(Textfield.class,"textValue").clear();
    -}
    -
    -void controlEvent(ControlEvent theEvent) {
    -  if(theEvent.isAssignableFrom(Textfield.class)) {
    -    println("controlEvent: accessing a string from controller '"
    -            +theEvent.getName()+"': "
    -            +theEvent.getStringValue()
    -            );
    -  }
    -}
    -
    -
    -public void input(String theText) {
    -  // automatically receives results from controller input
    -  println("a textfield event for controller 'input' : "+theText);
    -}
    -
    -
    -
    -
    -/*
    -a list of all methods available for the Textfield Controller
    -use ControlP5.printPublicMethodsFor(Textfield.class);
    -to print the following list into the console.
    -
    -You can find further details about class Textfield in the javadoc.
    -
    -Format:
    -ClassName : returnType methodName(parameter type)
    -
    -controlP5.Textfield : String getText() 
    -controlP5.Textfield : Textfield clear() 
    -controlP5.Textfield : Textfield keepFocus(boolean) 
    -controlP5.Textfield : Textfield setAutoClear(boolean) 
    -controlP5.Textfield : Textfield setFocus(boolean) 
    -controlP5.Textfield : Textfield setFont(ControlFont) 
    -controlP5.Textfield : Textfield setFont(PFont) 
    -controlP5.Textfield : Textfield setFont(int) 
    -controlP5.Textfield : Textfield setText(String) 
    -controlP5.Textfield : Textfield setValue(String) 
    -controlP5.Textfield : Textfield setValue(float) 
    -controlP5.Textfield : boolean isAutoClear() 
    -controlP5.Textfield : int getIndex() 
    -controlP5.Textfield : void draw(PApplet) 
    -controlP5.Textfield : void keyEvent(KeyEvent) 
    -controlP5.Textfield : void setInputFilter(int) 
    -controlP5.Textfield : void setPasswordMode(boolean) 
    -controlP5.Controller : CColor getColor() 
    -controlP5.Controller : ControlBehavior getBehavior() 
    -controlP5.Controller : ControlWindow getControlWindow() 
    -controlP5.Controller : ControlWindow getWindow() 
    -controlP5.Controller : ControllerProperty getProperty(String) 
    -controlP5.Controller : ControllerProperty getProperty(String, String) 
    -controlP5.Controller : Label getCaptionLabel() 
    -controlP5.Controller : Label getValueLabel() 
    -controlP5.Controller : List getControllerPlugList() 
    -controlP5.Controller : PImage setImage(PImage) 
    -controlP5.Controller : PImage setImage(PImage, int) 
    -controlP5.Controller : PVector getAbsolutePosition() 
    -controlP5.Controller : PVector getPosition() 
    -controlP5.Controller : String getAddress() 
    -controlP5.Controller : String getInfo() 
    -controlP5.Controller : String getName() 
    -controlP5.Controller : String getStringValue() 
    -controlP5.Controller : String toString() 
    -controlP5.Controller : Tab getTab() 
    -controlP5.Controller : Textfield addCallback(CallbackListener) 
    -controlP5.Controller : Textfield addListener(ControlListener) 
    -controlP5.Controller : Textfield bringToFront() 
    -controlP5.Controller : Textfield bringToFront(ControllerInterface) 
    -controlP5.Controller : Textfield hide() 
    -controlP5.Controller : Textfield linebreak() 
    -controlP5.Controller : Textfield listen(boolean) 
    -controlP5.Controller : Textfield lock() 
    -controlP5.Controller : Textfield plugTo(Object) 
    -controlP5.Controller : Textfield plugTo(Object, String) 
    -controlP5.Controller : Textfield plugTo(Object[]) 
    -controlP5.Controller : Textfield plugTo(Object[], String) 
    -controlP5.Controller : Textfield registerProperty(String) 
    -controlP5.Controller : Textfield registerProperty(String, String) 
    -controlP5.Controller : Textfield registerTooltip(String) 
    -controlP5.Controller : Textfield removeBehavior() 
    -controlP5.Controller : Textfield removeCallback() 
    -controlP5.Controller : Textfield removeCallback(CallbackListener) 
    -controlP5.Controller : Textfield removeListener(ControlListener) 
    -controlP5.Controller : Textfield removeProperty(String) 
    -controlP5.Controller : Textfield removeProperty(String, String) 
    -controlP5.Controller : Textfield setArrayValue(float[]) 
    -controlP5.Controller : Textfield setArrayValue(int, float) 
    -controlP5.Controller : Textfield setBehavior(ControlBehavior) 
    -controlP5.Controller : Textfield setBroadcast(boolean) 
    -controlP5.Controller : Textfield setCaptionLabel(String) 
    -controlP5.Controller : Textfield setColor(CColor) 
    -controlP5.Controller : Textfield setColorActive(int) 
    -controlP5.Controller : Textfield setColorBackground(int) 
    -controlP5.Controller : Textfield setColorCaptionLabel(int) 
    -controlP5.Controller : Textfield setColorForeground(int) 
    -controlP5.Controller : Textfield setColorValueLabel(int) 
    -controlP5.Controller : Textfield setDecimalPrecision(int) 
    -controlP5.Controller : Textfield setDefaultValue(float) 
    -controlP5.Controller : Textfield setHeight(int) 
    -controlP5.Controller : Textfield setId(int) 
    -controlP5.Controller : Textfield setImages(PImage, PImage, PImage) 
    -controlP5.Controller : Textfield setImages(PImage, PImage, PImage, PImage) 
    -controlP5.Controller : Textfield setLabelVisible(boolean) 
    -controlP5.Controller : Textfield setLock(boolean) 
    -controlP5.Controller : Textfield setMax(float) 
    -controlP5.Controller : Textfield setMin(float) 
    -controlP5.Controller : Textfield setMouseOver(boolean) 
    -controlP5.Controller : Textfield setMoveable(boolean) 
    -controlP5.Controller : Textfield setPosition(PVector) 
    -controlP5.Controller : Textfield setPosition(float, float) 
    -controlP5.Controller : Textfield setSize(PImage) 
    -controlP5.Controller : Textfield setSize(int, int) 
    -controlP5.Controller : Textfield setStringValue(String) 
    -controlP5.Controller : Textfield setUpdate(boolean) 
    -controlP5.Controller : Textfield setValueLabel(String) 
    -controlP5.Controller : Textfield setView(ControllerView) 
    -controlP5.Controller : Textfield setVisible(boolean) 
    -controlP5.Controller : Textfield setWidth(int) 
    -controlP5.Controller : Textfield show() 
    -controlP5.Controller : Textfield unlock() 
    -controlP5.Controller : Textfield unplugFrom(Object) 
    -controlP5.Controller : Textfield unplugFrom(Object[]) 
    -controlP5.Controller : Textfield unregisterTooltip() 
    -controlP5.Controller : Textfield update() 
    -controlP5.Controller : Textfield updateSize() 
    -controlP5.Controller : boolean isActive() 
    -controlP5.Controller : boolean isBroadcast() 
    -controlP5.Controller : boolean isInside() 
    -controlP5.Controller : boolean isLabelVisible() 
    -controlP5.Controller : boolean isListening() 
    -controlP5.Controller : boolean isLock() 
    -controlP5.Controller : boolean isMouseOver() 
    -controlP5.Controller : boolean isMousePressed() 
    -controlP5.Controller : boolean isMoveable() 
    -controlP5.Controller : boolean isUpdate() 
    -controlP5.Controller : boolean isVisible() 
    -controlP5.Controller : float getArrayValue(int) 
    -controlP5.Controller : float getDefaultValue() 
    -controlP5.Controller : float getMax() 
    -controlP5.Controller : float getMin() 
    -controlP5.Controller : float getValue() 
    -controlP5.Controller : float[] getArrayValue() 
    -controlP5.Controller : int getDecimalPrecision() 
    -controlP5.Controller : int getHeight() 
    -controlP5.Controller : int getId() 
    -controlP5.Controller : int getWidth() 
    -controlP5.Controller : int listenerSize() 
    -controlP5.Controller : void remove() 
    -controlP5.Controller : void setView(ControllerView, int) 
    -java.lang.Object : String toString() 
    -java.lang.Object : boolean equals(Object) 
    -
    -
    -*/
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Field Detail

      - - - -
        -
      • -

        cursorWidth

        -
        public static int cursorWidth
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Textfield

        -
        public Textfield(ControlP5 theControlP5,
        -         ControllerGroup<?> theParent,
        -         java.lang.String theName,
        -         java.lang.String theDefaultValue,
        -         int theX,
        -         int theY,
        -         int theWidth,
        -         int theHeight)
        -
      • -
      - - - -
        -
      • -

        Textfield

        -
        public Textfield(ControlP5 theControlP5,
        -         java.lang.String theName)
        -
        Convenience constructor to extend Textfield.
        -
        Parameters:
        theControlP5 -
        theName -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - - - - - -
        -
      • -

        draw

        -
        public void draw(processing.core.PGraphics theGraphics)
        -
        Description copied from class: Controller
        -
        the default draw function for each controller extending superclass Controller. This draw - function will take care of default matrix operations and will call the display function of - the current ControllerView object active for this particular controller.
        -
        -
        Specified by:
        -
        draw in interface CDrawable
        -
        Specified by:
        -
        draw in interface ControllerInterface<Textfield>
        -
        Overrides:
        -
        draw in class Controller<Textfield>
        -
        See Also:
        ControllerView
        -
      • -
      - - - -
        -
      • -

        getIndex

        -
        public int getIndex()
        -
      • -
      - - - -
        -
      • -

        getText

        -
        public java.lang.String getText()
        -
      • -
      - - - -
        -
      • -

        getTextList

        -
        public java.lang.String[] getTextList()
        -
      • -
      - - - -
        -
      • -

        isAutoClear

        -
        public boolean isAutoClear()
        -
      • -
      - - - -
        -
      • -

        isFocus

        -
        public boolean isFocus()
        -
        check if the textfield is active and in focus.
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        keepFocus

        -
        public Textfield keepFocus(boolean theValue)
        -
      • -
      - - - - - - - -
        -
      • -

        setAutoClear

        -
        public Textfield setAutoClear(boolean theValue)
        -
      • -
      - - - -
        -
      • -

        setColor

        -
        public Textfield setColor(int theColor)
        -
      • -
      - - - -
        -
      • -

        setColorCursor

        -
        public Textfield setColorCursor(int theColor)
        -
      • -
      - - - -
        -
      • -

        setFocus

        -
        public Textfield setFocus(boolean theValue)
        -
      • -
      - - - - - - - -
        -
      • -

        setFont

        -
        public Textfield setFont(int theFont)
        -
      • -
      - - - -
        -
      • -

        setFont

        -
        public Textfield setFont(processing.core.PFont thePFont)
        -
      • -
      - - - - - - - -
        -
      • -

        setInputFilter

        -
        public Textfield setInputFilter(int theInputType)
        -
      • -
      - - - -
        -
      • -

        setPasswordMode

        -
        public Textfield setPasswordMode(boolean theFlag)
        -
      • -
      - - - -
        -
      • -

        setText

        -
        public Textfield setText(java.lang.String theText)
        -
      • -
      - - - - - - - -
        -
      • -

        setValue

        -
        public Textfield setValue(java.lang.String theText)
        -
      • -
      - - - - - - - -
        -
      • -

        submit

        -
        public Textfield submit()
        -
        make the controller execute a return event. submit the current content of the texfield.
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Textlabel.html b/reference/controlP5/Textlabel.html deleted file mode 100644 index 89e4972..0000000 --- a/reference/controlP5/Textlabel.html +++ /dev/null @@ -1,948 +0,0 @@ - - - - - -Textlabel (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Textlabel

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    CDrawable, ControllerInterface<Textlabel>, ControlP5Constants
    -
    -
    -
    Direct Known Subclasses:
    -
    FrameRate
    -
    -
    -
    -
    public class Textlabel
    -extends Controller<Textlabel>
    -
    -
    +Example
    /**
    -* ControlP5 Textlabel
    -*
    -*
    -* find a list of public methods available for the Textlabel Controller
    -* at the bottom of this sketch.
    -*
    -* by Andreas Schlegel, 2012
    -* www.sojamo.de/libraries/controlp5
    -*
    -*/
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -Textlabel myTextlabelA;
    -Textlabel myTextlabelB;
    -
    -void setup() {
    -  size(700,400);
    -  cp5 = new ControlP5(this);
    -
    -  myTextlabelA = cp5.addTextlabel("label")
    -                    .setText("A single ControlP5 textlabel, in yellow.")
    -                    .setPosition(100,50)
    -                    .setColorValue(0xffffff00)
    -                    .setFont(createFont("Georgia",20))
    -                    ;
    -
    -  myTextlabelB = new Textlabel(cp5,"Another textlabel, not created through ControlP5 needs to be rendered separately by calling Textlabel.draw(PApplet).",100,100,400,200);
    -
    -}
    -
    -
    -
    -void draw() {
    -  background(0);
    -  myTextlabelB.draw(this); 
    -}
    -
    -
    -
    -/*
    -a list of all methods available for the Textlabel Controller
    -use ControlP5.printPublicMethodsFor(Textlabel.class);
    -to print the following list into the console.
    -
    -You can find further details about class Textlabel in the javadoc.
    -
    -Format:
    -ClassName : returnType methodName(parameter type)
    -
    -controlP5.Textlabel : Label get() 
    -controlP5.Textlabel : Textlabel setColor(int) 
    -controlP5.Textlabel : Textlabel setFont(ControlFont) 
    -controlP5.Textlabel : Textlabel setFont(PFont) 
    -controlP5.Textlabel : Textlabel setFont(int) 
    -controlP5.Textlabel : Textlabel setHeight(int) 
    -controlP5.Textlabel : Textlabel setLetterSpacing(int) 
    -controlP5.Textlabel : Textlabel setMultiline(boolean) 
    -controlP5.Textlabel : Textlabel setStringValue(String) 
    -controlP5.Textlabel : Textlabel setText(String) 
    -controlP5.Textlabel : Textlabel setValue(String) 
    -controlP5.Textlabel : Textlabel setValue(float) 
    -controlP5.Textlabel : Textlabel setWidth(int) 
    -controlP5.Textlabel : void draw() 
    -controlP5.Textlabel : void draw(PApplet) 
    -controlP5.Textlabel : void draw(int, int) 
    -controlP5.Controller : CColor getColor() 
    -controlP5.Controller : ControlBehavior getBehavior() 
    -controlP5.Controller : ControlWindow getControlWindow() 
    -controlP5.Controller : ControlWindow getWindow() 
    -controlP5.Controller : ControllerProperty getProperty(String) 
    -controlP5.Controller : ControllerProperty getProperty(String, String) 
    -controlP5.Controller : Label getCaptionLabel() 
    -controlP5.Controller : Label getValueLabel() 
    -controlP5.Controller : List getControllerPlugList() 
    -controlP5.Controller : PImage setImage(PImage) 
    -controlP5.Controller : PImage setImage(PImage, int) 
    -controlP5.Controller : PVector getAbsolutePosition() 
    -controlP5.Controller : PVector getPosition() 
    -controlP5.Controller : String getAddress() 
    -controlP5.Controller : String getInfo() 
    -controlP5.Controller : String getName() 
    -controlP5.Controller : String getStringValue() 
    -controlP5.Controller : String toString() 
    -controlP5.Controller : Tab getTab() 
    -controlP5.Controller : Textlabel addCallback(CallbackListener) 
    -controlP5.Controller : Textlabel addListener(ControlListener) 
    -controlP5.Controller : Textlabel bringToFront() 
    -controlP5.Controller : Textlabel bringToFront(ControllerInterface) 
    -controlP5.Controller : Textlabel hide() 
    -controlP5.Controller : Textlabel linebreak() 
    -controlP5.Controller : Textlabel listen(boolean) 
    -controlP5.Controller : Textlabel lock() 
    -controlP5.Controller : Textlabel plugTo(Object) 
    -controlP5.Controller : Textlabel plugTo(Object, String) 
    -controlP5.Controller : Textlabel plugTo(Object[]) 
    -controlP5.Controller : Textlabel plugTo(Object[], String) 
    -controlP5.Controller : Textlabel registerProperty(String) 
    -controlP5.Controller : Textlabel registerProperty(String, String) 
    -controlP5.Controller : Textlabel registerTooltip(String) 
    -controlP5.Controller : Textlabel removeBehavior() 
    -controlP5.Controller : Textlabel removeCallback() 
    -controlP5.Controller : Textlabel removeCallback(CallbackListener) 
    -controlP5.Controller : Textlabel removeListener(ControlListener) 
    -controlP5.Controller : Textlabel removeProperty(String) 
    -controlP5.Controller : Textlabel removeProperty(String, String) 
    -controlP5.Controller : Textlabel setArrayValue(float[]) 
    -controlP5.Controller : Textlabel setArrayValue(int, float) 
    -controlP5.Controller : Textlabel setBehavior(ControlBehavior) 
    -controlP5.Controller : Textlabel setBroadcast(boolean) 
    -controlP5.Controller : Textlabel setCaptionLabel(String) 
    -controlP5.Controller : Textlabel setColor(CColor) 
    -controlP5.Controller : Textlabel setColorActive(int) 
    -controlP5.Controller : Textlabel setColorBackground(int) 
    -controlP5.Controller : Textlabel setColorCaptionLabel(int) 
    -controlP5.Controller : Textlabel setColorForeground(int) 
    -controlP5.Controller : Textlabel setColorValueLabel(int) 
    -controlP5.Controller : Textlabel setDecimalPrecision(int) 
    -controlP5.Controller : Textlabel setDefaultValue(float) 
    -controlP5.Controller : Textlabel setHeight(int) 
    -controlP5.Controller : Textlabel setId(int) 
    -controlP5.Controller : Textlabel setImages(PImage, PImage, PImage) 
    -controlP5.Controller : Textlabel setImages(PImage, PImage, PImage, PImage) 
    -controlP5.Controller : Textlabel setLabelVisible(boolean) 
    -controlP5.Controller : Textlabel setLock(boolean) 
    -controlP5.Controller : Textlabel setMax(float) 
    -controlP5.Controller : Textlabel setMin(float) 
    -controlP5.Controller : Textlabel setMouseOver(boolean) 
    -controlP5.Controller : Textlabel setMoveable(boolean) 
    -controlP5.Controller : Textlabel setPosition(PVector) 
    -controlP5.Controller : Textlabel setPosition(float, float) 
    -controlP5.Controller : Textlabel setSize(PImage) 
    -controlP5.Controller : Textlabel setSize(int, int) 
    -controlP5.Controller : Textlabel setStringValue(String) 
    -controlP5.Controller : Textlabel setUpdate(boolean) 
    -controlP5.Controller : Textlabel setValueLabel(String) 
    -controlP5.Controller : Textlabel setView(ControllerView) 
    -controlP5.Controller : Textlabel setVisible(boolean) 
    -controlP5.Controller : Textlabel setWidth(int) 
    -controlP5.Controller : Textlabel show() 
    -controlP5.Controller : Textlabel unlock() 
    -controlP5.Controller : Textlabel unplugFrom(Object) 
    -controlP5.Controller : Textlabel unplugFrom(Object[]) 
    -controlP5.Controller : Textlabel unregisterTooltip() 
    -controlP5.Controller : Textlabel update() 
    -controlP5.Controller : Textlabel updateSize() 
    -controlP5.Controller : boolean isActive() 
    -controlP5.Controller : boolean isBroadcast() 
    -controlP5.Controller : boolean isInside() 
    -controlP5.Controller : boolean isLabelVisible() 
    -controlP5.Controller : boolean isListening() 
    -controlP5.Controller : boolean isLock() 
    -controlP5.Controller : boolean isMouseOver() 
    -controlP5.Controller : boolean isMousePressed() 
    -controlP5.Controller : boolean isMoveable() 
    -controlP5.Controller : boolean isUpdate() 
    -controlP5.Controller : boolean isVisible() 
    -controlP5.Controller : float getArrayValue(int) 
    -controlP5.Controller : float getDefaultValue() 
    -controlP5.Controller : float getMax() 
    -controlP5.Controller : float getMin() 
    -controlP5.Controller : float getValue() 
    -controlP5.Controller : float[] getArrayValue() 
    -controlP5.Controller : int getDecimalPrecision() 
    -controlP5.Controller : int getHeight() 
    -controlP5.Controller : int getId() 
    -controlP5.Controller : int getWidth() 
    -controlP5.Controller : int listenerSize() 
    -controlP5.Controller : void remove() 
    -controlP5.Controller : void setView(ControllerView, int) 
    -java.lang.Object : String toString() 
    -java.lang.Object : boolean equals(Object) 
    -
    -
    -*/
    -
    -
    -
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Textlabel

        -
        public Textlabel(ControlP5 theControlP5,
        -         java.lang.String theValue,
        -         int theX,
        -         int theY)
        -
      • -
      - - - -
        -
      • -

        Textlabel

        -
        public Textlabel(ControlP5 theControlP5,
        -         java.lang.String theValue,
        -         int theX,
        -         int theY,
        -         int theW,
        -         int theH)
        -
      • -
      - - - -
        -
      • -

        Textlabel

        -
        @Deprecated
        -public Textlabel(ControlP5 theControlP5,
        -                    java.lang.String theValue,
        -                    int theX,
        -                    int theY,
        -                    int theW,
        -                    int theH,
        -                    int theColor,
        -                    int theFont)
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        Textlabel

        -
        @Deprecated
        -public Textlabel(processing.core.PApplet theComponent,
        -                    java.lang.String theValue,
        -                    int theX,
        -                    int theY)
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        Textlabel

        -
        @Deprecated
        -public Textlabel(processing.core.PApplet theComponent,
        -                    java.lang.String theValue,
        -                    int theX,
        -                    int theY,
        -                    int theW,
        -                    int theH)
        -
        Deprecated. 
        -
      • -
      - - - -
        -
      • -

        Textlabel

        -
        @Deprecated
        -public Textlabel(processing.core.PApplet theComponent,
        -                    java.lang.String theValue,
        -                    int theX,
        -                    int theY,
        -                    int theW,
        -                    int theH,
        -                    int theColor,
        -                    int theFont)
        -
        Deprecated. 
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        append

        -
        public Textlabel append(java.lang.String theText,
        -               int max)
        -
      • -
      - - - -
        -
      • -

        draw

        -
        public void draw()
        -
      • -
      - - - -
        -
      • -

        draw

        -
        public void draw(int theX,
        -        int theY)
        -
      • -
      - - - -
        -
      • -

        draw

        -
        public void draw(processing.core.PApplet theApplet)
        -
      • -
      - - - -
        -
      • -

        draw

        -
        public void draw(processing.core.PGraphics theGraphics)
        -
        Description copied from class: Controller
        -
        the default draw function for each controller extending superclass Controller. This draw - function will take care of default matrix operations and will call the display function of - the current ControllerView object active for this particular controller.
        -
        -
        Specified by:
        -
        draw in interface CDrawable
        -
        Specified by:
        -
        draw in interface ControllerInterface<Textlabel>
        -
        Overrides:
        -
        draw in class Controller<Textlabel>
        -
        See Also:
        ControllerView
        -
      • -
      - - - -
        -
      • -

        get

        -
        public Label get()
        -
      • -
      - - - -
        -
      • -

        getLineHeight

        -
        public int getLineHeight()
        -
      • -
      - - - -
        -
      • -

        setColor

        -
        public Textlabel setColor(int theColor)
        -
      • -
      - - - - - - - -
        -
      • -

        setFont

        -
        @Deprecated
        -public Textlabel setFont(int theFont)
        -
        Deprecated. 
        -
        a textlabel is an image containing text rendered from a bitfont source image. available bit - fonts are: standard56, standard58, synt24, grixel. the font of a textlabel can be changed by - using setFont(int theFontIndex) theFontIndex is of type int and available indexes are stored - in the constants ControlP5.standard56, ControlP5.standard58, ControlP5.synt24, - ControlP5.grixel available characters for each pixelfont range from ascii code 32-126
        -
        Parameters:
        theFont - int
        -
      • -
      - - - -
        -
      • -

        setFont

        -
        public Textlabel setFont(processing.core.PFont thePFont)
        -
      • -
      - - - - - - - -
        -
      • -

        setLetterSpacing

        -
        public Textlabel setLetterSpacing(int theValue)
        -
        set the letter spacing of the font.
        -
        Parameters:
        theValue - int
        -
        Returns:
        Textlabel
        -
      • -
      - - - -
        -
      • -

        setLineHeight

        -
        public Textlabel setLineHeight(int theValue)
        -
      • -
      - - - -
        -
      • -

        setMultiline

        -
        public Textlabel setMultiline(boolean theFlag)
        -
      • -
      - - - - - - - -
        -
      • -

        setText

        -
        public Textlabel setText(java.lang.String theText)
        -
      • -
      - - - - - - - -
        -
      • -

        setValue

        -
        public Textlabel setValue(java.lang.String theText)
        -
        set the text of the textlabel.
        -
        Parameters:
        theText - String
        -
      • -
      - - - - - - - - -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/TickMark.html b/reference/controlP5/TickMark.html deleted file mode 100644 index 6c81a3d..0000000 --- a/reference/controlP5/TickMark.html +++ /dev/null @@ -1,315 +0,0 @@ - - - - - -TickMark (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class TickMark

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    CDrawable
    -
    -
    -
    -
    public class TickMark
    -extends java.lang.Object
    -implements CDrawable
    -
    Tickmarks are used by the Slider and Knob controller.
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - -
      Constructors 
      Constructor and Description
      TickMark(Controller<?> theController) 
      -
    • -
    - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      voiddraw(processing.core.PGraphics theGraphics) 
      voiddraw(processing.core.PGraphics theGraphics, - int theDirection) 
      LabelgetLabel() 
      LabelsetLabel(java.lang.String theLabeltext) 
      voidsetLength(int theLength) 
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        TickMark

        -
        public TickMark(Controller<?> theController)
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        draw

        -
        public void draw(processing.core.PGraphics theGraphics)
        -
        -
        Specified by:
        -
        draw in interface CDrawable
        -
        -
      • -
      - - - -
        -
      • -

        draw

        -
        public void draw(processing.core.PGraphics theGraphics,
        -        int theDirection)
        -
      • -
      - - - -
        -
      • -

        getLabel

        -
        public Label getLabel()
        -
      • -
      - - - -
        -
      • -

        setLabel

        -
        public Label setLabel(java.lang.String theLabeltext)
        -
      • -
      - - - -
        -
      • -

        setLength

        -
        public void setLength(int theLength)
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Toggle.html b/reference/controlP5/Toggle.html deleted file mode 100644 index 06f73f6..0000000 --- a/reference/controlP5/Toggle.html +++ /dev/null @@ -1,970 +0,0 @@ - - - - - -Toggle (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Toggle

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    CDrawable, ControllerInterface<Toggle>, ControlP5Constants
    -
    -
    -
    -
    public class Toggle
    -extends Controller<Toggle>
    -
    a toggle can have two states, true and false, where true has the value 1 and false is 0.
    -
    -
    +Example
    -/**
    -* ControlP5 Toggle
    -*
    -*
    -* find a list of public methods available for the Toggle Controller
    -* at the bottom of this sketch.
    -*
    -* by Andreas Schlegel, 2011
    -* www.sojamo.de/libraries/controlp5
    -*
    -*/
    -
    -
    -import controlP5.*;
    -
    -ControlP5 cp5;
    -
    -int col = color(255);
    -
    -boolean toggleValue = false;
    -
    -void setup() {
    -  size(400,400);
    -  smooth();
    -  cp5 = new ControlP5(this);
    -  
    -  // create a toggle
    -  cp5.addToggle("toggleValue")
    -     .setPosition(40,100)
    -     .setSize(50,20)
    -     ;
    -  
    -  // create a toggle and change the default look to a (on/off) switch look
    -  cp5.addToggle("toggle")
    -     .setPosition(40,250)
    -     .setSize(50,20)
    -     .setValue(true)
    -     .setMode(ControlP5.SWITCH)
    -     ;
    -     
    -}
    -  
    -
    -void draw() {
    -  background(0);
    -  
    -  pushMatrix();
    -  
    -  if(toggleValue==true) {
    -    fill(255,255,220);
    -  } else {
    -    fill(128,128,110);
    -  }
    -  translate(280,100);
    -  ellipse(0,0,100,100);
    -  
    -  
    -  translate(0,150);
    -  fill(col);
    -  ellipse(0,0,40,40);
    -  
    -  popMatrix();
    -}
    -
    -
    -
    -void toggle(boolean theFlag) {
    -  if(theFlag==true) {
    -    col = color(255);
    -  } else {
    -    col = color(100);
    -  }
    -  println("a toggle event.");
    -}
    -
    -
    -
    -
    -
    -
    -/*
    -a list of all methods available for the Toggle Controller
    -use ControlP5.printPublicMethodsFor(Toggle.class);
    -to print the following list into the console.
    -
    -You can find further details about class Toggle in the javadoc.
    -
    -Format:
    -ClassName : returnType methodName(parameter type)
    -
    -
    -controlP5.Toggle : Toggle setMode(int) 
    -controlP5.Toggle : Toggle setState(boolean) 
    -controlP5.Toggle : Toggle setValue(boolean) 
    -controlP5.Toggle : Toggle setValue(float) 
    -controlP5.Toggle : Toggle toggle() 
    -controlP5.Toggle : Toggle update() 
    -controlP5.Toggle : boolean getState() 
    -controlP5.Controller : CColor getColor() 
    -controlP5.Controller : ControlBehavior getBehavior() 
    -controlP5.Controller : ControlWindow getControlWindow() 
    -controlP5.Controller : ControlWindow getWindow() 
    -controlP5.Controller : Controller addCallback(CallbackListener) 
    -controlP5.Controller : Controller addListener(ControlListener) 
    -controlP5.Controller : Controller hide() 
    -controlP5.Controller : Controller linebreak() 
    -controlP5.Controller : Controller listen(boolean) 
    -controlP5.Controller : Controller lock() 
    -controlP5.Controller : Controller plugTo(Object) 
    -controlP5.Controller : Controller plugTo(Object, String) 
    -controlP5.Controller : Controller plugTo(Object[]) 
    -controlP5.Controller : Controller plugTo(Object[], String) 
    -controlP5.Controller : Controller registerProperty(String) 
    -controlP5.Controller : Controller registerProperty(String, String) 
    -controlP5.Controller : Controller registerTooltip(String) 
    -controlP5.Controller : Controller removeBehavior() 
    -controlP5.Controller : Controller removeCallback() 
    -controlP5.Controller : Controller removeCallback(CallbackListener) 
    -controlP5.Controller : Controller removeListener(ControlListener) 
    -controlP5.Controller : Controller removeProperty(String) 
    -controlP5.Controller : Controller removeProperty(String, String) 
    -controlP5.Controller : Controller setArrayValue(float[]) 
    -controlP5.Controller : Controller setArrayValue(int, float) 
    -controlP5.Controller : Controller setBehavior(ControlBehavior) 
    -controlP5.Controller : Controller setBroadcast(boolean) 
    -controlP5.Controller : Controller setCaptionLabel(String) 
    -controlP5.Controller : Controller setColor(CColor) 
    -controlP5.Controller : Controller setColorActive(int) 
    -controlP5.Controller : Controller setColorBackground(int) 
    -controlP5.Controller : Controller setColorCaptionLabel(int) 
    -controlP5.Controller : Controller setColorForeground(int) 
    -controlP5.Controller : Controller setColorValueLabel(int) 
    -controlP5.Controller : Controller setDecimalPrecision(int) 
    -controlP5.Controller : Controller setDefaultValue(float) 
    -controlP5.Controller : Controller setDisplay(ControllerDisplay) 
    -controlP5.Controller : Controller setHeight(int) 
    -controlP5.Controller : Controller setId(int) 
    -controlP5.Controller : Controller setImages(PImage, PImage, PImage) 
    -controlP5.Controller : Controller setImages(PImage, PImage, PImage, PImage) 
    -controlP5.Controller : Controller setLabelVisible(boolean) 
    -controlP5.Controller : Controller setLock(boolean) 
    -controlP5.Controller : Controller setMax(float) 
    -controlP5.Controller : Controller setMin(float) 
    -controlP5.Controller : Controller setMoveable(boolean) 
    -controlP5.Controller : Controller setPosition(PVector) 
    -controlP5.Controller : Controller setPosition(float, float) 
    -controlP5.Controller : Controller setSize(PImage) 
    -controlP5.Controller : Controller setSize(int, int) 
    -controlP5.Controller : Controller setStringValue(String) 
    -controlP5.Controller : Controller setUpdate(boolean) 
    -controlP5.Controller : Controller setValueLabel(String) 
    -controlP5.Controller : Controller setVisible(boolean) 
    -controlP5.Controller : Controller setWidth(int) 
    -controlP5.Controller : Controller show() 
    -controlP5.Controller : Controller unlock() 
    -controlP5.Controller : Controller unplugFrom(Object) 
    -controlP5.Controller : Controller unplugFrom(Object[]) 
    -controlP5.Controller : Controller unregisterTooltip() 
    -controlP5.Controller : Controller update() 
    -controlP5.Controller : Controller updateSize() 
    -controlP5.Controller : ControllerProperty getProperty(String) 
    -controlP5.Controller : ControllerProperty getProperty(String, String) 
    -controlP5.Controller : Label getCaptionLabel() 
    -controlP5.Controller : Label getValueLabel() 
    -controlP5.Controller : List getControllerPlugList() 
    -controlP5.Controller : PImage setImage(PImage) 
    -controlP5.Controller : PImage setImage(PImage, int) 
    -controlP5.Controller : PVector getAbsolutePosition() 
    -controlP5.Controller : PVector getPosition() 
    -controlP5.Controller : String getAddress() 
    -controlP5.Controller : String getInfo() 
    -controlP5.Controller : String getLabel() 
    -controlP5.Controller : String getName() 
    -controlP5.Controller : String getStringValue() 
    -controlP5.Controller : String toString() 
    -controlP5.Controller : Tab getTab() 
    -controlP5.Controller : boolean isActive() 
    -controlP5.Controller : boolean isBroadcast() 
    -controlP5.Controller : boolean isInside() 
    -controlP5.Controller : boolean isListening() 
    -controlP5.Controller : boolean isLock() 
    -controlP5.Controller : boolean isMouseOver() 
    -controlP5.Controller : boolean isMousePressed() 
    -controlP5.Controller : boolean isMoveable() 
    -controlP5.Controller : boolean isUpdate() 
    -controlP5.Controller : boolean isVisible() 
    -controlP5.Controller : float getArrayValue(int) 
    -controlP5.Controller : float getDefaultValue() 
    -controlP5.Controller : float getMax() 
    -controlP5.Controller : float getMin() 
    -controlP5.Controller : float getValue() 
    -controlP5.Controller : float[] getArrayValue() 
    -controlP5.Controller : int getHeight() 
    -controlP5.Controller : int getId() 
    -controlP5.Controller : int getWidth() 
    -controlP5.Controller : int listenerSize() 
    -controlP5.Controller : void remove() 
    -controlP5.Controller : void setDisplay(ControllerDisplay, int) 
    -java.lang.Object : String toString() 
    -java.lang.Object : boolean equals(Object) 
    -
    -
    -*/
    -
    -
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Field Detail

      - - - -
        -
      • -

        autoHeight

        -
        public static int autoHeight
        -
      • -
      - - - -
        -
      • -

        autoWidth

        -
        public static int autoWidth
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Toggle

        -
        public Toggle(ControlP5 theControlP5,
        -      java.lang.String theName)
        -
        Convenience constructor to extend Toggle.
        -
        Parameters:
        theControlP5 -
        theName -
        -
        +Example
        /**
        - * ControlP5 extending Controllers
        - *
        - * the following example shows how to extend the Controller class to 
        - * create customizable Controllers. You can either extend the Controller class itself,
        - * or any class that extends Controller itself like the Slider, Button, DropdownList, etc. 
        - * 
        - * How to:
        - *
        - * 1) do a super call to the convenience constructor requiring 
        - * 2 parameter (ControlP5 instance, name)  
        - *
        - * 2) the Controller class has a set of empty methods that allow you to capture
        - * inputs from the mouse including 
        - * onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
        - * These you can override and include functionality as needed.
        - *
        - * 3) use method getPointer() to return the local (relative) 
        - * xy-coordinates of the controller
        - *  
        - * 4) after instantiation custom controllers are treated the same 
        - * as default controlP5 controllers.
        - *  
        - * by Andreas Schlegel, 2012
        - * www.sojamo.de/libraries/controlp5
        - *
        - */
        -
        -import controlP5.*;
        -
        -ControlP5 cp5;
        -PApplet p;
        -
        -void setup() {
        -  size(400, 400);
        -  cp5 = new ControlP5(this);
        -  
        -  // create 2 groups to show nesting of custom controllers and
        -  //   
        -  Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
        -  Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
        -  g2.moveTo(g1);
        -  
        -  // create 2 custom Controllers from class MyButton
        -  // MyButton extends Controller and inherits all methods accordingly.
        -  new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
        -  new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
        -  
        -}
        -
        -
        -void draw() {
        -  background(0);
        -}
        -
        -// b1 will be called from Controller b1
        -public void b1(float theValue) {
        -  println("yay button "+theValue);
        -}
        -
        -public void controlEvent(ControlEvent theEvent) {
        -  println("controlEvent : "+theEvent);
        -}
        -
        -
        -// Create a custom Controller, please not that 
        -// MyButton extends Controller, 
        -// is an indicator for the super class about the type of 
        -// custom controller to be created.
        -
        -class MyButton extends Controller {
        -
        -  int current = 0xffff0000;
        -
        -  float a = 128;
        -  
        -  float na;
        -  
        -  int y;
        -  
        -  // use the convenience constructor of super class Controller
        -  // MyButton will automatically registered and move to the 
        -  // default controlP5 tab.
        -  
        -  MyButton(ControlP5 cp5, String theName) {
        -    super(cp5, theName);
        -    
        -    // replace the default view with a custom view.
        -    setView(new ControllerView() {
        -      public void display(PApplet p, Object b) {
        -        // draw button background
        -        na += (a-na) * 0.1; 
        -        p.fill(current,na);
        -        p.rect(0, 0, getWidth(), getHeight());
        -        
        -        // draw horizontal line which can be moved on the x-axis 
        -        // using the scroll wheel. 
        -        p.fill(0,255,0);
        -        p.rect(0,y,width,10);
        -        
        -        // draw the custom label 
        -        p.fill(128);
        -        translate(0,getHeight()+14);
        -        p.text(getName(),0,0);
        -        p.text(getName(),0,0);
        -        
        -      }
        -    }
        -    );
        -  }
        -
        -  // override various input methods for mouse input control
        -  void onEnter() {
        -    cursor(HAND);
        -    println("enter");
        -    a = 255;
        -  }
        -  
        -  void onScroll(int n) {
        -    println("scrolling");
        -    y -= n;
        -    y = constrain(y,0,getHeight()-10);
        -  }
        -  
        -  void onPress() {
        -    println("press");
        -    current = 0xffffff00;
        -  }
        -  
        -  void onClick() {
        -    Pointer p1 = getPointer();
        -    println("clicked at "+p1.x()+", "+p1.y());
        -    current = 0xffffff00;
        -    setValue(y);
        -  }
        -
        -  void onRelease() {
        -    println("release");
        -    current = 0xffffffff;
        -  }
        -  
        -  void onMove() {
        -    println("moving "+this+" "+_myControlWindow.getMouseOverList());
        -  }
        -
        -  void onDrag() {
        -    current = 0xff0000ff;
        -    Pointer p1 = getPointer();
        -    float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
        -    println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
        -  }
        -  
        -  void onReleaseOutside() {
        -    onLeave();
        -  }
        -
        -  void onLeave() {
        -    println("leave");
        -    cursor(ARROW);
        -    a = 128;
        -  }
        -}
        -
        -
        -
      • -
      - - - -
        -
      • -

        Toggle

        -
        public Toggle(ControlP5 theControlP5,
        -      Tab theParent,
        -      java.lang.String theName,
        -      float theValue,
        -      float theX,
        -      float theY,
        -      int theWidth,
        -      int theHeight)
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        draw

        -
        public void draw(processing.core.PGraphics theGraphics)
        -
        Description copied from class: Controller
        -
        the default draw function for each controller extending superclass Controller. This draw - function will take care of default matrix operations and will call the display function of - the current ControllerView object active for this particular controller.
        -
        -
        Specified by:
        -
        draw in interface CDrawable
        -
        Specified by:
        -
        draw in interface ControllerInterface<Toggle>
        -
        Overrides:
        -
        draw in class Controller<Toggle>
        -
        Parameters:
        theApplet - PApplet
        See Also:
        ControllerView
        -
      • -
      - - - -
        -
      • -

        getState

        -
        public boolean getState()
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        internalValue

        -
        public float internalValue()
        -
      • -
      - - - - - - - -
        -
      • -

        mousePressed

        -
        public void mousePressed()
        -
      • -
      - - - - - - - -
        -
      • -

        setInternalValue

        -
        public void setInternalValue(float theInternalValue)
        -
        by default a toggle returns 0 (for off) and 1 (for on). the internal value variable can be - used to store an additional value for a toggle event.
        -
        Parameters:
        theInternalValue -
        -
      • -
      - - - -
        -
      • -

        setMode

        -
        public Toggle setMode(int theMode)
        -
        set the visual mode of a Toggle. use setMode(ControlP5.DEFAULT) or setMode(ControlP5.SWITCH)
        -
        Parameters:
        theMode -
        -
      • -
      - - - -
        -
      • -

        setState

        -
        public Toggle setState(boolean theFlag)
        -
        sets the state of the toggle, this can be true or false.
        -
        Parameters:
        theFlag - boolean
        -
      • -
      - - - -
        -
      • -

        setValue

        -
        public Toggle setValue(boolean theValue)
        -
        Parameters:
        theValue -
        -
      • -
      - - - - - - - -
        -
      • -

        toggle

        -
        public Toggle toggle()
        -
        switch the state of a toggle.
        -
      • -
      - - - - - - - -
        -
      • -

        updateDisplayMode

        -
        public Toggle updateDisplayMode(int theState)
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/Tooltip.html b/reference/controlP5/Tooltip.html deleted file mode 100644 index 701f954..0000000 --- a/reference/controlP5/Tooltip.html +++ /dev/null @@ -1,684 +0,0 @@ - - - - - -Tooltip (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - - -
-
controlP5
-

Class Tooltip

-
-
- -
-
    -
  • -
    -
    -
    public class Tooltip
    -extends java.lang.Object
    -
    A tooltip can be registered for individual controllers - and is activated on rollover.
    -
    -
    +Example
      /**
    -* ControlP5 Tooltip
    -*
    -* add a tooltip to a controller.
    -* hover your mouse on top of a slider in the example and wait 
    -* for 1 second for the tooltip to appear.
    -*
    -* find a list of public methods available for the Tooltip Controller
    -* at the bottom of this sketch.
    -*
    -* NOTE: currently does not work for custom PGraphics context
    -*
    -* by Andreas Schlegel, 2011
    -* www.sojamo.de/libraries/controlp5
    -*
    -*/
    -
    -import controlP5.*;
    -
    -
    -ControlP5 cp5;
    -
    -float s1 = 20, s2 = 100;
    -
    -void setup() {
    -  size(700,400);
    -  smooth();
    -  noStroke();
    -  cp5 = new ControlP5(this);
    -  cp5.begin(100,100);
    -  cp5.addSlider("s1",10,200).linebreak();
    -  cp5.addSlider("s2",0,150);
    -  cp5.end();
    -  
    -  cp5.getTooltip().setDelay(500);
    -  cp5.getTooltip().register("s1","Changes the size of the ellipse.");
    -  cp5.getTooltip().register("s2","Changes the Background");
    -
    -}
    -
    -
    -void keyPressed() {
    -  println("unregistering the tooltip for s2");
    -  cp5.getTooltip().unregister("s2");
    -}
    -void draw() {
    -  background(s2);
    -  fill(255,100);
    -  ellipse(width/2, height/2, s1,s1);
    -}
    -
    -
    -
    -/*
    -a list of all methods available for the Tooltip Controller
    -use ControlP5.printPublicMethodsFor(Tooltip.class);
    -to print the following list into the console.
    -
    -You can find further details about class Tooltip in the javadoc.
    -
    -Format:
    -ClassName : returnType methodName(parameter type)
    -
    -
    -controlP5.Tooltip : Label getLabel() 
    -controlP5.Tooltip : Tooltip disable() 
    -controlP5.Tooltip : Tooltip enable() 
    -controlP5.Tooltip : Tooltip register(Controller, String) 
    -controlP5.Tooltip : Tooltip register(String, String) 
    -controlP5.Tooltip : Tooltip setAlpha(int) 
    -controlP5.Tooltip : Tooltip setBorder(int) 
    -controlP5.Tooltip : Tooltip setColorBackground(int) 
    -controlP5.Tooltip : Tooltip setColorLabel(int) 
    -controlP5.Tooltip : Tooltip setDelay(long) 
    -controlP5.Tooltip : Tooltip setDisplay(ControllerDisplay) 
    -controlP5.Tooltip : Tooltip setHeight(int) 
    -controlP5.Tooltip : Tooltip setLabel(Label) 
    -controlP5.Tooltip : Tooltip setPositionOffset(float, float) 
    -controlP5.Tooltip : Tooltip setWidth(int) 
    -controlP5.Tooltip : Tooltip unregister(Controller) 
    -controlP5.Tooltip : Tooltip unregister(String) 
    -controlP5.Tooltip : boolean isEnabled() 
    -controlP5.Tooltip : int getBorder() 
    -java.lang.Object : String toString() 
    -java.lang.Object : boolean equals(Object) 
    -
    -*/
    -
    -
    -
    -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      Tooltipdisable() -
      disables the Tooltip on a global level, when - disabled, tooltip will not respond to any registered - controller.
      -
      Tooltipenable() -
      in case the tooltip is disabled, use enable() to turn - the tooltip back on.
      -
      intgetBorder() -
      returns the value of the border
      -
      LabelgetLabel() -
      returns the current Label
      -
      intgetWidth() 
      booleanisEnabled() -
      check if the tooltip is enabled or disabled
      -
      Tooltipregister(Controller<?> theController, - java.lang.String theText) -
      registers a controller with the Tooltip, when - activating the tooltip for a particular controller, - the registered text (second parameter) will be - displayed.
      -
      Tooltipregister(java.lang.String theControllerName, - java.lang.String theText) 
      TooltipsetAlpha(int theValue) -
      sets the transparency of the default background, - default value is 200
      -
      TooltipsetBorder(int theValue) -
      sets the border of the tooltip, the default border is - 4px.
      -
      TooltipsetColorBackground(int theColor) -
      sets the background color of the tooltip, the default - color is a dark grey
      -
      TooltipsetColorLabel(int theColor) -
      sets the text color of the tooltip's label, the - default color is a white
      -
      TooltipsetDelay(long theMillis) -
      A tooltip is activated when entered by the mouse, - after a given delay time the Tooltip starts to fade - in.
      -
      TooltipsetHeight(int theHeight) 
      TooltipsetLabel(Label theLabel) -
      sets the Label to a custom label and replaces the - default label.
      -
      TooltipsetPositionOffset(float theX, - float theY) -
      adds an offset to the position of the controller - relative to the mouse cursor's position.
      -
      TooltipsetView(ControllerView<?> theDisplay) -
      A custom view can be set for a Tooltip.
      -
      TooltipsetWidth(int theWidth) -
      with the default display, the width of the tooltip is - set automatically, therefore setWidth() does not have - any effect without changing the default display to a - custom ControllerView.
      -
      Tooltipunregister(Controller<?> theController) -
      removes a controller from the tooltip
      -
      Tooltipunregister(java.lang.String theControllerName) 
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        disable

        -
        public Tooltip disable()
        -
        disables the Tooltip on a global level, when - disabled, tooltip will not respond to any registered - controller. to disable a tooltip for aparticular - controller, used unregister(Controller)
        -
        Returns:
        Tooltip
        See Also:
        unregister(Controller)
        -
      • -
      - - - -
        -
      • -

        enable

        -
        public Tooltip enable()
        -
        in case the tooltip is disabled, use enable() to turn - the tooltip back on.
        -
        Returns:
        Tooltip
        -
      • -
      - - - -
        -
      • -

        getBorder

        -
        public int getBorder()
        -
        returns the value of the border
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        getLabel

        -
        public Label getLabel()
        -
        returns the current Label
        -
        Returns:
        Label
        -
      • -
      - - - -
        -
      • -

        getWidth

        -
        public int getWidth()
        -
      • -
      - - - -
        -
      • -

        isEnabled

        -
        public boolean isEnabled()
        -
        check if the tooltip is enabled or disabled
        -
        Returns:
        boolean
        -
      • -
      - - - -
        -
      • -

        register

        -
        public Tooltip register(Controller<?> theController,
        -               java.lang.String theText)
        -
        registers a controller with the Tooltip, when - activating the tooltip for a particular controller, - the registered text (second parameter) will be - displayed.
        -
        Parameters:
        theController -
        theText -
        -
        Returns:
        Tooltip
        -
      • -
      - - - -
        -
      • -

        register

        -
        public Tooltip register(java.lang.String theControllerName,
        -               java.lang.String theText)
        -
      • -
      - - - -
        -
      • -

        setAlpha

        -
        public Tooltip setAlpha(int theValue)
        -
        sets the transparency of the default background, - default value is 200
        -
        Parameters:
        theValue -
        -
        Returns:
        Tooltip
        -
      • -
      - - - -
        -
      • -

        setBorder

        -
        public Tooltip setBorder(int theValue)
        -
        sets the border of the tooltip, the default border is - 4px.
        -
        Parameters:
        theValue -
        -
        Returns:
        Tooltip
        -
      • -
      - - - -
        -
      • -

        setColorBackground

        -
        public Tooltip setColorBackground(int theColor)
        -
        sets the background color of the tooltip, the default - color is a dark grey
        -
        Parameters:
        theColor -
        -
        Returns:
        Tooltip
        -
      • -
      - - - -
        -
      • -

        setColorLabel

        -
        public Tooltip setColorLabel(int theColor)
        -
        sets the text color of the tooltip's label, the - default color is a white
        -
        Parameters:
        theColor -
        -
        Returns:
        Tooltip
        -
      • -
      - - - -
        -
      • -

        setDelay

        -
        public Tooltip setDelay(long theMillis)
        -
        A tooltip is activated when entered by the mouse, - after a given delay time the Tooltip starts to fade - in. Use setDelay(long) to adjust the default delay - time of 1000 millis.
        -
        Parameters:
        theMillis -
        -
        Returns:
        Tooltip
        -
      • -
      - - - -
        -
      • -

        setHeight

        -
        public Tooltip setHeight(int theHeight)
        -
        Parameters:
        theHeight -
        -
        Returns:
        Tooltip
        See Also:
        setWidth(int)
        -
      • -
      - - - -
        -
      • -

        setLabel

        -
        public Tooltip setLabel(Label theLabel)
        -
        sets the Label to a custom label and replaces the - default label.
        -
        Parameters:
        theLabel -
        -
        Returns:
        Tooltip
        -
      • -
      - - - -
        -
      • -

        setPositionOffset

        -
        public Tooltip setPositionOffset(float theX,
        -                        float theY)
        -
        adds an offset to the position of the controller - relative to the mouse cursor's position. default - offset is (10,20)
        -
        Parameters:
        theX -
        theY -
        -
        Returns:
        Tooltip
        -
      • -
      - - - -
        -
      • -

        setView

        -
        public Tooltip setView(ControllerView<?> theDisplay)
        -
        A custom view can be set for a Tooltip. The default - view class can be found at the bottom of the Tooltip - source.
        -
        Parameters:
        theDisplay -
        -
        Returns:
        Tooltip
        See Also:
        ControllerView
        -
      • -
      - - - -
        -
      • -

        setWidth

        -
        public Tooltip setWidth(int theWidth)
        -
        with the default display, the width of the tooltip is - set automatically, therefore setWidth() does not have - any effect without changing the default display to a - custom ControllerView.
        -
        Returns:
        Tooltip
        See Also:
        ControllerView, -controlP5.Tooltip#setDisplay(ControllerView)
        -
      • -
      - - - -
        -
      • -

        unregister

        -
        public Tooltip unregister(Controller<?> theController)
        -
        removes a controller from the tooltip
        -
        Parameters:
        theController -
        -
        Returns:
        Tooltip
        -
      • -
      - - - -
        -
      • -

        unregister

        -
        public Tooltip unregister(java.lang.String theControllerName)
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/package-frame.html b/reference/controlP5/package-frame.html deleted file mode 100644 index ebb0ac4..0000000 --- a/reference/controlP5/package-frame.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - -controlP5 (Javadocs: controlP5) - - - - -

controlP5

-
-

Interfaces

- -

Classes

- -

Enums

- -

Annotation Types

- -
- - diff --git a/reference/controlP5/package-summary.html b/reference/controlP5/package-summary.html deleted file mode 100644 index 9b97172..0000000 --- a/reference/controlP5/package-summary.html +++ /dev/null @@ -1,567 +0,0 @@ - - - - - -controlP5 (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - -
-

Package controlP5

-
-
ControlP5
-
-

See: Description

-
-
- - - - -

Package controlP5 Description

-

ControlP5

-

ControlP5 (www.sojamo.de/libraries/controlP5) is a library written by Andreas Schlegel for the programming environment processing. ControlP5 is a GUI and controller library for processing that can be used in authoring, application mode. Controllers including Sliders, Buttons, Toggles, Knobs, Textfields, RadioButtons, Checkboxes amongst others can be easily added to a processing sketch and can be arranged in separate control windows, or can be organized in tabs or groups. The controlP5 source code repository is available on github at github.com/sojamo/controlp5. -

-

Javascript

-

Currently there is no javascript version of ControlP5, though I had started implementing a slimmed down version for processing.js but since it is currently unclear which javascript version, processing.js or p5.js, will become the default js version of processing, controlP5.js is on hold.

-
- -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/controlP5/package-tree.html b/reference/controlP5/package-tree.html deleted file mode 100644 index ed65be3..0000000 --- a/reference/controlP5/package-tree.html +++ /dev/null @@ -1,249 +0,0 @@ - - - - - -controlP5 Class Hierarchy (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - -
-

Hierarchy For Package controlP5

-
-
-

Class Hierarchy

- -

Interface Hierarchy

- -

Annotation Type Hierarchy

- -

Enum Hierarchy

- -
- -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/help-doc.html b/reference/help-doc.html deleted file mode 100644 index 9932f04..0000000 --- a/reference/help-doc.html +++ /dev/null @@ -1,203 +0,0 @@ - - - - - -API Help (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - -
-

How This API Document Is Organized

-
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
-
-
- -This help file applies to API documentation generated using the standard doclet.
- -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/index-all.html b/reference/index-all.html deleted file mode 100644 index 96f5252..0000000 --- a/reference/index-all.html +++ /dev/null @@ -1,5165 +0,0 @@ - - - - - -Index (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - -
A B C D E F G H I J K L M N O P R S T U V W X Y _  - - -

A

-
-
a() - Method in class controlP5.ColorWheel
-
 
-
acceptClassList - Static variable in interface controlP5.ControlP5Constants
-
 
-
Accordion - Class in controlP5
-
-
- The Accordion is a list of ControlGroups which can be expanded and collapsed.
-
-
Accordion(ControlP5, String) - Constructor for class controlP5.Accordion
-
-
Convenience constructor to extend Accordion.
-
-
actAsPulldownMenu(boolean) - Method in class controlP5.DropdownList
-
-
Enables a ListBox to act as a pulldown menu.
-
-
actAsPulldownMenu(boolean) - Method in class controlP5.ListBox
-
-
Enables a ListBox to act as a pulldown menu.
-
-
ACTION_BROADCAST - Static variable in interface controlP5.ControlP5Constants
-
 
-
ACTION_CLICK - Static variable in interface controlP5.ControlP5Constants
-
 
-
ACTION_DRAG - Static variable in interface controlP5.ControlP5Constants
-
 
-
ACTION_ENTER - Static variable in interface controlP5.ControlP5Constants
-
 
-
ACTION_EXIT - Static variable in interface controlP5.ControlP5Constants
-
 
-
ACTION_LEAVE - Static variable in interface controlP5.ControlP5Constants
-
 
-
ACTION_MOVE - Static variable in interface controlP5.ControlP5Constants
-
 
-
ACTION_PRESS - Static variable in interface controlP5.ControlP5Constants
-
 
-
ACTION_RELEASE - Static variable in interface controlP5.ControlP5Constants
-
 
-
ACTION_RELEASEDOUTSIDE - Static variable in interface controlP5.ControlP5Constants
-
 
-
ACTION_WHEEL - Static variable in interface controlP5.ControlP5Constants
-
 
-
activate(int) - Method in class controlP5.CheckBox
-
-
Activates a single checkbox item by index
-
-
activate(String) - Method in class controlP5.CheckBox
-
-
Activates a single checkbox item by name
-
-
activate(int) - Method in class controlP5.RadioButton
-
-
Deactivates all active RadioButton items and only activates the item corresponding to - theIndex.
-
-
activate(String) - Method in class controlP5.RadioButton
-
-
Actives an item of the Radio button by name.
-
-
activateAll() - Method in class controlP5.CheckBox
-
 
-
activateBy(int) - Method in class controlP5.Button
-
-
A button can be activated by a mouse PRESSED or mouse RELEASE.
-
-
activateEvent(boolean) - Method in class controlP5.ControlGroup
-
-
activates or deactivates the Event status of a ControlGroup.
-
-
activateEvent(boolean) - Method in class controlP5.Tab
-
-
activates or deactivates the Event status of a tab, When activated a tab will send a - controlEvent to the main application.
-
-
activateTab(String) - Method in class controlP5.ControlWindow
-
 
-
ACTIVE - Static variable in interface controlP5.ControlP5Constants
-
 
-
add(ControllerInterface<?>) - Method in class controlP5.Controller
-
 
-
add(ControllerInterface<?>) - Method in class controlP5.ControllerGroup
-
-
Adds a controller to the group, but use Controller.setGroup() instead.
-
-
add(ControllerInterface<?>) - Method in interface controlP5.ControllerInterface
-
 
-
add(ControllerInterface<?>) - Method in class controlP5.ControllerList
-
 
-
add(Tab) - Method in class controlP5.ControlWindow
-
 
-
add(String, int) - Method in class controlP5.MultiList
-
-
adds multilist buttons to the multilist.
-
-
add(String, float) - Method in class controlP5.MultiListButton
-
-
add a new button to the sublist of this multilist button.
-
-
addAccordion(String) - Method in class controlP5.ControlP5Base
-
 
-
addAccordion(Object, String) - Method in class controlP5.ControlP5Base
-
 
-
addAccordion(String, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addAccordion(Object, String, String) - Method in class controlP5.ControlP5Legacy
-
 
-
addBang(String) - Method in class controlP5.ControlP5Base
-
-
Triggers an event without passing a value.
-
-
addBang(Object, String) - Method in class controlP5.ControlP5Base
-
 
-
addBang(Object, String, String, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addBang(Object, String, String) - Method in class controlP5.ControlP5Legacy
-
 
-
addBoundingBox(String) - Method in class controlP5.ControlP5Legacy
-
 
-
addBoundingBox(Object, String, String, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addButton(String) - Method in class controlP5.ControlP5Base
-
-
Triggers an event and passing a value.
-
-
addButton(Object, String) - Method in class controlP5.ControlP5Base
-
 
-
addButton(Object, String, String, float, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addButton(Object, String, String) - Method in class controlP5.ControlP5Legacy
-
 
-
addButton(String, float) - Method in class controlP5.ControlP5Legacy
-
 
-
addButton(Object, String, String, float) - Method in class controlP5.ControlP5Legacy
-
 
-
addCallback(CallbackListener...) - Method in class controlP5.ControlBroadcaster
-
 
-
addCallback(CallbackListener) - Method in class controlP5.ControlBroadcaster
-
 
-
addCallback(CallbackListener, Controller<?>...) - Method in class controlP5.ControlBroadcaster
-
-
Adds a CallbackListener for a list of controllers.
-
-
addCallback(CallbackListener) - Method in class controlP5.Controller
-
 
-
addCallback(CallbackListener...) - Method in class controlP5.ControlP5
-
 
-
addCallback(CallbackListener) - Method in class controlP5.ControlP5
-
 
-
addCallback(CallbackListener, Controller<?>...) - Method in class controlP5.ControlP5
-
 
-
addCanvas(Canvas) - Method in class controlP5.ControllerGroup
-
-
Adds a canvas to a controllerGroup such as a tab or group.
-
-
addCanvas(Canvas) - Method in class controlP5.ControlP5
-
-
adds a Canvas to the default sketch window.
-
-
addCanvas(Canvas) - Method in class controlP5.ControlWindow
-
 
-
addChart(String) - Method in class controlP5.ControlP5Base
-
-
adds chart support to display float array based data.
-
-
addChart(String, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addCheckBox(String) - Method in class controlP5.ControlP5Base
-
-
Use a checkbox for single choice options.
-
-
addCheckBox(Object, String) - Method in class controlP5.ControlP5Base
-
 
-
addCheckBox(Object, String, String, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addCheckBox(String, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addCloseButton() - Method in class controlP5.ControllerGroup
-
-
TODO redesign or deprecate add a close button to the controlbar of this controlGroup.
-
-
addColorPicker(String) - Method in class controlP5.ControlP5Base
-
-
adds a simple RGBA colorpicker.
-
-
addColorPicker(Object, String) - Method in class controlP5.ControlP5Base
-
 
-
addColorPicker(String, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addColorPicker(Object, String, String, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addColorWheel(String) - Method in class controlP5.ControlP5Base
-
 
-
addColorWheel(Object, String) - Method in class controlP5.ControlP5Base
-
 
-
addColorWheel(Object, String, String, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addColorWheel(String, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addConsole(Textarea) - Method in class controlP5.ControlP5Base
-
 
-
addController(Object, String, String, Class<C>, int, int) - Method in class controlP5.ControlP5Legacy
-
-
Adds Controllers by Object reference, currently - supports Slider, Bang, Button, Knob, Numberbox, - Toggle, Textlabel, Textfield, Range, Slider2D.
-
-
addController(String, Class<C>, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addControllersFor(PApplet) - Method in class controlP5.ControlP5Base
-
 
-
addControllersFor(String, Object) - Method in class controlP5.ControlP5Base
-
-
Adds controllers for a specific object using - annotations.
-
-
addControlsFor(Object) - Method in class controlP5.ControlP5
-
-
TODO
-
-
addControlWindow(String) - Method in class controlP5.ControlP5Legacy
-
 
-
addData(ChartData) - Method in class controlP5.Chart
-
 
-
addData(String, ChartData) - Method in class controlP5.Chart
-
 
-
addData(float) - Method in class controlP5.Chart
-
 
-
addData(String, float) - Method in class controlP5.Chart
-
 
-
addData(ChartDataSet, float) - Method in class controlP5.Chart
-
 
-
addDataSet(String) - Method in class controlP5.Chart
-
 
-
addDrawable(CDrawable) - Method in class controlP5.ControllerGroup
-
 
-
addDropdownList(String) - Method in class controlP5.ControlP5Legacy
-
 
-
addDropdownList(Object, String, String, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addDropdownList(String, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addFirst(float) - Method in class controlP5.Chart
-
 
-
addFirst(String, float) - Method in class controlP5.Chart
-
 
-
addFrameRate() - Method in class controlP5.ControlP5Base
-
-
returns the current framerate of the running sketch.
-
-
addGroup(String) - Method in class controlP5.ControlP5Base
-
-
A controller group can be used to group controllers - for a better organization of single controllers.
-
-
addGroup(Object, String) - Method in class controlP5.ControlP5Base
-
 
-
addGroup(Object, String, String, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addGroup(Object, String, String, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addGroup(String, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addGroup(Object, String, String) - Method in class controlP5.ControlP5Legacy
-
 
-
addGroup(String, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addGroup(Object, String, String, Class<C>, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
-
Use with caution, only for internal use.
-
-
addItem(ControlGroup<?>) - Method in class controlP5.Accordion
-
-
Adds items of type ControlGroup to the Accordion, only ControlGroups can be added.
-
-
addItem(String, float) - Method in class controlP5.CheckBox
-
 
-
addItem(Toggle, float) - Method in class controlP5.CheckBox
-
 
-
addItem(String, int) - Method in class controlP5.DropdownList
-
-
Adds an item to the ListBox.
-
-
addItem(String, int) - Method in class controlP5.ListBox
-
-
Adds an item to the ListBox.
-
-
addItem(String, float) - Method in class controlP5.RadioButton
-
 
-
addItem(Toggle, float) - Method in class controlP5.RadioButton
-
 
-
addItem(String, Object) - Method in class controlP5.ScrollableList
-
-
Adds an item to the ScrollableList.
-
-
addItems(String[]) - Method in class controlP5.DropdownList
-
-
adds a list of items from a string array.
-
-
addItems(List<?>) - Method in class controlP5.DropdownList
-
 
-
addItems(List<?>, int) - Method in class controlP5.DropdownList
-
 
-
addItems(String[]) - Method in class controlP5.ListBox
-
-
adds a list of items from a string array.
-
-
addItems(List<?>) - Method in class controlP5.ListBox
-
 
-
addItems(List<?>, int) - Method in class controlP5.ListBox
-
 
-
addItems(String[]) - Method in class controlP5.ScrollableList
-
-
adds a list of items from a string array.
-
-
addItems(List<?>) - Method in class controlP5.ScrollableList
-
 
-
addItems(List<?>, int) - Method in class controlP5.ScrollableList
-
 
-
addKnob(String) - Method in class controlP5.ControlP5Base
-
-
Knobs can use limited and endless revolutions, custom - angles and starting points.
-
-
addKnob(Object, String) - Method in class controlP5.ControlP5Base
-
 
-
addKnob(Object, String, String, float, float, float, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addKnob(String, float, float, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addKnob(Object, String, String, float, float, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addKnob(String, float, float, float, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addKnob(Object, String, String, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addKnob(Object, String, String) - Method in class controlP5.ControlP5Legacy
-
 
-
addKnob(String, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addLast(float) - Method in class controlP5.Chart
-
 
-
addLast(String, float) - Method in class controlP5.Chart
-
 
-
addListBox(String) - Method in class controlP5.ControlP5Legacy
-
-
A list box is a list of items a user can choose from.
-
-
addListBox(Object, String, String, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addListBox(String, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addListener(ControlListener...) - Method in class controlP5.ControlBroadcaster
-
 
-
addListener(ControlListener) - Method in class controlP5.ControlGroup
-
-
adds a listener to the controller.
-
-
addListener(ControlListener) - Method in class controlP5.Controller
-
 
-
addListener(ControlListener) - Method in class controlP5.ControllerGroup
-
 
-
addListener(ControlListener) - Method in interface controlP5.ControllerInterface
-
 
-
addListener(ControlListener...) - Method in class controlP5.ControlP5
-
 
-
addMatrix(String) - Method in class controlP5.ControlP5Base
-
-
Matrix is a 2-D matrix controller using toggle - controllers in a rows and a columns setup.
-
-
addMatrix(Object, String) - Method in class controlP5.ControlP5Base
-
 
-
addMatrix(Object, String, String, int, int, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addMatrix(String, int, int, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addMultiList(String) - Method in class controlP5.ControlP5Base
-
-
Multilist is a tree like menu.
-
-
addMultiList(Object, String) - Method in class controlP5.ControlP5Base
-
 
-
addMultiList(Object, String, String, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addMultiList(String, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addNumberbox(String) - Method in class controlP5.ControlP5Base
-
 
-
addNumberbox(Object, String) - Method in class controlP5.ControlP5Base
-
 
-
addNumberbox(Object, String, String, float, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addNumberbox(String, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addNumberbox(Object, String, String, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addNumberbox(String, float, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addNumberbox(Object, String, String) - Method in class controlP5.ControlP5Legacy
-
 
-
addPositionTo(int, int, List<ControllerInterface<?>>) - Method in class controlP5.ControlP5
-
 
-
addPositionTo(int, int, ControllerInterface<?>...) - Method in class controlP5.ControlP5
-
 
-
addRadio(String) - Method in class controlP5.ControlP5Legacy
-
-
Use radio buttons for multiple choice options.
-
-
addRadio(String, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addRadioButton(String) - Method in class controlP5.ControlP5Base
-
-
Use radio buttons for multiple choice options.
-
-
addRadioButton(Object, String) - Method in class controlP5.ControlP5Base
-
 
-
addRadioButton(Object, String, String, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addRadioButton(String, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addRange(String) - Method in class controlP5.ControlP5Base
-
-
A range controller, a slider that allows control on - both ends of the slider.
-
-
addRange(Object, String) - Method in class controlP5.ControlP5Base
-
 
-
addRange(Object, String, String, float, float, float, float, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addRange(String, float, float, float, float, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addRange(String, float, float, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addRange(Object, String, String, float, float, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addScrollableList(String) - Method in class controlP5.ControlP5Base
-
-
the ScrollableList replaces the DropwdownList and - ListBox, the type for a ScrollableList can be set - with setType(ControlP5.DROPDOWN | ControlP5.LIST).
-
-
addScrollableList(Object, String) - Method in class controlP5.ControlP5Base
-
 
-
addScrollableList(Object, String, String) - Method in class controlP5.ControlP5Legacy
-
 
-
addScrollableList(Object, String, String, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addScrollableList(String, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addSet(String) - Method in class controlP5.ControllerProperties
-
 
-
addSlider(String) - Method in class controlP5.ControlP5Base
-
-
Adds a default slider with a default width of 100 and - height of 10.
-
-
addSlider(Object, String) - Method in class controlP5.ControlP5Base
-
 
-
addSlider(Object, String, String, float, float, float, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addSlider(String, float, float, float, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addSlider(String, float, float, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addSlider(Object, String, String, float, float, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addSlider(Object, String, String) - Method in class controlP5.ControlP5Legacy
-
 
-
addSlider(String, float, float) - Method in class controlP5.ControlP5Legacy
-
 
-
addSlider(Object, String, String, float, float) - Method in class controlP5.ControlP5Legacy
-
 
-
addSlider2D(String) - Method in class controlP5.ControlP5Base
-
-
Adds a 2D slider to controlP5.
-
-
addSlider2D(Object, String) - Method in class controlP5.ControlP5Base
-
 
-
addSlider2D(Object, String, String, float, float, float, float, float, float, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addTab(String) - Method in class controlP5.ControlP5Base
-
 
-
addTab(String) - Method in class controlP5.ControlWindow
-
 
-
addTextarea(String) - Method in class controlP5.ControlP5Base
-
-
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.
-
-
addTextarea(String, String, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addTextfield(String) - Method in class controlP5.ControlP5Base
-
-
A Textfield allows single line text input.
-
-
addTextfield(Object, String) - Method in class controlP5.ControlP5Base
-
 
-
addTextfield(Object, String, String, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addTextfield(String, int, int, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addTextfield(Object, String, String) - Method in class controlP5.ControlP5Legacy
-
 
-
addTextlabel(String) - Method in class controlP5.ControlP5Base
-
 
-
addTextlabel(Object, String, String, String, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addTextlabel(String, String, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addTextlabel(Object, String, String, String) - Method in class controlP5.ControlP5Legacy
-
 
-
addTextlabel(String, String) - Method in class controlP5.ControlP5Legacy
-
 
-
addToggle(Object, String) - Method in class controlP5.ControlP5Base
-
-
Toggles a boolean field or passes a value when - triggered.
-
-
addToggle(String) - Method in class controlP5.ControlP5Base
-
 
-
addToggle(Object, String, String, boolean, float, float, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
addToggle(Object, String, String) - Method in class controlP5.ControlP5Legacy
-
 
-
addToggle(Object, String, String, boolean) - Method in class controlP5.ControlP5Legacy
-
 
-
addToggle(String, boolean) - Method in class controlP5.ControlP5Legacy
-
 
-
addTooltip() - Method in class controlP5.ControlP5Legacy
-
 
-
adjust(PGraphics, Label) - Method in class controlP5.ControlFont
-
 
-
align(int, int, int, int) - Method in class controlP5.Controller
-
 
-
align(int[]) - Method in class controlP5.Label
-
 
-
align(int, int) - Method in class controlP5.Label
-
 
-
align(int[]) - Method in class controlP5.RadioButton
-
 
-
align(int, int) - Method in class controlP5.RadioButton
-
 
-
alignValueLabel - Variable in class controlP5.Range
-
 
-
alignX(int) - Method in class controlP5.Label
-
 
-
alignX(int) - Method in class controlP5.RadioButton
-
 
-
alignY(int) - Method in class controlP5.Label
-
 
-
alignY(int) - Method in class controlP5.RadioButton
-
 
-
ALT - Static variable in interface controlP5.ControlP5Constants
-
 
-
append(String) - Method in class controlP5.Textarea
-
 
-
append(String, int) - Method in class controlP5.Textarea
-
 
-
append(String, int) - Method in class controlP5.Textlabel
-
 
-
AQUA - Static variable in interface controlP5.ControlP5Constants
-
 
-
ARC - Static variable in interface controlP5.ControlP5Constants
-
 
-
AREA - Static variable in class controlP5.Chart
-
 
-
ARRAY - Static variable in interface controlP5.ControlP5Constants
-
 
-
arrayToString(Object) - Static method in class controlP5.CP
-
-
* Convenience method for producing a simple textual representation of an array.
-
-
autoHeight - Static variable in class controlP5.Button
-
 
-
autoHeight - Static variable in class controlP5.Controller
-
 
-
autoHeight - Static variable in class controlP5.Knob
-
 
-
autoHeight - Static variable in class controlP5.Numberbox
-
 
-
autoHeight - Static variable in class controlP5.Range
-
 
-
autoHeight - Static variable in class controlP5.Toggle
-
 
-
autoSpacing - Static variable in class controlP5.Controller
-
 
-
autoSpacing - Static variable in class controlP5.Range
-
 
-
autoWidth - Static variable in class controlP5.Button
-
 
-
autoWidth - Static variable in class controlP5.Controller
-
 
-
autoWidth - Static variable in class controlP5.Knob
-
 
-
autoWidth - Static variable in class controlP5.Numberbox
-
 
-
autoWidth - Static variable in class controlP5.Range
-
 
-
autoWidth - Variable in class controlP5.Tab
-
 
-
autoWidth - Static variable in class controlP5.Toggle
-
 
-
- - - -

B

-
-
b() - Method in class controlP5.ColorWheel
-
 
-
b(Object) - Static method in class controlP5.ControlP5
-
 
-
background - Variable in class controlP5.ControllerStyle
-
 
-
background - Variable in class controlP5.ControlWindow
-
 
-
backgroundHeight - Variable in class controlP5.ControllerStyle
-
 
-
backgroundWidth - Variable in class controlP5.ControllerStyle
-
 
-
BACKSPACE - Static variable in interface controlP5.ControlP5Constants
-
 
-
Bang - Class in controlP5
-
-
- The Bang controller triggers an event when pressed.
-
-
Bang(ControlP5, String) - Constructor for class controlP5.Bang
-
-
Convenience constructor to extend Bang.
-
-
BAR - Static variable in class controlP5.Chart
-
 
-
BAR_CENTERED - Static variable in class controlP5.Chart
-
 
-
BASELINE - Static variable in interface controlP5.ControlP5Constants
-
 
-
begin() - Method in class controlP5.ControlP5
-
-
cp5.begin() and cp5.end() are mechanisms to - auto-layout controllers, see the ControlP5beginEnd - example.
-
-
begin(ControllerGroup<?>) - Method in class controlP5.ControlP5
-
 
-
begin(int, int) - Method in class controlP5.ControlP5
-
 
-
begin(ControllerGroup<?>, int, int) - Method in class controlP5.ControlP5
-
 
-
begin(ControlWindow) - Method in class controlP5.ControlP5
-
 
-
begin(ControlWindow, int, int) - Method in class controlP5.ControlP5
-
 
-
beginItems() - Method in class controlP5.DropdownList
-
 
-
beginItems() - Method in class controlP5.ListBox
-
 
-
BitFont - Class in controlP5
-
 
-
BitFont(byte[]) - Constructor for class controlP5.BitFont
-
 
-
BITFONT - Static variable in interface controlP5.ControlP5Constants
-
 
-
BLACK - Static variable in interface controlP5.ControlP5Constants
-
 
-
BLUE - Static variable in interface controlP5.ControlP5Constants
-
 
-
BOOLEAN - Static variable in interface controlP5.ControlP5Constants
-
 
-
BOTTOM - Static variable in interface controlP5.ControlP5Constants
-
 
-
BOTTOM_OUTSIDE - Static variable in interface controlP5.ControlP5Constants
-
 
-
BoundingBox - Class in controlP5
-
 
-
BoundingBox(ControlP5, String) - Constructor for class controlP5.BoundingBox
-
 
-
bringToFront() - Method in class controlP5.Controller
-
 
-
bringToFront(ControllerInterface<?>) - Method in class controlP5.Controller
-
 
-
bringToFront() - Method in class controlP5.ControllerGroup
-
 
-
bringToFront(ControllerInterface<?>) - Method in class controlP5.ControllerGroup
-
 
-
bringToFront() - Method in interface controlP5.ControllerInterface
-
 
-
bringToFront(ControllerInterface<?>) - Method in interface controlP5.ControllerInterface
-
 
-
bringToFront() - Method in class controlP5.Tab
-
 
-
broadcast(ControlEvent, int) - Method in class controlP5.ControlBroadcaster
-
 
-
Button - Class in controlP5
-
-
- A button triggers an event after it has been release.
-
-
Button(ControlP5, String) - Constructor for class controlP5.Button
-
-
Convenience constructor to extend Button.
-
-
Button() - Constructor for class controlP5.Button
-
 
-
byteArrayToInt(byte[]) - Static method in class controlP5.CP
-
 
-
- - - -

C

-
-
CallbackEvent - Class in controlP5
-
-
- A CallbackEvent is send when a controller action such as enter, leave, press, etc has occurs.
-
-
CallbackListener - Interface in controlP5
-
-
- Use a CallbackListener to listen for controller related actions such as pressed, released, etc.
-
-
Canvas - Class in controlP5
-
-
Use a Canvas to draw custom graphics into a control - window or the default sketch window.
-
-
Canvas() - Constructor for class controlP5.Canvas
-
 
-
CAPTIONLABEL - Static variable in interface controlP5.ControlP5Constants
-
 
-
CColor - Class in controlP5
-
-
A CColor instance contains the colors of a controller including the foreground-, background-, - active-, captionlabel- and valuelabel-colors.
-
-
CColor() - Constructor for class controlP5.CColor
-
 
-
CColor(int, int, int, int, int) - Constructor for class controlP5.CColor
-
 
-
CColor(CColor) - Constructor for class controlP5.CColor
-
 
-
CDrawable - Interface in controlP5
-
-
The CDrawable interface is used to draw controllers, primarily for internal use.
-
-
CENTER - Static variable in interface controlP5.ControlP5Constants
-
 
-
changeValue(float) - Method in class controlP5.Controller
-
-
sets the value of the controller without sending the broadcast event.
-
-
Chart - Class in controlP5
-
-
Use charts to display float array data as line chart, yet experimental, but see the - ControlP5chart example for more details.
-
-
Chart(ControlP5, String) - Constructor for class controlP5.Chart
-
-
Convenience constructor to extend Chart.
-
-
Chart.ChartViewArea - Class in controlP5
-
 
-
Chart.ChartViewArea() - Constructor for class controlP5.Chart.ChartViewArea
-
 
-
Chart.ChartViewBar - Class in controlP5
-
 
-
Chart.ChartViewBar() - Constructor for class controlP5.Chart.ChartViewBar
-
 
-
Chart.ChartViewBarCentered - Class in controlP5
-
 
-
Chart.ChartViewBarCentered() - Constructor for class controlP5.Chart.ChartViewBarCentered
-
 
-
Chart.ChartViewLine - Class in controlP5
-
 
-
Chart.ChartViewLine() - Constructor for class controlP5.Chart.ChartViewLine
-
 
-
Chart.ChartViewPie - Class in controlP5
-
 
-
Chart.ChartViewPie() - Constructor for class controlP5.Chart.ChartViewPie
-
 
-
ChartData - Class in controlP5
-
-
Used by Chart, single chart data is stored here including value, (label) text, and color.
-
-
ChartData(float) - Constructor for class controlP5.ChartData
-
 
-
ChartData(float, String) - Constructor for class controlP5.ChartData
-
 
-
ChartDataSet - Class in controlP5
-
-
Used by Chart, a chart data set is a container to store chart data.
-
-
ChartDataSet(String) - Constructor for class controlP5.ChartDataSet
-
 
-
CheckBox - Class in controlP5
-
-
A multiple-choice radioButton.
-
-
CheckBox(ControlP5, String) - Constructor for class controlP5.CheckBox
-
-
Convenience constructor to extend CheckBox.
-
-
CheckBox(ControlP5, ControllerGroup<?>, String, int, int) - Constructor for class controlP5.CheckBox
-
-
A CheckBox should only be added to controlP5 by using controlP5.addCheckBox()
-
-
CHECKBOX - Static variable in interface controlP5.ControlP5Constants
-
 
-
CHECKBOX - Static variable in class controlP5.ScrollableList
-
 
-
checkPlug(Object, String, Class<?>[]) - Static method in class controlP5.ControllerPlug
-
 
-
clear() - Method in class controlP5.ControlWindow
-
-
clear the control window, delete all controllers from - a control window.
-
-
clear() - Method in class controlP5.DropdownList
-
-
Removes all items from a list box
-
-
clear() - Method in class controlP5.ListBox
-
-
Removes all items from a list box
-
-
clear() - Method in class controlP5.Matrix
-
 
-
clear() - Method in class controlP5.Println
-
 
-
clear() - Method in class controlP5.ScrollableList
-
 
-
clear() - Method in class controlP5.Textarea
-
 
-
clear() - Method in class controlP5.Textfield
-
 
-
clearKeys() - Method in class controlP5.ControlWindow
-
 
-
close() - Method in class controlP5.Accordion
-
 
-
close(int...) - Method in class controlP5.Accordion
-
 
-
close() - Method in class controlP5.ControllerGroup
-
 
-
CLOSE - Static variable in class controlP5.ControllerProperties
-
 
-
close(MultiListInterface) - Method in class controlP5.MultiList
-
 
-
close() - Method in class controlP5.MultiList
-
close(MultiListInterface) - Method in class controlP5.MultiListButton
-
 
-
close() - Method in class controlP5.MultiListButton
-
 
-
closeDelay - Variable in class controlP5.MultiList
-
 
-
color - Variable in class controlP5.ControllerStyle
-
 
-
ColorPicker - Class in controlP5
-
-
A simple color picker using sliders to adjust RGBA values.
-
-
ColorPicker(ControlP5, String) - Constructor for class controlP5.ColorPicker
-
-
Convenience constructor to extend ColorPicker.
-
-
ColorWheel - Class in controlP5
-
 
-
ColorWheel(ControlP5, String) - Constructor for class controlP5.ColorWheel
-
 
-
ColorWheel(ControlP5, ControllerGroup<?>, String, int, int, int, int) - Constructor for class controlP5.ColorWheel
-
 
-
COMMANDKEY - Static variable in interface controlP5.ControlP5Constants
-
 
-
continuousUpdateEvents() - Method in class controlP5.Controller
-
-
continuousUpdateEvents is used for internal updates of a controller.
-
-
continuousUpdateEvents() - Method in class controlP5.ControllerGroup
-
 
-
continuousUpdateEvents() - Method in interface controlP5.ControllerInterface
-
 
-
CONTROL - Static variable in interface controlP5.ControlP5Constants
-
 
-
ControlBehavior - Class in controlP5
-
-
The abstract class control behavior allows you to add custom behavior to controllers.
-
-
ControlBehavior() - Constructor for class controlP5.ControlBehavior
-
 
-
ControlBroadcaster - Class in controlP5
-
-
The ControlBroadcaster handles all controller value changes and distributes them accordingly to - its listeners.
-
-
ControlElement - Annotation Type in controlP5
-
-
Used for automated controller creation using annotations.
-
-
controlEvent(ControlEvent) - Method in class controlP5.Accordion
-
 
-
controlEvent(CallbackEvent) - Method in interface controlP5.CallbackListener
-
 
-
controlEvent(ControlEvent) - Method in class controlP5.CheckBox
-
-
controlEvent is called by controlP5's ControlBroadcaster to inform available listeners about - value changes.
-
-
controlEvent(ControlEvent) - Method in class controlP5.ColorPicker
-
 
-
ControlEvent - Class in controlP5
-
-
A controlEvent is sent to a PApplet or a ControlListener whenever a controller value has changed.
-
-
ControlEvent(Tab) - Constructor for class controlP5.ControlEvent
-
 
-
ControlEvent(ControllerGroup<?>) - Constructor for class controlP5.ControlEvent
-
 
-
controlEvent(ControlEvent) - Method in class controlP5.ControlGroup
-
 
-
controlEvent(ControlEvent) - Method in class controlP5.ControllerGroup
-
 
-
controlEvent(ControlEvent) - Method in interface controlP5.ControlListener
-
-
controlEvent is called by controlP5's ControlBroadcaster to inform available listeners about - value changes.
-
-
controlEvent(ControlEvent) - Method in class controlP5.DropdownList
-
 
-
controlEvent(ControlEvent) - Method in class controlP5.ListBox
-
 
-
controlEvent(ControlEvent) - Method in class controlP5.MultiList
-
 
-
controlEvent(ControlEvent) - Method in class controlP5.RadioButton
-
-
controlEvent is called by controlP5's ControlBroadcaster to inform available listeners about - value changes.
-
-
controlEvent(ControlEvent) - Method in class controlP5.ScrollableList
-
 
-
controlEvent(ControlEvent) - Method in class controlP5.Textarea
-
 
-
controlEventClass - Static variable in interface controlP5.ControlP5Constants
-
 
-
ControlFont - Class in controlP5
-
-
A ControlFont is a container for a PFont that can be used to customize the font of a label.
-
-
ControlFont(PFont) - Constructor for class controlP5.ControlFont
-
 
-
ControlFont(PFont, int) - Constructor for class controlP5.ControlFont
-
 
-
ControlFont(PFont, int, int) - Constructor for class controlP5.ControlFont
-
 
-
ControlGroup<T> - Class in controlP5
-
-
- In previous versions you would use the ControlGroup class to bundle controllers in a group.
-
-
ControlGroup(ControlP5, String) - Constructor for class controlP5.ControlGroup
-
-
Convenience constructor to extend ControlGroup.
-
-
ControlGroup(ControlP5, ControllerGroup<?>, String, int, int, int, int) - Constructor for class controlP5.ControlGroup
-
 
-
ControlKey - Interface in controlP5
-
 
-
CONTROLLER - Static variable in class controlP5.ControlEvent
-
 
-
Controller<T> - Class in controlP5
-
-
- Controller is an abstract class that is extended by any available controller within controlP5.
-
-
Controller(ControlP5, String) - Constructor for class controlP5.Controller
-
-
Convenience constructor to extend Controller.
-
-
ControllerGroup<T> - Class in controlP5
-
-
ControllerGroup is an abstract class and is extended by class ControlGroup, Tab, or the ListBox.
-
-
ControllerGroup(ControlP5, String) - Constructor for class controlP5.ControllerGroup
-
-
Convenience constructor to extend ControllerGroup.
-
-
ControllerGroup(ControlP5, ControllerGroup<?>, String, float, float) - Constructor for class controlP5.ControllerGroup
-
 
-
ControllerInterface<T> - Interface in controlP5
-
-
The ControllerInterface is inherited by all ControllerGroup and Controller classes.
-
-
ControllerList - Class in controlP5
-
-
Stores objects of type ControllerInterface and CDrawable, mainly for internal use.
-
-
ControllerList() - Constructor for class controlP5.ControllerList
-
 
-
ControllerPlug - Class in controlP5
-
-
The ControllerPlug is used to do all the reflection procedures to link a controller to a variable - or function inside your main application.
-
-
ControllerPlug(Object, String, int, int, Class<?>[]) - Constructor for class controlP5.ControllerPlug
-
 
-
ControllerProperties - Class in controlP5
-
-
Values of controllers can be stored inside properties files which can be saved to file or memory.
-
-
ControllerProperties(ControlP5) - Constructor for class controlP5.ControllerProperties
-
 
-
ControllerProperty - Class in controlP5
-
-
A controller property saves the value, address, getter and setter of a registered controller.
-
-
ControllerStyle - Class in controlP5
-
-
Labels use the ControllerStyle class to store margin and padding information.
-
-
ControllerStyle() - Constructor for class controlP5.ControllerStyle
-
 
-
ControllerView<T> - Interface in controlP5
-
-
The interface ControllerView can be used to define custom displays for controllers.
-
-
ControlListener - Interface in controlP5
-
-
ControlListener is an interface that can be implemented by a custom class to be notified when - controller values change.
-
-
controlP5 - package controlP5
-
-
ControlP5
-
-
ControlP5 - Class in controlP5
-
-
- controlP5 is a processing and java library for creating - simple control GUIs.
-
-
ControlP5(PApplet) - Constructor for class controlP5.ControlP5
-
-
Create a new instance of controlP5.
-
-
ControlP5(PApplet, PFont) - Constructor for class controlP5.ControlP5
-
 
-
ControlP5(PApplet, ControlFont) - Constructor for class controlP5.ControlP5
-
 
-
ControlP5Base - Class in controlP5
-
-
The ControlP5Base supports the ControlP5 class and - implements all adder methods to add controllers to - controlP5.
-
-
ControlP5Base() - Constructor for class controlP5.ControlP5Base
-
 
-
ControlP5Constants - Interface in controlP5
-
-
Constant variables used with ControlP5 are stored here.
-
-
ControlP5Legacy - Class in controlP5
-
 
-
ControlP5Legacy() - Constructor for class controlP5.ControlP5Legacy
-
 
-
ControlTimer - Class in controlP5
-
-
control timer is a timer that can be used for example as a stop watch or a duration timer.
-
-
ControlTimer() - Constructor for class controlP5.ControlTimer
-
-
create a new control timer, a timer that counts up in time.
-
-
controlWindow - Variable in class controlP5.ControlP5
-
 
-
ControlWindow - Class in controlP5
-
 
-
ControlWindow(ControlP5, PApplet) - Constructor for class controlP5.ControlWindow
-
 
-
ControlWindow.Pointer - Class in controlP5
-
-
A pointer by default is linked to the mouse and - stores the x and y position as well as the pressed - and released state.
-
-
ControlWindow.Pointer() - Constructor for class controlP5.ControlWindow.Pointer
-
 
-
copy(ControllerProperty, String...) - Method in class controlP5.ControllerProperties
-
-
copies a ControllerProperty from one set to other(s);
-
-
copy(ControllerInterface<?>, String...) - Method in class controlP5.ControllerProperties
-
 
-
CP - Class in controlP5
-
 
-
CP() - Constructor for class controlP5.CP
-
 
-
cursorWidth - Static variable in class controlP5.Textfield
-
 
-
CUSTOM - Static variable in interface controlP5.ControlP5Constants
-
 
-
- - - -

D

-
-
d(Object) - Static method in class controlP5.ControlP5
-
 
-
day() - Method in class controlP5.ControlTimer
-
-
day position of the timer.
-
-
deactivate(int) - Method in class controlP5.CheckBox
-
-
deactivate a single checkbox item by index
-
-
deactivate(String) - Method in class controlP5.CheckBox
-
-
Deactivates a single checkbox item by name
-
-
deactivate(int) - Method in class controlP5.RadioButton
-
 
-
deactivate(String) - Method in class controlP5.RadioButton
-
-
Deactivates a RadioButton by name and sets the value of the RadioButton to the default value - -1.
-
-
deactivateAll() - Method in class controlP5.CheckBox
-
 
-
deactivateAll() - Method in class controlP5.RadioButton
-
 
-
DEBUG - Static variable in class controlP5.ControlFont
-
 
-
DEBUG - Static variable in class controlP5.ControlP5
-
-
use this static variable to turn DEBUG on or off.
-
-
decodeBase64(String) - Static method in class controlP5.CP
-
 
-
DECREASE - Static variable in interface controlP5.ControlP5Constants
-
 
-
DEFAULT - Static variable in interface controlP5.ControlP5Constants
-
 
-
defaultChar - Static variable in class controlP5.BitFont
-
 
-
defaultName - Static variable in class controlP5.ControllerProperties
-
 
-
delete(ControllerProperty) - Method in class controlP5.ControllerProperties
-
-
deletes a ControllerProperty from all Sets including the default set.
-
-
DELETE - Static variable in interface controlP5.ControlP5Constants
-
 
-
disable() - Method in class controlP5.ControllerProperty
-
 
-
disable() - Method in class controlP5.ControlWindow.Pointer
-
 
-
disable() - Method in class controlP5.Tooltip
-
-
disables the Tooltip on a global level, when - disabled, tooltip will not respond to any registered - controller.
-
-
disableCollapse() - Method in class controlP5.ControllerGroup
-
 
-
disableColorBackground() - Method in class controlP5.Label
-
 
-
disableColorBackground() - Method in class controlP5.Textarea
-
 
-
disableCrosshair() - Method in class controlP5.Slider2D
-
 
-
disablePointer() - Method in class controlP5.ControlWindow
-
 
-
disableShortcuts() - Method in class controlP5.ControlP5
-
-
disables shortcuts such as alt-h for hiding/showing - controllers
-
-
display(PGraphics, Chart) - Method in class controlP5.Chart.ChartViewArea
-
 
-
display(PGraphics, Chart) - Method in class controlP5.Chart.ChartViewBar
-
 
-
display(PGraphics, Chart) - Method in class controlP5.Chart.ChartViewBarCentered
-
 
-
display(PGraphics, Chart) - Method in class controlP5.Chart.ChartViewLine
-
 
-
display(PGraphics, Chart) - Method in class controlP5.Chart.ChartViewPie
-
 
-
display(PGraphics, T) - Method in interface controlP5.ControllerView
-
-
draws your custom controllers.
-
-
display(PGraphics, ScrollableList) - Method in class controlP5.ScrollableList.ScrollableListView
-
 
-
dispose() - Method in class controlP5.ControlP5
-
-
disposes and clears all controlP5 elements.
-
-
DONE - Static variable in interface controlP5.ControlP5Constants
-
 
-
DOWN - Static variable in interface controlP5.ControlP5Constants
-
 
-
DOWN - Static variable in class controlP5.Numberbox
-
 
-
draw(PGraphics) - Method in class controlP5.Canvas
-
-
controlWindowCanvas is an abstract class and - therefore needs to be extended by your class.
-
-
draw(PGraphics) - Method in interface controlP5.CDrawable
-
 
-
draw(ControlP5, Label) - Method in class controlP5.ControlFont
-
 
-
draw(PGraphics, Label) - Method in class controlP5.ControlFont
-
 
-
draw(PGraphics) - Method in class controlP5.Controller
-
-
the default draw function for each controller extending superclass Controller.
-
-
draw(PGraphics) - Method in class controlP5.ControllerGroup
-
 
-
draw(PGraphics) - Method in interface controlP5.ControllerInterface
-
 
-
draw() - Method in class controlP5.ControlP5
-
-
call draw() from your program when autoDraw is - disabled.
-
-
draw(PGraphics, int, int) - Method in class controlP5.ControlWindow
-
 
-
draw() - Method in class controlP5.ControlWindow
-
 
-
draw(PGraphics) - Method in class controlP5.ControlWindow
-
 
-
draw(PGraphics) - Method in class controlP5.FrameRate
-
 
-
draw(PGraphics, int, int, ControllerInterface<?>) - Method in class controlP5.Label
-
 
-
draw(PGraphics) - Method in class controlP5.Label
-
 
-
draw(PGraphics, int, int) - Method in class controlP5.Label
-
 
-
draw(PGraphics) - Method in class controlP5.MultiList
-
-
the default draw function for each controller extending superclass Controller.
-
-
draw(PGraphics) - Method in class controlP5.Textfield
-
 
-
draw(PApplet) - Method in class controlP5.Textlabel
-
 
-
draw(PGraphics) - Method in class controlP5.Textlabel
-
 
-
draw() - Method in class controlP5.Textlabel
-
 
-
draw(int, int) - Method in class controlP5.Textlabel
-
 
-
draw(PGraphics) - Method in class controlP5.TickMark
-
 
-
draw(PGraphics, int) - Method in class controlP5.TickMark
-
 
-
draw(PGraphics) - Method in class controlP5.Toggle
-
 
-
DROPDOWN - Static variable in interface controlP5.ControlP5Constants
-
 
-
DROPDOWN - Static variable in class controlP5.ScrollableList
-
 
-
DropdownList - Class in controlP5
-
 
-
DropdownList(ControlP5, String) - Constructor for class controlP5.DropdownList
-
-
Convenience constructor to extend DropdownList.
-
-
dt() - Method in interface controlP5.Pointer
-
 
-
dx() - Method in interface controlP5.Pointer
-
 
-
dy() - Method in interface controlP5.Pointer
-
 
-
- - - -

E

-
-
ELLIPSE - Static variable in interface controlP5.ControlP5Constants
-
 
-
enable() - Method in class controlP5.ControllerProperty
-
 
-
enable() - Method in class controlP5.ControlWindow.Pointer
-
 
-
enable() - Method in class controlP5.Tooltip
-
-
in case the tooltip is disabled, use enable() to turn - the tooltip back on.
-
-
enableCollapse() - Method in class controlP5.ControllerGroup
-
 
-
enableColorBackground() - Method in class controlP5.Label
-
 
-
enableColorBackground() - Method in class controlP5.Textarea
-
 
-
enableCrosshair() - Method in class controlP5.Slider2D
-
 
-
enablePointer() - Method in class controlP5.ControlWindow
-
 
-
enableShortcuts() - Method in class controlP5.ControlP5
-
-
enables shortcuts.
-
-
encodeBase64(byte[]) - Static method in class controlP5.CP
-
 
-
end(ControllerGroup<?>) - Method in class controlP5.ControlP5
-
 
-
end() - Method in class controlP5.ControlP5
-
-
cp5.begin() and cp5.end() are mechanisms to - auto-layout controllers, see the ControlP5beginEnd - example.
-
-
endItems() - Method in class controlP5.DropdownList
-
 
-
endItems() - Method in class controlP5.ListBox
-
 
-
ENTER - Static variable in interface controlP5.ControlP5Constants
-
 
-
equals(Object) - Method in class controlP5.CColor
-
 
-
equals(Object) - Method in class controlP5.ControllerProperty
-
 
-
ESCAPE - Static variable in interface controlP5.ControlP5Constants
-
 
-
EVENT - Static variable in interface controlP5.ControlP5Constants
-
 
-
eventMethod - Static variable in interface controlP5.ControlP5Constants
-
 
-
- - - -

F

-
-
f(Object) - Static method in class controlP5.ControlP5
-
 
-
FADEIN - Static variable in interface controlP5.ControlP5Constants
-
 
-
FADEOUT - Static variable in interface controlP5.ControlP5Constants
-
 
-
FIELD - Static variable in interface controlP5.ControlP5Constants
-
 
-
FIX - Static variable in class controlP5.Slider
-
 
-
FLEXIBLE - Static variable in class controlP5.Slider
-
 
-
FLOAT - Static variable in interface controlP5.ControlP5Constants
-
 
-
forHTMLTag(String) - Static method in class controlP5.CP
-
-
borrowed from http://www.javapractices.com/Topic96.cjp
-
-
forURL(String) - Static method in class controlP5.CP
-
-
borrowed from http://www.javapractices.com/Topic96.cjp
-
-
frameRate(int) - Method in class controlP5.ControlWindow
-
-
sets the frame rate of the control window.
-
-
FrameRate - Class in controlP5
-
 
-
FUCHSIA - Static variable in interface controlP5.ControlP5Constants
-
 
-
- - - -

G

-
-
g() - Method in class controlP5.ColorWheel
-
 
-
get(int) - Method in class controlP5.ControllerList
-
 
-
get() - Method in class controlP5.ControllerList
-
 
-
get() - Method in class controlP5.ControllerProperties
-
 
-
get(ControllerInterface<?>) - Method in class controlP5.ControllerProperties
-
 
-
get(String) - Method in class controlP5.ControlP5
-
 
-
get(Object, String) - Method in class controlP5.ControlP5
-
 
-
get(Class<C>, String) - Method in class controlP5.ControlP5
-
 
-
get(int, int) - Method in class controlP5.Matrix
-
 
-
get() - Method in class controlP5.Textlabel
-
 
-
getAbsolutePosition() - Method in class controlP5.Controller
-
 
-
getAbsolutePosition() - Method in class controlP5.ControllerGroup
-
 
-
getAbsolutePosition() - Method in interface controlP5.ControllerInterface
-
 
-
getAction() - Method in class controlP5.CallbackEvent
-
 
-
getActive() - Method in class controlP5.CColor
-
 
-
getAddress() - Method in class controlP5.Controller
-
getAddress() - Method in class controlP5.ControllerGroup
-
getAddress() - Method in interface controlP5.ControllerInterface
-
 
-
getAlign() - Method in class controlP5.Label
-
 
-
getAlign() - Method in class controlP5.RadioButton
-
 
-
getAll() - Method in class controlP5.ControlP5
-
-
Returns a List of all controllers currently - registered.
-
-
getAll(Class<T>) - Method in class controlP5.ControlP5
-
-
Returns a list of controllers or groups of a - particular type.
-
-
getAlpha() - Method in class controlP5.CColor
-
 
-
getAngle() - Method in class controlP5.Knob
-
 
-
getAngleRange() - Method in class controlP5.Knob
-
 
-
getArrayValue() - Method in class controlP5.ControlEvent
-
-
Returns a float array, applies to e.g.
-
-
getArrayValue(int) - Method in class controlP5.ControlEvent
-
-
Returns a float value at a particular index from a controller's array value.
-
-
getArrayValue() - Method in class controlP5.Controller
-
-
returns the current float array value of a controller.
-
-
getArrayValue(int) - Method in class controlP5.Controller
-
 
-
getArrayValue() - Method in class controlP5.ControllerGroup
-
getArrayValue(int) - Method in class controlP5.ControllerGroup
-
 
-
getArrayValue() - Method in interface controlP5.ControllerInterface
-
 
-
getArrayValue(int) - Method in interface controlP5.ControllerInterface
-
 
-
getArrayValue() - Method in class controlP5.Range
-
 
-
getArrayValue() - Method in class controlP5.Slider2D
-
 
-
getBackground() - Method in class controlP5.CColor
-
 
-
getBackgroundColor() - Method in class controlP5.ScrollableList
-
 
-
getBackgroundHeight() - Method in class controlP5.ControlGroup
-
-
get the height of the controlGroup's background.
-
-
getBarHeight() - Method in class controlP5.ControlGroup
-
 
-
getBaseline() - Method in class controlP5.ControlFont
-
 
-
getBehavior() - Method in class controlP5.Controller
-
 
-
getBit(int, int) - Static method in class controlP5.CP
-
 
-
getBooleanValue() - Method in class controlP5.Button
-
-
Returns true or false and indicates the switch state of the button.
-
-
getBorder() - Method in class controlP5.Tooltip
-
-
returns the value of the border
-
-
getBottom() - Method in class controlP5.ControlFont
-
 
-
getCaptionLabel() - Method in class controlP5.CColor
-
 
-
getCaptionLabel() - Method in class controlP5.Controller
-
 
-
getCaptionLabel() - Method in class controlP5.ControllerGroup
-
 
-
getCells() - Method in class controlP5.Matrix
-
 
-
getCenter() - Method in class controlP5.ControlFont
-
 
-
getColor() - Method in class controlP5.ChartData
-
 
-
getColor() - Method in class controlP5.ChartDataSet
-
 
-
getColor(int) - Method in class controlP5.ChartDataSet
-
 
-
getColor() - Method in class controlP5.Controller
-
getColor() - Method in class controlP5.ControllerGroup
-
getColor() - Method in interface controlP5.ControllerInterface
-
 
-
getColor() - Static method in class controlP5.ControlP5
-
 
-
getColor() - Method in class controlP5.Label
-
 
-
getColor() - Method in class controlP5.ListBoxItem
-
 
-
getColors() - Method in class controlP5.ChartDataSet
-
 
-
getColorValue() - Method in class controlP5.ColorPicker
-
 
-
getControlBroadcaster() - Method in class controlP5.ControlP5
-
 
-
getController() - Method in class controlP5.CallbackEvent
-
-
Returns the Controller that triggered the Callback Event.
-
-
getController() - Method in class controlP5.ControlBehavior
-
-
Returns the controller this behavior is connected to.
-
-
getController() - Method in class controlP5.ControlEvent
-
-
Returns the instance of the controller sending the ControlEvent.
-
-
getController(String) - Method in class controlP5.ControllerGroup
-
 
-
getController(String) - Method in class controlP5.ControlP5
-
 
-
getControllerPlugList() - Method in class controlP5.Controller
-
 
-
getControlWindow() - Method in class controlP5.Controller
-
 
-
getCurrentTab() - Method in class controlP5.ControlWindow
-
 
-
getCursorHeight() - Method in class controlP5.Slider2D
-
 
-
getCursorWidth() - Method in class controlP5.Slider2D
-
 
-
getCursorX() - Method in class controlP5.Slider2D
-
 
-
getCursorY() - Method in class controlP5.Slider2D
-
 
-
getData(String, int) - Method in class controlP5.Chart
-
 
-
getDataSet() - Method in class controlP5.Chart
-
 
-
getDataSet(String) - Method in class controlP5.Chart
-
 
-
getDecimalPrecision() - Method in class controlP5.Controller
-
 
-
getDefaultTab() - Method in class controlP5.ControlP5Base
-
 
-
getDefaultValue() - Method in class controlP5.Controller
-
 
-
getDirection() - Method in class controlP5.MultiList
-
 
-
getDirection() - Method in class controlP5.MultiListButton
-
 
-
getDirection() - Method in class controlP5.Slider
-
 
-
getDragDirection() - Method in class controlP5.Knob
-
-
Gets the drag direction which is either Controller.HORIZONTAL or Controller.VERTICAL.
-
-
getDrawable(int) - Method in class controlP5.ControllerList
-
 
-
getDrawables() - Method in class controlP5.ControllerList
-
 
-
getFirstFromMouseOverList() - Method in class controlP5.ControlWindow
-
 
-
getFont() - Method in class controlP5.ControlFont
-
 
-
getFont() - Method in class controlP5.ControlP5
-
 
-
getFont() - Method in class controlP5.Label
-
 
-
getForeground() - Method in class controlP5.CColor
-
 
-
getGlyph(char) - Method in class controlP5.BitFont
-
 
-
getGroup() - Method in class controlP5.ControlEvent
-
-
Returns the group that evoked the ControlEvent
-
-
getGroup(String) - Method in class controlP5.ControlP5
-
 
-
getHandleSize() - Method in class controlP5.Slider
-
 
-
getHeight() - Method in class controlP5.ControlFont
-
 
-
getHeight() - Method in class controlP5.Controller
-
 
-
getHeight() - Method in class controlP5.ControllerGroup
-
getHeight() - Method in interface controlP5.ControllerInterface
-
 
-
getHeight() - Method in class controlP5.Label
-
 
-
getHeight() - Method in class controlP5.ScrollableList
-
 
-
getHighValue() - Method in class controlP5.Range
-
 
-
getId() - Method in class controlP5.ControlEvent
-
-
Returns the controller's id, if an id has not been set before the default value -1 will be - returned.
-
-
getId() - Method in class controlP5.Controller
-
-
returns the id of a controller, by default the id is -1.
-
-
getId() - Method in class controlP5.ControllerGroup
-
getId() - Method in interface controlP5.ControllerInterface
-
 
-
getId() - Method in class controlP5.ListBoxItem
-
-
returns the id of a listboxitem.
-
-
getIndex() - Method in class controlP5.Textfield
-
 
-
getInfo() - Method in class controlP5.Bang
-
getInfo() - Method in class controlP5.Button
-
 
-
getInfo() - Method in class controlP5.Chart
-
 
-
getInfo() - Method in class controlP5.CheckBox
-
 
-
getInfo() - Method in class controlP5.ColorPicker
-
 
-
getInfo() - Method in class controlP5.ControlGroup
-
getInfo() - Method in class controlP5.Controller
-
 
-
getInfo() - Method in class controlP5.ControllerGroup
-
 
-
getInfo() - Method in class controlP5.RadioButton
-
 
-
getInterval() - Method in class controlP5.Matrix
-
 
-
getItem(int) - Method in class controlP5.CheckBox
-
-
Gets a radio button item by index.
-
-
getItem(int) - Method in class controlP5.DropdownList
-
-
returns a listBoxItem by index in the list of items.
-
-
getItem(String) - Method in class controlP5.DropdownList
-
-
TODO faulty returns a listBoxItem by name.
-
-
getItem(Controller<?>) - Method in class controlP5.DropdownList
-
-
returns a ListBoxItem based on its Button reference.
-
-
getItem(int) - Method in class controlP5.ListBox
-
-
returns a listBoxItem by index from the list of items.
-
-
getItem(String) - Method in class controlP5.ListBox
-
-
TODO faulty returns a listBoxItem by name.
-
-
getItem(Controller<?>) - Method in class controlP5.ListBox
-
-
returns a ListBoxItem based on its Button reference.
-
-
getItem(int) - Method in class controlP5.RadioButton
-
-
Gets a radio button item by index.
-
-
getItem(String) - Method in class controlP5.RadioButton
-
 
-
getItem(int) - Method in class controlP5.ScrollableList
-
-
returns a listBoxItem by index form the list of - items.
-
-
getItem(String) - Method in class controlP5.ScrollableList
-
-
TODO faulty returns a listBoxItem by name.
-
-
getItemHeight() - Method in class controlP5.Accordion
-
 
-
getItems() - Method in class controlP5.CheckBox
-
 
-
getItems() - Method in class controlP5.RadioButton
-
 
-
getItems() - Method in class controlP5.ScrollableList
-
 
-
getKey() - Method in class controlP5.ControlP5Base
-
 
-
getKeyCode() - Method in class controlP5.ControlP5Base
-
 
-
getLabel() - Method in class controlP5.ControlEvent
-
-
Gets the text of the controller's label that has evoked the event.
-
-
getLabel() - Method in class controlP5.Controller
-
-
returns the controller's caption label text.
-
-
getLabel() - Method in class controlP5.TickMark
-
 
-
getLabel() - Method in class controlP5.Tooltip
-
-
returns the current Label
-
-
getLayout() - Method in class controlP5.ControlP5Base
-
 
-
getLetterSpacing() - Method in class controlP5.Label
-
 
-
getLineHeight() - Method in class controlP5.Label
-
 
-
getLineHeight() - Method in class controlP5.Textlabel
-
 
-
getList() - Method in class controlP5.ControlP5
-
 
-
getListBoxItems() - Method in class controlP5.DropdownList
-
 
-
getListBoxItems() - Method in class controlP5.ListBox
-
 
-
getListener(int) - Method in class controlP5.ControlBroadcaster
-
-
Returns a ControlListener by index
-
-
getListener(int) - Method in class controlP5.ControlP5
-
 
-
getLowValue() - Method in class controlP5.Range
-
 
-
getMax() - Method in class controlP5.Controller
-
-
returns the maximum value of the controller.
-
-
getMax() - Method in class controlP5.Slider
-
 
-
getMaxX() - Method in class controlP5.Slider2D
-
 
-
getMaxY() - Method in class controlP5.Slider2D
-
 
-
getMin() - Method in class controlP5.Controller
-
-
returns the minimum value of the controller.
-
-
getMin() - Method in class controlP5.Slider
-
 
-
getMinItemHeight() - Method in class controlP5.Accordion
-
 
-
getMinX() - Method in class controlP5.Slider2D
-
 
-
getMinY() - Method in class controlP5.Slider2D
-
 
-
getMode() - Method in class controlP5.Matrix
-
 
-
getMouseOverList() - Method in class controlP5.ControlP5
-
-
convenience method to check if the mouse (or pointer) - is hovering over a specific controller.
-
-
getMouseOverList() - Method in class controlP5.ControlWindow
-
-
A list of controllers that are registered with a - mouseover.
-
-
getMultiplier() - Method in class controlP5.Numberbox
-
 
-
getName() - Method in class controlP5.ControlEvent
-
-
returns the controller's name
-
-
getName() - Method in class controlP5.Controller
-
-
returns the index name of the controller.
-
-
getName() - Method in class controlP5.ControllerGroup
-
 
-
getName() - Method in interface controlP5.ControllerInterface
-
 
-
getName() - Method in class controlP5.ListBoxItem
-
-
returns the name of the listboxitem.
-
-
getNumberOfTickMarks() - Method in class controlP5.Knob
-
 
-
getNumberOfTickMarks() - Method in class controlP5.Slider
-
-
returns the amount of tickmarks available for a slider
-
-
getObjectForController(ControllerInterface) - Method in class controlP5.ControlP5Base
-
 
-
getOffset(int) - Method in class controlP5.ControlFont
-
 
-
getOffsetYratio() - Method in class controlP5.Label
-
 
-
getOverflow() - Method in class controlP5.ControlFont
-
 
-
getOverflow() - Method in class controlP5.Label
-
 
-
getParent() - Method in class controlP5.Controller
-
-
returns the parent of a controller.
-
-
getParent() - Method in class controlP5.ControllerGroup
-
 
-
getParent() - Method in interface controlP5.ControllerInterface
-
 
-
getPickingColor() - Method in class controlP5.Controller
-
 
-
getPickingColor() - Method in class controlP5.ControllerGroup
-
 
-
getPickingColor() - Method in interface controlP5.ControllerInterface
-
 
-
getPointer() - Method in class controlP5.Controller
-
 
-
getPointer() - Method in class controlP5.ControlP5
-
-
convenience method to access the pointer of the main - control window.
-
-
getPointer() - Method in class controlP5.ControlWindow
-
 
-
getPosition() - Method in class controlP5.Controller
-
-
get the position of a controller.
-
-
getPosition() - Method in class controlP5.ControllerGroup
-
getPosition() - Method in interface controlP5.ControllerInterface
-
 
-
getPositionOfTabs() - Method in class controlP5.ControlWindow
-
-
Returns the position of the tab bar as PVector.
-
-
getPreviousX() - Method in class controlP5.ControlWindow.Pointer
-
 
-
getPreviousY() - Method in class controlP5.ControlWindow.Pointer
-
 
-
getProperties() - Method in class controlP5.ControlP5Base
-
 
-
getProperty(String) - Method in class controlP5.Controller
-
getProperty(String, String) - Method in class controlP5.Controller
-
getProperty(String) - Method in class controlP5.ControllerGroup
-
getProperty(String, String) - Method in class controlP5.ControllerGroup
-
getProperty(String) - Method in interface controlP5.ControllerInterface
-
 
-
getProperty(String, String) - Method in interface controlP5.ControllerInterface
-
 
-
getProperty(ControllerInterface<?>, String, String) - Method in class controlP5.ControllerProperties
-
 
-
getProperty(ControllerInterface<?>, String) - Method in class controlP5.ControllerProperties
-
 
-
getPropertySet(ControllerInterface<?>) - Method in class controlP5.ControllerProperties
-
 
-
getPublicMethodsFor(Class<?>) - Static method in class controlP5.ControlP5Base
-
 
-
getPublicMethodsFor(Class<?>, String...) - Static method in class controlP5.ControlP5Base
-
 
-
getPublicMethodsFor(Class<?>, boolean) - Static method in class controlP5.ControlP5Base
-
 
-
getPublicMethodsFor(Class<?>, boolean, String...) - Static method in class controlP5.ControlP5Base
-
 
-
getRadius() - Method in class controlP5.Knob
-
 
-
getResolution() - Method in class controlP5.Chart
-
 
-
getResolution() - Method in class controlP5.Knob
-
 
-
getRGB() - Method in class controlP5.ColorWheel
-
 
-
getScrollPosition() - Method in class controlP5.DropdownList
-
 
-
getScrollPosition() - Method in class controlP5.ListBox
-
 
-
getScrollPosition() - Method in class controlP5.Textarea
-
 
-
getSize() - Method in class controlP5.ControlFont
-
 
-
getSliderMode() - Method in class controlP5.Slider
-
 
-
getSnapshot(String) - Method in class controlP5.ControllerProperties
-
-
restores properties previously stored as snapshot in memory.
-
-
getSnapshotIndices() - Method in class controlP5.ControllerProperties
-
-
properties stored in memory can be accessed by index, getSnapshotIndices() returns the index of the snapshot - list.
-
-
getStartAngle() - Method in class controlP5.Knob
-
-
get the start angle, 0 is at 3 o'clock.
-
-
getState(int) - Method in class controlP5.CheckBox
-
-
Gets the state of an item - this can be true (for on) or false (for off) - by index.
-
-
getState(String) - Method in class controlP5.CheckBox
-
-
Gets the state of an item - this can be true (for on) or false (for off) - by name.
-
-
getState(int) - Method in class controlP5.RadioButton
-
-
Gets the state of an item - this can be true (for on) or false (for off) - by index.
-
-
getState(String) - Method in class controlP5.RadioButton
-
-
Gets the state of an item - this can be true (for on) or false (for off) - by name.
-
-
getState() - Method in class controlP5.Toggle
-
 
-
getStringValue() - Method in class controlP5.ControlEvent
-
 
-
getStringValue() - Method in class controlP5.Controller
-
 
-
getStringValue() - Method in class controlP5.ControllerGroup
-
getStringValue() - Method in interface controlP5.ControllerInterface
-
 
-
getStringValue() - Method in class controlP5.DropdownList
-
 
-
getStringValue() - Method in class controlP5.Tab
-
getStringValue() - Method in class controlP5.Textarea
-
 
-
getStrokeWeight() - Method in class controlP5.Chart
-
 
-
getStrokeWeight() - Method in class controlP5.ChartDataSet
-
 
-
getStyle() - Method in class controlP5.Label
-
 
-
getTab() - Method in class controlP5.ControlEvent
-
-
Returns the tab that triggered the ControlEvent
-
-
getTab() - Method in class controlP5.Controller
-
-
get the instance of the tab the controller belongs to.
-
-
getTab() - Method in class controlP5.ControllerGroup
-
 
-
getTab() - Method in interface controlP5.ControllerInterface
-
 
-
getTab(String) - Method in class controlP5.ControlP5
-
 
-
getTab(ControlWindow, String) - Method in class controlP5.ControlP5
-
 
-
getTab(String) - Method in class controlP5.ControlWindow
-
 
-
getTabs() - Method in class controlP5.ControlWindow
-
 
-
getText() - Method in class controlP5.ChartData
-
 
-
getText() - Method in class controlP5.Label
-
 
-
getText() - Method in class controlP5.ListBoxItem
-
-
returns the text displayed for this listboxitem.
-
-
getText() - Method in class controlP5.Textarea
-
-
returns the text content of the textarea.
-
-
getText() - Method in class controlP5.Textfield
-
 
-
getTextFormatted() - Method in class controlP5.Label
-
 
-
getTextHeight() - Method in class controlP5.ControlFont
-
 
-
getTextHeight() - Method in class controlP5.Label
-
 
-
getTextlabel(String, int, int) - Method in class controlP5.ControlP5Legacy
-
 
-
getTextlabel() - Method in class controlP5.ControlP5Legacy
-
 
-
getTextList() - Method in class controlP5.Textfield
-
 
-
getTickMark() - Method in class controlP5.Range
-
 
-
getTickMark(int) - Method in class controlP5.Slider
-
-
returns an instance of a tickmark by index.
-
-
getTickMarkLength() - Method in class controlP5.Knob
-
 
-
getTickMarks() - Method in class controlP5.Range
-
 
-
getTickMarks() - Method in class controlP5.Slider
-
-
returns an ArrayList of available tick marks for a slider.
-
-
getTickMarkWeight() - Method in class controlP5.Knob
-
 
-
getTooltip() - Method in class controlP5.ControlP5
-
 
-
getTop() - Method in class controlP5.ControlFont
-
 
-
getToUpperCase() - Method in class controlP5.ListBoxItem
-
-
returns the uppercase status of this listboxitem.
-
-
getTriggerEvent() - Method in class controlP5.Bang
-
 
-
getTriggerEvent() - Method in class controlP5.Slider
-
-
returns the current trigger event which is either Slider.PRESSED or Slider.RELEASE
-
-
getType() - Method in class controlP5.ControlEvent
-
 
-
getValue() - Method in class controlP5.ChartData
-
 
-
getValue() - Method in class controlP5.ControlBehavior
-
 
-
getValue() - Method in class controlP5.ControlEvent
-
 
-
getValue() - Method in class controlP5.Controller
-
 
-
getValue() - Method in class controlP5.ControllerGroup
-
getValue() - Method in interface controlP5.ControllerInterface
-
 
-
getValue(String) - Method in class controlP5.ControlP5
-
 
-
getValue() - Method in class controlP5.Knob
-
 
-
getValue() - Method in class controlP5.ListBoxItem
-
-
returns the value of the listboxitem.
-
-
getValue() - Method in class controlP5.Slider
-
 
-
getValue() - Method in class controlP5.Tab
-
getValue() - Method in class controlP5.Textarea
-
getValueLabel() - Method in class controlP5.CColor
-
 
-
getValueLabel() - Method in class controlP5.Controller
-
 
-
getValueLabel() - Method in class controlP5.ControllerGroup
-
 
-
getValueLabel() - Method in class controlP5.Textarea
-
-
returns the instance of the textarea's label.
-
-
getValuePosition() - Method in class controlP5.Slider
-
 
-
getValues() - Method in class controlP5.ChartDataSet
-
 
-
getValuesFrom(String) - Method in class controlP5.Chart
-
 
-
getView() - Method in class controlP5.Controller
-
 
-
getViewStyle() - Method in class controlP5.Knob
-
 
-
getWidth() - Method in class controlP5.ControlFont
-
 
-
getWidth() - Method in class controlP5.Controller
-
 
-
getWidth() - Method in class controlP5.ControllerGroup
-
getWidth() - Method in interface controlP5.ControllerInterface
-
 
-
getWidth() - Method in class controlP5.Label
-
 
-
getWidth() - Method in class controlP5.Tooltip
-
 
-
getWidthFor(String, Label, PGraphics) - Static method in class controlP5.ControlFont
-
 
-
getWindow() - Method in class controlP5.Controller
-
-
returns the control window of the controller
-
-
getWindow() - Method in class controlP5.ControllerGroup
-
 
-
getWindow() - Method in interface controlP5.ControllerInterface
-
 
-
getWindow() - Method in class controlP5.ControlP5
-
-
convenience method to access the main window - (ControlWindow class).
-
-
getWindow(PApplet) - Method in class controlP5.ControlP5
-
 
-
getX() - Method in class controlP5.ControlWindow.Pointer
-
 
-
getX(int) - Static method in class controlP5.Matrix
-
 
-
getX(float) - Static method in class controlP5.Matrix
-
 
-
getY() - Method in class controlP5.ControlWindow.Pointer
-
 
-
getY(int) - Static method in class controlP5.Matrix
-
 
-
getY(float) - Static method in class controlP5.Matrix
-
 
-
GRAY - Static variable in interface controlP5.ControlP5Constants
-
 
-
GREEN - Static variable in interface controlP5.ControlP5Constants
-
 
-
grixel - Static variable in interface controlP5.ControlP5Constants
-
 
-
grixelbase64 - Static variable in class controlP5.BitFont
-
 
-
GROUP - Static variable in class controlP5.ControlEvent
-
 
-
Group - Class in controlP5
-
 
-
Group(ControlP5, String) - Constructor for class controlP5.Group
-
-
Convenience constructor to extend Group.
-
-
Group(ControlP5, ControllerGroup<?>, String, int, int, int, int) - Constructor for class controlP5.Group
-
 
-
- - - -

H

-
-
HALF_PI - Static variable in interface controlP5.ControlP5Constants
-
 
-
handleKeyEvent(KeyEvent) - Method in class controlP5.ControlWindow
-
 
-
hashCode() - Method in class controlP5.CColor
-
 
-
hashCode() - Method in class controlP5.ControllerProperty
-
 
-
hide() - Method in class controlP5.Controller
-
 
-
hide() - Method in class controlP5.ControllerGroup
-
 
-
hide() - Method in interface controlP5.ControllerInterface
-
 
-
hide() - Method in class controlP5.ControlP5
-
-
hide all controllers and tabs inside your sketch - window.
-
-
hide(Object) - Method in class controlP5.ControlP5Base
-
 
-
HIDE - Static variable in interface controlP5.ControlP5Constants
-
 
-
hide() - Method in class controlP5.ControlWindow
-
-
hide the controllers and tabs of the ControlWindow.
-
-
hide() - Method in class controlP5.Label
-
 
-
hideArrow() - Method in class controlP5.ControllerGroup
-
 
-
hideBar() - Method in class controlP5.ControllerGroup
-
 
-
hideLabels() - Method in class controlP5.CheckBox
-
 
-
hideLabels() - Method in class controlP5.RadioButton
-
 
-
hideScrollbar() - Method in class controlP5.DropdownList
-
 
-
hideScrollbar() - Method in class controlP5.ListBox
-
 
-
hideScrollbar() - Method in class controlP5.Textarea
-
 
-
hideTickMarks() - Method in class controlP5.Knob
-
 
-
HIGHLIGHT - Static variable in interface controlP5.ControlP5Constants
-
 
-
HISTOGRAM - Static variable in class controlP5.Chart
-
 
-
HORIZONTAL - Static variable in interface controlP5.ControlP5Constants
-
 
-
hour() - Method in class controlP5.ControlTimer
-
-
Hour position of the timer in international format (0-23).
-
-
HSLtoRGB(double[]) - Method in class controlP5.ColorWheel
-
 
-
HSLtoRGB(double, double, double) - Method in class controlP5.ColorWheel
-
 
-
HSVtoRGB(double[]) - Method in class controlP5.ColorWheel
-
 
-
HSVtoRGB(double, double, double) - Method in class controlP5.ColorWheel
-
 
-
- - - -

I

-
-
i(Object) - Static method in class controlP5.ControlP5
-
 
-
i(String) - Static method in class controlP5.ControlP5
-
 
-
IDLE - Static variable in interface controlP5.ControlP5Constants
-
 
-
ignoreErrorMessage(boolean) - Static method in class controlP5.ControlBroadcaster
-
 
-
IMAGE - Static variable in interface controlP5.ControlP5Constants
-
 
-
INACTIVE - Static variable in interface controlP5.ControlP5Constants
-
 
-
INCREASE - Static variable in interface controlP5.ControlP5Constants
-
 
-
init(Label) - Method in class controlP5.ControlFont
-
 
-
init() - Method in class controlP5.Controller
-
 
-
init() - Method in class controlP5.ControllerGroup
-
 
-
init() - Method in interface controlP5.ControllerInterface
-
 
-
init() - Method in class controlP5.Slider
-
 
-
inside(int[], PVector) - Static method in class controlP5.CP
-
 
-
inside(int[], float, float) - Static method in class controlP5.CP
-
 
-
INTEGER - Static variable in interface controlP5.ControlP5Constants
-
 
-
internalValue() - Method in class controlP5.Toggle
-
 
-
intToByteArray(int) - Static method in class controlP5.CP
-
 
-
intToString(int) - Static method in class controlP5.CP
-
 
-
INVALID - Static variable in interface controlP5.ControlP5Constants
-
 
-
invoke(Object, String, Object...) - Static method in class controlP5.ControlP5
-
 
-
isActive() - Method in class controlP5.ControlBehavior
-
-
check if the behavior is active or not.
-
-
isActive() - Method in class controlP5.Controller
-
-
checks if a controller is active.
-
-
isActive() - Method in class controlP5.ListBoxItem
-
-
TODO no effect yet.
-
-
isActive() - Method in class controlP5.Tab
-
-
checks if a tab is active.
-
-
isAltDown() - Method in class controlP5.ControlP5Base
-
 
-
isAlwaysActive() - Method in class controlP5.Tab
-
 
-
isApplet - Static variable in class controlP5.ControlP5
-
 
-
isAssignableFrom(Class<?>) - Method in class controlP5.ControlEvent
-
 
-
isAutoClear() - Method in class controlP5.Textfield
-
 
-
isAutoDraw() - Method in class controlP5.ControlP5
-
-
check if the autoDraw function for the main window is - enabled(true) or disabled(false).
-
-
isBarVisible() - Method in class controlP5.ControllerGroup
-
 
-
isBarVisible() - Method in class controlP5.ScrollableList
-
 
-
isBroadcast() - Method in class controlP5.Controller
-
-
check if broadcasting is enabled or disabled for a controller.
-
-
isCollapse() - Method in class controlP5.ControllerGroup
-
 
-
isConstrained() - Method in class controlP5.Knob
-
 
-
isControlDown() - Method in class controlP5.ControlP5Base
-
 
-
isController() - Method in class controlP5.ControlEvent
-
-
Checks if the ControlEvent was triggered by a controller
-
-
isCrosshairs - Variable in class controlP5.Slider2D
-
 
-
isDrawBackground() - Method in class controlP5.ControlWindow
-
 
-
isEnabled() - Method in class controlP5.ControlWindow.Pointer
-
 
-
isEnabled() - Method in class controlP5.Tooltip
-
-
check if the tooltip is enabled or disabled
-
-
isFixedSize() - Method in class controlP5.Label
-
 
-
isFocus() - Method in class controlP5.Textfield
-
-
check if the textfield is active and in focus.
-
-
isFrom(ControllerInterface<?>) - Method in class controlP5.ControlEvent
-
-
Checks if the ControlEvent originates from a specific Controller or ControllerGroup.
-
-
isFrom(String) - Method in class controlP5.ControlEvent
-
-
checks if the ControlEvent originates from a specific Controller or ControllerGroup - identifiable by name.
-
-
isGroup() - Method in class controlP5.ControlEvent
-
-
Checks if the ControlEvent was triggered by a ControlGroup
-
-
isInside() - Method in class controlP5.Controller
-
-
returns true or false and indicates if the mouse is inside the area of a controller.
-
-
isLabelVisible() - Method in class controlP5.Controller
-
 
-
isListening() - Method in class controlP5.Controller
-
-
returns true or false for the current listening status.
-
-
isLock() - Method in class controlP5.Controller
-
 
-
isMetaDown() - Method in class controlP5.ControlP5Base
-
 
-
isMouseOver() - Method in class controlP5.Controller
-
-
check if the mouse is within this particular controller.
-
-
isMouseOver() - Method in class controlP5.ControllerGroup
-
isMouseOver() - Method in interface controlP5.ControllerInterface
-
 
-
isMouseOver() - Method in class controlP5.ControlP5
-
-
convenience method to check if the mouse (or pointer) - is hovering over any controller.
-
-
isMouseOver(ControllerInterface<?>) - Method in class controlP5.ControlP5
-
-
convenience method to check if the mouse (or pointer) - is hovering over a specific controller.
-
-
isMouseOver() - Method in class controlP5.ControlWindow
-
-
returns true if the mouse is inside a controller.
-
-
isMouseOver(ControllerInterface<?>) - Method in class controlP5.ControlWindow
-
 
-
isMousePressed() - Method in class controlP5.Controller
-
-
returns true or false if the mouse has is pressed.
-
-
isMousePressed() - Method in class controlP5.ControlWindow
-
 
-
isMoveable() - Method in class controlP5.Controller
-
-
checks if a controller is moveable.
-
-
isMoveable() - Method in class controlP5.ControllerGroup
-
 
-
isMoveable() - Method in class controlP5.ControlP5
-
-
Checks if controllers are generally moveable
-
-
isMultiline() - Method in class controlP5.Label
-
 
-
isNumeric(Object) - Static method in class controlP5.ControlP5
-
 
-
isNumeric(String) - Static method in class controlP5.ControlP5
-
 
-
isOn() - Method in class controlP5.Button
-
 
-
isOpen() - Method in class controlP5.ControllerGroup
-
 
-
isOpen() - Method in class controlP5.ScrollableList
-
 
-
isPlaying() - Method in class controlP5.Matrix
-
 
-
isPressed() - Method in class controlP5.Button
-
 
-
isScrollable() - Method in class controlP5.DropdownList
-
 
-
isScrollable() - Method in class controlP5.ListBox
-
 
-
isScrollable() - Method in class controlP5.Textarea
-
 
-
isScrollbarEnabled() - Method in class controlP5.DropdownList
-
 
-
isScrollbarEnabled() - Method in class controlP5.ListBox
-
 
-
isShiftDown() - Method in class controlP5.ControlP5Base
-
 
-
isShortcuts() - Method in class controlP5.ControlP5
-
 
-
isShowAngleRange() - Method in class controlP5.Knob
-
 
-
isShowTickMarks() - Method in class controlP5.Knob
-
 
-
isTab() - Method in class controlP5.ControlEvent
-
-
Checks if the ControlEvent was triggered by a tab
-
-
isToUpperCase() - Method in class controlP5.Label
-
 
-
isUndecorated() - Method in class controlP5.ControlWindow
-
 
-
isUpdate() - Method in class controlP5.Controller
-
-
enables the update function for a controller.
-
-
isUpdate() - Method in class controlP5.ControllerGroup
-
-
checks the update status of a controller.
-
-
isUpdate() - Method in interface controlP5.ControllerInterface
-
 
-
isUpdate() - Method in class controlP5.ControlP5
-
-
checks if automatic updates are enabled.
-
-
isUpdate() - Method in class controlP5.ControlWindow
-
-
check the update status of a control window.
-
-
isUserInteraction() - Method in class controlP5.Controller
-
 
-
isVisible() - Method in class controlP5.Controller
-
 
-
isVisible() - Method in class controlP5.ControllerGroup
-
 
-
isVisible() - Method in interface controlP5.ControllerInterface
-
 
-
isVisible() - Method in class controlP5.ControlP5
-
-
returns true or false according to the current - visibility flag.
-
-
isVisible() - Method in class controlP5.ControlWindow
-
 
-
isVisible() - Method in class controlP5.Label
-
 
-
- - - -

J

-
-
J2D - Static variable in interface controlP5.ControlP5Constants
-
 
-
- - - -

K

-
-
keepFocus(boolean) - Method in class controlP5.Textfield
-
 
-
KEYCONTROL - Static variable in interface controlP5.ControlP5Constants
-
 
-
keyEvent() - Method in interface controlP5.ControlKey
-
 
-
keyEvent(KeyEvent) - Method in class controlP5.Controller
-
 
-
keyEvent(KeyEvent) - Method in class controlP5.ControllerGroup
-
 
-
keyEvent(KeyEvent) - Method in interface controlP5.ControllerInterface
-
 
-
keyEvent(KeyEvent) - Method in class controlP5.ControlP5
-
 
-
keyEvent(KeyEvent) - Method in class controlP5.ControlWindow
-
 
-
keyEvent(KeyEvent) - Method in class controlP5.DropdownList
-
-
Adding key support.
-
-
keyEvent(KeyEvent) - Method in class controlP5.ListBox
-
-
Adding key support.
-
-
keyEvent(KeyEvent) - Method in class controlP5.ScrollableList
-
 
-
keyEvent(KeyEvent) - Method in class controlP5.Textfield
-
 
-
Knob - Class in controlP5
-
-
A knob is a circular slider which can be used with a limited and unlimited range.
-
-
Knob(ControlP5, String) - Constructor for class controlP5.Knob
-
-
Convenience constructor to extend Knob.
-
-
Knob(ControlP5, ControllerGroup<?>, String, float, float, float, int, int, int) - Constructor for class controlP5.Knob
-
 
-
- - - -

L

-
-
l(Object) - Static method in class controlP5.ControlP5
-
 
-
Label - Class in controlP5
-
-
A custom label using controlP5's BitFonts or PFont based ControlFonts.
-
-
Label(ControlP5, String) - Constructor for class controlP5.Label
-
 
-
Label(ControlP5, String, int, int, int) - Constructor for class controlP5.Label
-
 
-
LEFT - Static variable in interface controlP5.ControlP5Constants
-
 
-
LEFT - Static variable in class controlP5.Numberbox
-
 
-
LEFT_OUTSIDE - Static variable in interface controlP5.ControlP5Constants
-
 
-
LIME - Static variable in interface controlP5.ControlP5Constants
-
 
-
LINE - Static variable in class controlP5.Chart
-
 
-
LINE - Static variable in interface controlP5.ControlP5Constants
-
 
-
linebreak() - Method in class controlP5.Controller
-
 
-
linebreak() - Method in class controlP5.Numberbox
-
linebreak() - Method in class controlP5.Slider
-
linebreak() - Method in class controlP5.Toggle
-
LIST - Static variable in interface controlP5.ControlP5Constants
-
 
-
LIST - Static variable in class controlP5.ScrollableList
-
 
-
ListBox - Class in controlP5
-
-
A ListBox is a list of vertically aligned items which can be scrolled if required.
-
-
ListBox(ControlP5, String) - Constructor for class controlP5.ListBox
-
-
Convenience constructor to extend ListBox.
-
-
ListBoxItem - Class in controlP5
-
-
Used by the ListBox class.
-
-
listen(boolean) - Method in class controlP5.Controller
-
-
enables a controller to listen to changes made to the variable linked to the controller.
-
-
listenerSize() - Method in class controlP5.ControlBroadcaster
-
-
Returns the size of the ControlListener list
-
-
listenerSize() - Method in class controlP5.ControlGroup
-
 
-
listenerSize() - Method in class controlP5.Controller
-
 
-
listenerSize() - Method in class controlP5.ControllerGroup
-
 
-
listenTo(String, Object) - Method in class controlP5.ControlP5Base
-
 
-
load() - Method in class controlP5.ControllerProperties
-
-
load properties from the default properties file 'controlP5.properties'
-
-
load(String) - Method in class controlP5.ControllerProperties
-
 
-
LOAD - Static variable in interface controlP5.ControlP5Constants
-
 
-
loadLayout(String) - Method in class controlP5.ControlP5
-
 
-
loadProperties() - Method in class controlP5.ControlP5
-
-
Loads properties from a default properties file and - changes values of controllers accordingly.
-
-
loadProperties(String) - Method in class controlP5.ControlP5
-
-
Loads properties from a properties file and changes - the values of controllers accordingly, the filepath - is given by parameter theFilePath.
-
-
lock() - Method in class controlP5.Controller
-
-
disables the controller to be moved, or changed or controlled by the user.
-
-
logger - Static variable in class controlP5.ControllerProperties
-
 
-
logger - Static variable in class controlP5.ControlP5
-
 
-
logger() - Static method in class controlP5.ControlP5
-
 
-
- - - -

M

-
-
mapKeyFor(ControlKey, Object...) - Method in class controlP5.ControlP5Base
-
 
-
margin(int) - Method in class controlP5.ControllerStyle
-
 
-
margin(int, int, int, int) - Method in class controlP5.ControllerStyle
-
 
-
marginBottom - Variable in class controlP5.ControllerStyle
-
 
-
marginLeft - Variable in class controlP5.ControllerStyle
-
 
-
marginRight - Variable in class controlP5.ControllerStyle
-
 
-
marginTop - Variable in class controlP5.ControllerStyle
-
 
-
MAROON - Static variable in interface controlP5.ControlP5Constants
-
 
-
Matrix - Class in controlP5
-
-
A matrix is a 2d array with a pointer that traverses through the matrix in a timed interval.
-
-
Matrix(ControlP5, String) - Constructor for class controlP5.Matrix
-
-
Convenience constructor to extend Matrix.
-
-
Matrix(ControlP5, ControllerGroup<?>, String, int, int, int, int, int, int) - Constructor for class controlP5.Matrix
-
 
-
MENU - Static variable in interface controlP5.ControlP5Constants
-
 
-
METHOD - Static variable in interface controlP5.ControlP5Constants
-
 
-
millis() - Method in class controlP5.ControlTimer
-
-
Get the milliseconds of the timer.
-
-
minute() - Method in class controlP5.ControlTimer
-
-
Minutes position of the timer.
-
-
mode() - Method in class controlP5.Canvas
-
-
get the drawing mode of a Canvas.
-
-
mouseEvent(MouseEvent) - Method in class controlP5.ControlP5
-
 
-
mouseEvent(int, int, boolean) - Method in class controlP5.ControlWindow
-
-
when in Android mode, call mouseEvent(int, int, - boolean).
-
-
mouseEvent(MouseEvent) - Method in class controlP5.ControlWindow
-
 
-
mousePressed() - Method in class controlP5.Button
-
 
-
mousePressed() - Method in class controlP5.ControlGroup
-
 
-
mousePressed() - Method in class controlP5.Knob
-
 
-
mousePressed() - Method in class controlP5.Matrix
-
 
-
mousePressed() - Method in class controlP5.Numberbox
-
 
-
mousePressed() - Method in class controlP5.Range
-
 
-
mousePressed() - Method in class controlP5.Tab
-
mousePressed() - Method in class controlP5.Toggle
-
mouseReleased() - Method in class controlP5.Button
-
 
-
mouseReleased() - Method in class controlP5.Matrix
-
 
-
mouseReleased() - Method in class controlP5.Numberbox
-
 
-
mouseReleased() - Method in class controlP5.Range
-
 
-
mouseReleasedOutside() - Method in class controlP5.Button
-
 
-
mouseReleasedOutside() - Method in class controlP5.Knob
-
 
-
mouseReleasedOutside() - Method in class controlP5.MultiListButton
-
 
-
mouseReleasedOutside() - Method in class controlP5.Numberbox
-
 
-
mouseReleasedOutside() - Method in class controlP5.Range
-
 
-
move(ControllerProperty, String, String) - Method in class controlP5.ControllerProperties
-
-
Moves a ControllerProperty from one set to another.
-
-
move(ControllerInterface<?>, String, String) - Method in class controlP5.ControllerProperties
-
 
-
move(Object, ControllerGroup<?>) - Method in class controlP5.ControlP5
-
 
-
MOVE - Static variable in interface controlP5.ControlP5Constants
-
 
-
moveControllersForObject(Object, ControllerGroup<?>) - Method in class controlP5.ControlP5
-
 
-
moveMargin(int, int, int, int) - Method in class controlP5.ControllerStyle
-
 
-
movePadding(int, int, int, int) - Method in class controlP5.ControllerStyle
-
 
-
moveTo(ControlWindow) - Method in class controlP5.Canvas
-
-
move a canvas to another controlWindow
-
-
moveTo(String) - Method in class controlP5.Controller
-
-
moves the controller to another tab.
-
-
moveTo(Tab) - Method in class controlP5.Controller
-
-
moves the controller to another tab.
-
-
moveTo(PApplet) - Method in class controlP5.Controller
-
-
moves the controller to the default tab inside the main window.
-
-
moveTo(PApplet, String) - Method in class controlP5.Controller
-
-
moves the controller to a tab inside the main window.
-
-
moveTo(ControlWindow) - Method in class controlP5.Controller
-
-
moves the controller to the default tab of a control window - other than the main window.
-
-
moveTo(ControlWindow, String) - Method in class controlP5.Controller
-
 
-
moveTo(ControllerGroup<?>, Tab, ControlWindow) - Method in class controlP5.Controller
-
moveTo(ControlGroup<?>) - Method in class controlP5.Controller
-
 
-
moveTo(ControllerGroup<?>) - Method in class controlP5.Controller
-
moveTo(ControllerGroup<?>, Tab, ControlWindow) - Method in class controlP5.ControllerGroup
-
 
-
moveTo(ControllerGroup<?>) - Method in class controlP5.ControllerGroup
-
 
-
moveTo(Tab) - Method in class controlP5.ControllerGroup
-
 
-
moveTo(PApplet) - Method in class controlP5.ControllerGroup
-
 
-
moveTo(ControlWindow) - Method in class controlP5.ControllerGroup
-
 
-
moveTo(String) - Method in class controlP5.ControllerGroup
-
 
-
moveTo(String, ControlWindow) - Method in class controlP5.ControllerGroup
-
 
-
moveTo(ControlWindow, String) - Method in class controlP5.ControllerGroup
-
 
-
moveTo(Tab, ControlWindow) - Method in class controlP5.ControllerGroup
-
 
-
moveTo(ControllerGroup<?>, Tab, ControlWindow) - Method in interface controlP5.ControllerInterface
-
 
-
moveTo(ControllerGroup<?>) - Method in interface controlP5.ControllerInterface
-
 
-
moveTo(ControllerGroup<?>, Object) - Method in class controlP5.ControlP5Base
-
 
-
moveTo(ControlWindow) - Method in class controlP5.Tab
-
MULTI - Static variable in interface controlP5.ControlP5Constants
-
 
-
MultiList - Class in controlP5
-
-
A Multilist is a multi-menu-tree controller.
-
-
MultiList(ControlP5, String) - Constructor for class controlP5.MultiList
-
-
Convenience constructor to extend MultiList.
-
-
MultiList(ControlP5, Tab, String, int, int, int, int) - Constructor for class controlP5.MultiList
-
 
-
MultiListButton - Class in controlP5
-
-
Used by MultiList.
-
-
MULTIPLES - Static variable in interface controlP5.ControlP5Constants
-
 
-
- - - -

N

-
-
name() - Method in class controlP5.ControlWindow
-
-
returns the name of the control window.
-
-
NAVY - Static variable in interface controlP5.ControlP5Constants
-
 
-
normal() - Static method in class controlP5.ControlFont
-
-
sets the rendering of a PFont back to normal and single rendering.
-
-
Numberbox - Class in controlP5
-
-
Click and drag the mouse inside a numberbox and move up and down to change the value of a - numberbox.
-
-
Numberbox(ControlP5, String) - Constructor for class controlP5.Numberbox
-
-
Convenience constructor to extend Numberbox.
-
-
Numberbox(ControlP5, Tab, String, float, int, int, int, int) - Constructor for class controlP5.Numberbox
-
 
-
- - - -

O

-
-
observe() - Method in class controlP5.MultiList
-
 
-
observe() - Method in class controlP5.MultiListButton
-
 
-
occupied(boolean) - Method in class controlP5.MultiList
-
 
-
OLIVE - Static variable in interface controlP5.ControlP5Constants
-
 
-
onDrag() - Method in class controlP5.BoundingBox
-
 
-
onDrag() - Method in class controlP5.ColorWheel
-
 
-
onEndDrag() - Method in class controlP5.BoundingBox
-
 
-
onEndDrag() - Method in class controlP5.ColorWheel
-
 
-
onEnter() - Method in class controlP5.Chart
-
 
-
onLeave() - Method in class controlP5.Chart
-
 
-
onLeave() - Method in class controlP5.Range
-
 
-
only(ControllerProperty, String) - Method in class controlP5.ControllerProperties
-
-
stores a ControllerProperty in one particular set only.
-
-
onPress() - Method in class controlP5.ColorWheel
-
 
-
onRelease() - Method in class controlP5.ColorWheel
-
 
-
onStartDrag() - Method in class controlP5.BoundingBox
-
 
-
onStartDrag() - Method in class controlP5.ColorWheel
-
 
-
open() - Method in class controlP5.Accordion
-
 
-
open(int...) - Method in class controlP5.Accordion
-
 
-
open() - Method in class controlP5.ControllerGroup
-
 
-
OPEN - Static variable in class controlP5.ControllerProperties
-
 
-
open() - Method in class controlP5.MultiList
-
open() - Method in class controlP5.MultiListButton
-
 
-
ORANGE - Static variable in interface controlP5.ControlP5Constants
-
 
-
OVER - Static variable in interface controlP5.ControlP5Constants
-
 
-
- - - -

P

-
-
P2D - Static variable in interface controlP5.ControlP5Constants
-
 
-
P3D - Static variable in interface controlP5.ControlP5Constants
-
 
-
padding(int) - Method in class controlP5.ControllerStyle
-
 
-
padding(int, int, int, int) - Method in class controlP5.ControllerStyle
-
 
-
padding - Static variable in class controlP5.Tab
-
 
-
paddingBottom - Variable in class controlP5.ControllerStyle
-
 
-
paddingLeft - Variable in class controlP5.ControllerStyle
-
 
-
paddingRight - Variable in class controlP5.ControllerStyle
-
 
-
paddingTop - Variable in class controlP5.ControllerStyle
-
 
-
paddingX - Static variable in class controlP5.Label
-
 
-
paddingY - Static variable in class controlP5.Label
-
 
-
papplet - Variable in class controlP5.ControlP5
-
 
-
papplet() - Method in class controlP5.ControlWindow
-
-
get the papplet instance of the ControlWindow.
-
-
parent() - Method in interface controlP5.ControllerInterface
-
 
-
parseHex(String) - Static method in class controlP5.CP
-
-
convert a hex number into an int
-
-
pause() - Method in class controlP5.Matrix
-
 
-
pause() - Method in class controlP5.Println
-
 
-
PI - Static variable in interface controlP5.ControlP5Constants
-
 
-
PIE - Static variable in class controlP5.Chart
-
 
-
play() - Method in class controlP5.Matrix
-
 
-
play() - Method in class controlP5.Println
-
 
-
plug(Object, String, String) - Method in class controlP5.ControlBroadcaster
-
 
-
plug(Object, Controller<?>, String) - Method in class controlP5.ControlBroadcaster
-
 
-
plugTo(Object) - Method in class controlP5.CheckBox
-
 
-
plugTo(Object, String) - Method in class controlP5.CheckBox
-
 
-
plugTo(Object) - Method in class controlP5.ColorPicker
-
 
-
plugTo(Object, String) - Method in class controlP5.ColorPicker
-
 
-
plugTo(Object[]) - Method in class controlP5.Controller
-
-
plugs the controller to a list of objects
-
-
plugTo(Object[], String) - Method in class controlP5.Controller
-
 
-
plugTo(Object) - Method in class controlP5.Controller
-
 
-
plugTo(Object, String) - Method in class controlP5.Controller
-
 
-
plugTo(Object) - Method in class controlP5.Matrix
-
 
-
plugTo(Object, String) - Method in class controlP5.Matrix
-
 
-
plugTo(Object) - Method in class controlP5.RadioButton
-
 
-
plugTo(Object, String) - Method in class controlP5.RadioButton
-
 
-
Pointer - Interface in controlP5
-
 
-
POST - Static variable in class controlP5.Canvas
-
 
-
post() - Method in class controlP5.Canvas
-
-
set the drawing mode to POST.
-
-
PRE - Static variable in class controlP5.Canvas
-
 
-
pre() - Method in class controlP5.Canvas
-
-
set the drawing mode to PRE.
-
-
pre() - Method in class controlP5.ControlP5
-
 
-
pre() - Method in class controlP5.ControlWindow
-
 
-
PRESSED - Static variable in interface controlP5.ControlP5Constants
-
 
-
pressed() - Method in class controlP5.ControlWindow.Pointer
-
 
-
print() - Method in class controlP5.ControllerProperties
-
 
-
PRINT - Static variable in interface controlP5.ControlP5Constants
-
 
-
printControllerMap() - Method in class controlP5.ControlP5
-
 
-
Println - Class in controlP5
-
 
-
Println(Textarea) - Constructor for class controlP5.Println
-
 
-
printPublicMethodsFor(Class<?>, String...) - Static method in class controlP5.ControlP5Base
-
-
prints a list of public methods of requested class - into the console.
-
-
printPublicMethodsFor(Class<?>) - Static method in class controlP5.ControlP5Base
-
 
-
pt() - Method in interface controlP5.Pointer
-
 
-
PURPLE - Static variable in interface controlP5.ControlP5Constants
-
 
-
push(float) - Method in class controlP5.Chart
-
 
-
push(String, float) - Method in class controlP5.Chart
-
 
-
px() - Method in interface controlP5.Pointer
-
 
-
py() - Method in interface controlP5.Pointer
-
 
-
- - - -

R

-
-
r() - Method in class controlP5.ColorWheel
-
 
-
Radio - Class in controlP5
-
 
-
Radio(ControlP5, ControllerGroup<?>, String, int, int) - Constructor for class controlP5.Radio
-
 
-
RadioButton - Class in controlP5
-
-
A radioButton is a list of toggles that can be turned on or off.
-
-
RadioButton(ControlP5, String) - Constructor for class controlP5.RadioButton
-
-
Convenience constructor to extend RadioButton.
-
-
RadioButton(ControlP5, ControllerGroup<?>, String, int, int) - Constructor for class controlP5.RadioButton
-
 
-
Range - Class in controlP5
-
-
A range slider works just like a slider but can be adjusted on both ends.
-
-
Range(ControlP5, String) - Constructor for class controlP5.Range
-
-
Convenience constructor to extend Range.
-
-
Range(ControlP5, ControllerGroup<?>, String, float, float, float, float, int, int, int, int) - Constructor for class controlP5.Range
-
 
-
RED - Static variable in interface controlP5.ControlP5Constants
-
 
-
register(ControllerInterface<?>, String, String) - Method in class controlP5.ControllerProperties
-
-
adds a property based on names of setter and getter methods of a controller.
-
-
register(ControllerInterface<?>, String) - Method in class controlP5.ControllerProperties
-
-
registering a property with only one parameter assumes that there is a setter and getter function present for the - Controller.
-
-
register(Object, String, ControllerInterface<?>) - Method in class controlP5.ControlP5
-
-
registers a Controller with ControlP5, a Controller - should/must be registered with a unique name.
-
-
register(ControllerInterface<?>) - Method in class controlP5.ControlP5
-
 
-
register(Controller<?>, String) - Method in class controlP5.Tooltip
-
-
registers a controller with the Tooltip, when - activating the tooltip for a particular controller, - the registered text (second parameter) will be - displayed.
-
-
register(String, String) - Method in class controlP5.Tooltip
-
 
-
registerProperty(String) - Method in class controlP5.Controller
-
registerProperty(String, String) - Method in class controlP5.Controller
-
registerProperty(String) - Method in class controlP5.ControllerGroup
-
registerProperty(String, String) - Method in class controlP5.ControllerGroup
-
registerProperty(String) - Method in interface controlP5.ControllerInterface
-
 
-
registerProperty(String, String) - Method in interface controlP5.ControllerInterface
-
 
-
registerTooltip(String) - Method in class controlP5.Controller
-
-
adds a tooltip to a controller, by default the tooltip is disabled.
-
-
RELEASE - Static variable in interface controlP5.ControlP5Constants
-
 
-
released() - Method in class controlP5.ControlWindow.Pointer
-
 
-
remove(ControllerInterface<?>) - Method in class controlP5.Accordion
-
-
Removes a ControlGroup from the accordion AND from controlP5 remove(ControllerInterface - theGroup) overwrites it's super method.
-
-
remove(ControllerInterface<?>) - Method in class controlP5.Controller
-
 
-
remove() - Method in class controlP5.Controller
-
-
removes a controller from controlP5.
-
-
remove(ControllerInterface<?>) - Method in class controlP5.ControllerGroup
-
-
Removes a controller from the group, but use Controller.setGroup() instead.
-
-
remove(CDrawable) - Method in class controlP5.ControllerGroup
-
 
-
remove() - Method in class controlP5.ControllerGroup
-
-
removes the group from controlP5.
-
-
remove(ControllerInterface<?>) - Method in interface controlP5.ControllerInterface
-
 
-
remove() - Method in interface controlP5.ControllerInterface
-
 
-
remove(ControllerInterface<?>, String, String) - Method in class controlP5.ControllerProperties
-
 
-
remove(ControllerInterface<?>) - Method in class controlP5.ControllerProperties
-
 
-
remove(ControllerInterface<?>, String) - Method in class controlP5.ControllerProperties
-
 
-
remove(ControllerProperty, String...) - Method in class controlP5.ControllerProperties
-
-
removes a ControllerProperty from one or multiple sets.
-
-
remove(ControllerInterface<?>, String...) - Method in class controlP5.ControllerProperties
-
 
-
remove(String) - Method in class controlP5.ControlP5
-
-
removes a controlP5 element such as a controller, - group, or tab by name.
-
-
remove(Object) - Method in class controlP5.ControlP5Base
-
-
for internal use only.
-
-
remove() - Method in class controlP5.ControlWindow
-
 
-
remove() - Method in class controlP5.Matrix
-
 
-
remove() - Method in class controlP5.MultiList
-
-
removes the multilist.
-
-
remove() - Method in class controlP5.MultiListButton
-
 
-
removeBehavior() - Method in class controlP5.Controller
-
 
-
removeCallback(CallbackListener...) - Method in class controlP5.ControlBroadcaster
-
 
-
removeCallback(CallbackListener) - Method in class controlP5.ControlBroadcaster
-
 
-
removeCallback(Controller<?>...) - Method in class controlP5.ControlBroadcaster
-
-
Removes a CallbackListener for a particular controller
-
-
removeCallback(CallbackListener) - Method in class controlP5.Controller
-
 
-
removeCallback() - Method in class controlP5.Controller
-
 
-
removeCallback(CallbackListener...) - Method in class controlP5.ControlP5
-
 
-
removeCallback(Controller<?>...) - Method in class controlP5.ControlP5
-
 
-
removeCallback(Controller<?>) - Method in class controlP5.ControlP5
-
 
-
removeCanvas(Canvas) - Method in class controlP5.ControllerGroup
-
-
Removes a canvas from a controller group.
-
-
removeCanvas(Canvas) - Method in class controlP5.ControlP5
-
 
-
removeCanvas(Canvas) - Method in class controlP5.ControlWindow
-
 
-
removeCloseButton() - Method in class controlP5.ControllerGroup
-
-
TODO redesign or deprecate remove the close button.
-
-
removeData(ChartData) - Method in class controlP5.Chart
-
 
-
removeData(String, ChartData) - Method in class controlP5.Chart
-
 
-
removeData(int) - Method in class controlP5.Chart
-
 
-
removeData(String, int) - Method in class controlP5.Chart
-
 
-
removeDataSet(String) - Method in class controlP5.Chart
-
 
-
removeFirst() - Method in class controlP5.Chart
-
 
-
removeFirst(String) - Method in class controlP5.Chart
-
 
-
removeItem(ControlGroup<?>) - Method in class controlP5.Accordion
-
-
Removes a ControlGroup from the accordion and puts it back into the default tab of controlP5.
-
-
removeItem(String) - Method in class controlP5.CheckBox
-
 
-
removeItem(String) - Method in class controlP5.DropdownList
-
-
Removes an item from the ListBox using the unique name of the item given when added to the - list.
-
-
removeItem(String) - Method in class controlP5.ListBox
-
-
Removes an item from the ListBox using the unique name of the item given when added to the - list.
-
-
removeItem(String) - Method in class controlP5.RadioButton
-
 
-
removeItem(String) - Method in class controlP5.ScrollableList
-
-
Removes an item from the ScrollableList using the - unique name of the item given when added to the list.
-
-
removeKeyFor(ControlKey, int...) - Method in class controlP5.ControlP5Base
-
 
-
removeKeyFor(ControlKey, char...) - Method in class controlP5.ControlP5Base
-
 
-
removeKeysFor(char...) - Method in class controlP5.ControlP5Base
-
 
-
removeKeysFor(int...) - Method in class controlP5.ControlP5Base
-
 
-
removeLast() - Method in class controlP5.Chart
-
 
-
removeLast(String) - Method in class controlP5.Chart
-
 
-
removeListener(ControlListener...) - Method in class controlP5.ControlBroadcaster
-
 
-
removeListener(ControlListener) - Method in class controlP5.ControlGroup
-
-
remove a listener from the controller.
-
-
removeListener(ControlListener) - Method in class controlP5.Controller
-
 
-
removeListener(ControlListener) - Method in class controlP5.ControllerGroup
-
 
-
removeListener(ControlListener...) - Method in class controlP5.ControlP5
-
 
-
removeListener(ControlListener) - Method in class controlP5.ControlP5
-
 
-
removeMouseOverFor(ControllerInterface<?>) - Method in class controlP5.ControlWindow
-
 
-
removeProperty(String) - Method in class controlP5.Controller
-
removeProperty(String, String) - Method in class controlP5.Controller
-
removeProperty(String) - Method in class controlP5.ControllerGroup
-
removeProperty(String, String) - Method in class controlP5.ControllerGroup
-
removeProperty(String) - Method in interface controlP5.ControllerInterface
-
 
-
removeProperty(String, String) - Method in interface controlP5.ControllerInterface
-
 
-
removeProperty(ControllerInterface<?>) - Method in class controlP5.ControlP5Base
-
 
-
removeSnapshot(String) - Method in class controlP5.ControllerProperties
-
-
removes a snapshot by key.
-
-
removeTab(Tab) - Method in class controlP5.ControlWindow
-
 
-
RENDER_2X - Static variable in class controlP5.ControlFont
-
-
set the RENDER_2X variable to true to double render text, this makes the font look bolder - especially in OpenGL mode.
-
-
replace(String, String, String) - Static method in class controlP5.CP
-
 
-
RESET - Static variable in interface controlP5.ControlP5Constants
-
 
-
reset() - Method in class controlP5.ControlTimer
-
-
reset the timer.
-
-
resetMouseOver() - Method in class controlP5.ControlWindow
-
 
-
RGBtoHSL(int) - Method in class controlP5.ColorWheel
-
 
-
RGBtoHSL(int, int, int) - Method in class controlP5.ColorWheel
-
 
-
RGBtoHSV(int) - Method in class controlP5.ColorWheel
-
 
-
RGBtoHSV(int, int, double) - Method in class controlP5.ColorWheel
-
 
-
RIGHT - Static variable in interface controlP5.ControlP5Constants
-
 
-
RIGHT - Static variable in class controlP5.Numberbox
-
 
-
RIGHT_OUTSIDE - Static variable in interface controlP5.ControlP5Constants
-
 
-
- - - -

S

-
-
s(String) - Static method in class controlP5.ControlP5
-
 
-
s(Object) - Static method in class controlP5.ControlP5
-
 
-
s(Object, String) - Static method in class controlP5.ControlP5
-
 
-
save() - Method in class controlP5.ControllerProperties
-
-
saves all registered properties into the default 'controlP5.properties' file into your sketch folder.
-
-
SAVE - Static variable in interface controlP5.ControlP5Constants
-
 
-
saveAs(String) - Method in class controlP5.ControllerProperties
-
-
saves all registered properties into a file specified by parameter thePropertiesPath.
-
-
saveAs(String, String...) - Method in class controlP5.ControllerProperties
-
-
saves a list of properties sets into a file specified by parameter thePropertiesPath.
-
-
saveLayout(String) - Method in class controlP5.ControlP5
-
 
-
saveProperties() - Method in class controlP5.ControlP5
-
-
Saves the current values of controllers into a - default properties file
-
-
saveProperties(String) - Method in class controlP5.ControlP5
-
-
Saves the current values of controllers into a file, - the filepath is given by parameter theFilePath.
-
-
saveProperties(String, String...) - Method in class controlP5.ControlP5
-
 
-
saveSnapshot(String) - Method in class controlP5.ControllerProperties
-
-
saves a snapshot into your sketch's sketch folder.
-
-
saveSnapshotAs(String, String) - Method in class controlP5.ControllerProperties
-
-
saves a snapshot to the file with path given by the first parameter (thePropertiesPath).
-
-
scroll(float) - Method in class controlP5.DropdownList
-
-
scroll the scrollList remotely.
-
-
scroll(float) - Method in class controlP5.ListBox
-
-
scroll the scrollList remotely.
-
-
scroll(float) - Method in class controlP5.Textarea
-
-
scroll the Textarea remotely.
-
-
ScrollableList - Class in controlP5
-
-
A ScrollableList is a list of vertically aligned items - which can be scrolled if required.
-
-
ScrollableList(ControlP5, String) - Constructor for class controlP5.ScrollableList
-
 
-
ScrollableList.ScrollableListView - Class in controlP5
-
 
-
ScrollableList.ScrollableListView() - Constructor for class controlP5.ScrollableList.ScrollableListView
-
 
-
scrolled(int) - Method in class controlP5.ColorWheel
-
 
-
scrolled(int) - Method in class controlP5.DropdownList
-
 
-
scrolled(int) - Method in class controlP5.Knob
-
-
Changes the value of the knob when hovering and using the mouse wheel or the scroll function - of a multi-touch track pad.
-
-
scrolled(int) - Method in class controlP5.ListBox
-
 
-
scrolled(int) - Method in class controlP5.Numberbox
-
-
changes the value of the numberbox when hovering and using the mouse wheel or the scroll - function of a multi-touch track pad.
-
-
scrolled(int) - Method in class controlP5.Slider
-
-
changes the value of the slider when hovering and using the mouse wheel or the scroll - function of a multi-touch track pad.
-
-
scrolled(int) - Method in class controlP5.Textarea
-
 
-
second() - Method in class controlP5.ControlTimer
-
-
Seconds position of the timer.
-
-
set(Object, String, int, int, Class<?>[]) - Method in class controlP5.ControllerPlug
-
 
-
set(int, int) - Method in class controlP5.ControlWindow.Pointer
-
 
-
set(int, int, boolean) - Method in class controlP5.ControlWindow.Pointer
-
 
-
set(String) - Method in class controlP5.Label
-
 
-
set(int, int, boolean) - Method in class controlP5.Matrix
-
-
set the state of a particular cell inside a matrix.
-
-
setAbsolutePosition(PVector) - Method in class controlP5.Controller
-
setAbsolutePosition(PVector) - Method in class controlP5.ControllerGroup
-
 
-
setAbsolutePosition(PVector) - Method in interface controlP5.ControllerInterface
-
 
-
setActive(int) - Method in class controlP5.CColor
-
 
-
setActive(boolean) - Method in class controlP5.ControlBehavior
-
-
(de)activate the behavior.
-
-
setActive(boolean) - Method in class controlP5.Tab
-
-
Activates a tab.
-
-
setAddress(String) - Method in class controlP5.Controller
-
 
-
setAddress(String) - Method in class controlP5.ControllerGroup
-
setAddress(String) - Method in interface controlP5.ControllerInterface
-
 
-
setAlpha(int) - Method in class controlP5.CColor
-
 
-
setAlpha(int) - Method in class controlP5.ColorWheel
-
 
-
setAlpha(int) - Method in class controlP5.Tooltip
-
-
sets the transparency of the default background, - default value is 200
-
-
setAlwaysActive(boolean) - Method in class controlP5.Tab
-
 
-
setAngleRange(float) - Method in class controlP5.Knob
-
-
set the range in between which the know operates.
-
-
setArrayValue(float[]) - Method in class controlP5.CheckBox
-
-
Sets the value for all CheckBox items according to the values of the array passed on.
-
-
setArrayValue(float[]) - Method in class controlP5.ColorPicker
-
-
Requires an array of size 4 for RGBA
-
-
setArrayValue(float[]) - Method in class controlP5.Controller
-
 
-
setArrayValue(int, float) - Method in class controlP5.Controller
-
 
-
setArrayValue(int, float) - Method in class controlP5.ControllerGroup
-
 
-
setArrayValue(float[]) - Method in class controlP5.ControllerGroup
-
 
-
setArrayValue(int, float) - Method in interface controlP5.ControllerInterface
-
 
-
setArrayValue(float[]) - Method in interface controlP5.ControllerInterface
-
 
-
setArrayValue(float[]) - Method in class controlP5.RadioButton
-
-
Sets the value for all RadioButton items according to the values of the array passed on.
-
-
setArrayValue(float[]) - Method in class controlP5.Range
-
 
-
setArrayValue(float[]) - Method in class controlP5.Slider2D
-
 
-
setAutoAddDirection(int) - Method in class controlP5.ControlP5Base
-
 
-
setAutoClear(boolean) - Method in class controlP5.Textfield
-
 
-
setAutoDraw(boolean) - Method in class controlP5.ControlP5
-
-
by default controlP5 draws any controller on top of - any drawing done in the draw() function (this doesnt - apply to P3D where controlP5.draw() has to be called - manually in the sketch's draw() function ).
-
-
setAutoInitialization(boolean) - Method in class controlP5.ControlP5
-
-
autoInitialization can be very handy when it comes to - initializing values, e.g.
-
-
setAutoSpacing() - Method in class controlP5.ControlP5Base
-
 
-
setAutoSpacing(float) - Method in class controlP5.ControlP5Base
-
 
-
setAutoSpacing(float, float) - Method in class controlP5.ControlP5Base
-
 
-
setAutoSpacing(float, float, float) - Method in class controlP5.ControlP5Base
-
 
-
setBackground(int) - Method in class controlP5.CColor
-
 
-
setBackground(int) - Method in class controlP5.ControlP5
-
 
-
setBackground(int) - Method in class controlP5.ControlWindow
-
-
set the background color of the control window.
-
-
setBackground(int) - Method in class controlP5.Matrix
-
 
-
setBackgroundColor(int) - Method in class controlP5.ControlGroup
-
-
set the background color of a controlGroup.
-
-
setBackgroundColor(int) - Method in class controlP5.ScrollableList
-
 
-
setBackgroundHeight(int) - Method in class controlP5.ControlGroup
-
-
set the height of the controlGroup's background.
-
-
setBarHeight(int) - Method in class controlP5.ControlGroup
-
-
set the height of the top bar (used to open/close and move a controlGroup).
-
-
setBarHeight(int) - Method in class controlP5.ScrollableList
-
 
-
setBarVisible(boolean) - Method in class controlP5.ScrollableList
-
 
-
setBehavior(ControlBehavior) - Method in class controlP5.Controller
-
-
with setBehavior you can add a ControlBehavior to a controller.
-
-
setBorder(int) - Method in class controlP5.Tooltip
-
-
sets the border of the tooltip, the default border is - 4px.
-
-
setBorderColor(int) - Method in class controlP5.Textarea
-
 
-
setBroadcast(boolean) - Method in class controlP5.Controller
-
-
Use setBroadcast to enable and disable the broadcasting of changes in a controller's value.
-
-
setBroadcast(boolean) - Method in class controlP5.ControlP5
-
 
-
setCaptionLabel(int) - Method in class controlP5.CColor
-
 
-
setCaptionLabel(String) - Method in class controlP5.Controller
-
-
sets the content of the caption label of a controller.
-
-
setCaptionLabel(String) - Method in class controlP5.ControllerGroup
-
 
-
setCaptionLabel(String) - Method in interface controlP5.ControllerInterface
-
 
-
setCells(int[][]) - Method in class controlP5.Matrix
-
 
-
setCollapseMode(int) - Method in class controlP5.Accordion
-
 
-
setColor(int) - Method in class controlP5.ChartData
-
 
-
setColor(CColor) - Method in class controlP5.Controller
-
setColor(CColor) - Method in class controlP5.ControllerGroup
-
setColor(CColor) - Method in interface controlP5.ControllerInterface
-
 
-
setColor(CColor) - Method in class controlP5.ControlP5
-
 
-
setColor(CColor, Object) - Method in class controlP5.ControlP5Base
-
 
-
setColor(CColor) - Method in class controlP5.DropdownList
-
setColor(int, boolean) - Method in class controlP5.Label
-
 
-
setColor(int) - Method in class controlP5.Label
-
 
-
setColor(CColor) - Method in class controlP5.ListBox
-
setColor(CColor) - Method in class controlP5.ListBoxItem
-
 
-
setColor(int) - Method in class controlP5.Textarea
-
-
set the text color of the textarea.
-
-
setColor(int) - Method in class controlP5.Textfield
-
 
-
setColor(int) - Method in class controlP5.Textlabel
-
 
-
setColorActive(int) - Method in class controlP5.Controller
-
setColorActive(int) - Method in class controlP5.ControllerGroup
-
setColorActive(int) - Method in interface controlP5.ControllerInterface
-
 
-
setColorActive(int) - Method in class controlP5.ControlP5
-
-
sets the active state color of tabs and controllers, - this cascades down to all known controllers.
-
-
setColorActive(int) - Method in class controlP5.ControlWindow
-
-
set the color for the controller while active.
-
-
setColorActive(int) - Method in class controlP5.DropdownList
-
setColorActive(int) - Method in class controlP5.ListBox
-
setColorActive(int) - Method in class controlP5.ListBoxItem
-
 
-
setColorBackground(int) - Method in class controlP5.Controller
-
setColorBackground(int) - Method in class controlP5.ControllerGroup
-
setColorBackground(int) - Method in interface controlP5.ControllerInterface
-
 
-
setColorBackground(int) - Method in class controlP5.ControlP5
-
-
sets the background color of tabs and controllers, - this cascades down to all known controllers.
-
-
setColorBackground(int) - Method in class controlP5.ControlWindow
-
-
set the background color of the controller.
-
-
setColorBackground(int) - Method in class controlP5.DropdownList
-
setColorBackground(int) - Method in class controlP5.Label
-
 
-
setColorBackground(int) - Method in class controlP5.ListBox
-
setColorBackground(int) - Method in class controlP5.ListBoxItem
-
 
-
setColorBackground(int) - Method in class controlP5.Textarea
-
 
-
setColorBackground(int) - Method in class controlP5.Tooltip
-
-
sets the background color of the tooltip, the default - color is a dark grey
-
-
setColorCaptionLabel(int) - Method in class controlP5.Controller
-
setColorCaptionLabel(int) - Method in class controlP5.ControlP5
-
-
sets the label color of tabs and controllers, this - cascades down to all known controllers.
-
-
setColorCaptionLabel(int) - Method in class controlP5.Range
-
 
-
setColorCursor(int) - Method in class controlP5.Textfield
-
 
-
setColorForeground(int) - Method in class controlP5.Controller
-
setColorForeground(int) - Method in class controlP5.ControllerGroup
-
setColorForeground(int) - Method in interface controlP5.ControllerInterface
-
 
-
setColorForeground(int) - Method in class controlP5.ControlP5
-
-
sets the foreground color of tabs and controllers, - this cascades down to all known controllers.
-
-
setColorForeground(int) - Method in class controlP5.ControlWindow
-
-
set the foreground color of the controller.
-
-
setColorForeground(int) - Method in class controlP5.DropdownList
-
setColorForeground(int) - Method in class controlP5.ListBox
-
setColorForeground(int) - Method in class controlP5.ListBoxItem
-
 
-
setColorLabel(int) - Method in class controlP5.ControllerGroup
-
setColorLabel(int) - Method in interface controlP5.ControllerInterface
-
 
-
setColorLabel(int) - Method in class controlP5.ControlWindow
-
-
set the color of the text label of the controller.
-
-
setColorLabel(int) - Method in class controlP5.DropdownList
-
setColorLabel(int) - Method in class controlP5.ListBox
-
setColorLabel(int) - Method in class controlP5.ListBoxItem
-
 
-
setColorLabel(int) - Method in class controlP5.Tooltip
-
-
sets the text color of the tooltip's label, the - default color is a white
-
-
setColorLabels(int) - Method in class controlP5.CheckBox
-
 
-
setColorLabels(int) - Method in class controlP5.RadioButton
-
 
-
setColors(String, int...) - Method in class controlP5.Chart
-
 
-
setColors(int...) - Method in class controlP5.ChartDataSet
-
 
-
setColorTickMark(int) - Method in class controlP5.Range
-
 
-
setColorTickMark(int) - Method in class controlP5.Slider
-
-
sets the color of tick marks if enabled.
-
-
setColorValue(int) - Method in class controlP5.ColorPicker
-
setColorValue(int) - Method in class controlP5.ControllerGroup
-
setColorValue(int) - Method in interface controlP5.ControllerInterface
-
 
-
setColorValue(int) - Method in class controlP5.ControlWindow
-
-
set the color of the values.
-
-
setColorValue(int) - Method in class controlP5.DropdownList
-
setColorValue(int) - Method in class controlP5.ListBox
-
setColorValueLabel(int) - Method in class controlP5.Controller
-
 
-
setColorValueLabel(int) - Method in class controlP5.ControlP5
-
-
sets the value color of controllers, this cascades - down to all known controllers.
-
-
setColorValueLabel(int) - Method in class controlP5.Range
-
 
-
setConstrained(boolean) - Method in class controlP5.Knob
-
 
-
setContext(CDrawable) - Method in class controlP5.ControlWindow
-
-
Adds a custom context to a ControlWindow.
-
-
setCursorX(float) - Method in class controlP5.Slider2D
-
 
-
setCursorY(float) - Method in class controlP5.Slider2D
-
 
-
setData(int, ChartData) - Method in class controlP5.Chart
-
 
-
setData(String, int, ChartData) - Method in class controlP5.Chart
-
 
-
setData(float...) - Method in class controlP5.Chart
-
 
-
setData(String, float...) - Method in class controlP5.Chart
-
 
-
setDataSet(ChartDataSet) - Method in class controlP5.Chart
-
 
-
setDataSet(String, ChartDataSet) - Method in class controlP5.Chart
-
 
-
setDecimalPrecision(int) - Method in class controlP5.Controller
-
-
sets the decimal precision of a controller's float value displayed.
-
-
setDefaultValue(float) - Method in class controlP5.Controller
-
-
set the default value.
-
-
setDelay(long) - Method in class controlP5.Tooltip
-
-
A tooltip is activated when entered by the mouse, - after a given delay time the Tooltip starts to fade - in.
-
-
setDirection(int) - Method in class controlP5.Numberbox
-
-
set the direction for changing the numberbox value when dragging the mouse.
-
-
setDirection(int) - Method in class controlP5.ScrollableList
-
 
-
setDragDirection(int) - Method in class controlP5.Knob
-
-
Sets the drag direction, when controlling a knob, parameter is either Controller.HORIZONTAL - or Controller.VERTICAL.
-
-
setDraggable(boolean) - Method in class controlP5.Range
-
 
-
setDrawBackground(boolean) - Method in class controlP5.ControlWindow
-
-
by default the background of a controlWindow is - filled with a background color every frame.
-
-
setFixedSize(boolean) - Method in class controlP5.Label
-
 
-
setFocus(boolean) - Method in class controlP5.Textfield
-
 
-
setFont(ControlFont) - Method in class controlP5.ControlP5
-
 
-
setFont(PFont, int) - Method in class controlP5.ControlP5
-
 
-
setFont(PFont) - Method in class controlP5.ControlP5
-
 
-
setFont(int) - Method in class controlP5.Label
-
 
-
setFont(PFont) - Method in class controlP5.Label
-
 
-
setFont(ControlFont) - Method in class controlP5.Label
-
 
-
setFont(ControlFont) - Method in class controlP5.Textarea
-
 
-
setFont(PFont) - Method in class controlP5.Textarea
-
 
-
setFont(int) - Method in class controlP5.Textarea
-
 
-
setFont(PFont) - Method in class controlP5.Textfield
-
 
-
setFont(ControlFont) - Method in class controlP5.Textfield
-
 
-
setFont(int) - Method in class controlP5.Textfield
-
 
-
setFont(ControlFont) - Method in class controlP5.Textlabel
-
 
-
setFont(PFont) - Method in class controlP5.Textlabel
-
 
-
setForeground(int) - Method in class controlP5.CColor
-
 
-
setFormat(ControllerProperties.PropertiesStorageFormat) - Method in class controlP5.ControllerProperties
-
-
use ControllerProperties.SERIALIZED, ControllerProperties.XML or ControllerProperties.JSON as parameter.
-
-
setGap(int, int) - Method in class controlP5.Matrix
-
 
-
setGraphics(PApplet, int, int) - Method in class controlP5.ControlP5
-
 
-
setGraphics(PGraphics, int, int) - Method in class controlP5.ControlP5
-
 
-
setGrid(int, int) - Method in class controlP5.Matrix
-
 
-
setGroup(String) - Method in class controlP5.Controller
-
-
sets the group of the controller.
-
-
setGroup(ControllerGroup<?>) - Method in class controlP5.Controller
-
 
-
setGroup(ControllerGroup<?>) - Method in class controlP5.ControllerGroup
-
 
-
setGroup(String) - Method in class controlP5.ControllerGroup
-
 
-
setHandleSize(int) - Method in class controlP5.Range
-
 
-
setHandleSize(int) - Method in class controlP5.Slider
-
-
sets the size of the Slider handle, by default it is set to either the width or height of the - slider.
-
-
setHeight(int) - Method in class controlP5.Controller
-
 
-
setHeight(int) - Method in class controlP5.ControllerGroup
-
 
-
setHeight(int) - Method in class controlP5.DropdownList
-
 
-
setHeight(int) - Method in class controlP5.Label
-
 
-
setHeight(int) - Method in class controlP5.ListBox
-
 
-
setHeight(int) - Method in class controlP5.MultiListButton
-
-
set the height of a multlist button.
-
-
setHeight(int) - Method in class controlP5.Range
-
 
-
setHeight(int) - Method in class controlP5.Slider
-
-
set the height of the slider.
-
-
setHeight(int) - Method in class controlP5.Tab
-
 
-
setHeight(int) - Method in class controlP5.Textarea
-
-
set the height of the textarea.
-
-
setHeight(int) - Method in class controlP5.Textfield
-
 
-
setHeight(int) - Method in class controlP5.Textlabel
-
 
-
setHeight(int) - Method in class controlP5.Tooltip
-
 
-
setHigh(byte, int) - Static method in class controlP5.CP
-
 
-
setHighValue(float) - Method in class controlP5.Range
-
 
-
setHighValueLabel(String) - Method in class controlP5.Range
-
 
-
setHSL(double, double, double) - Method in class controlP5.ColorWheel
-
 
-
setHue(double) - Method in class controlP5.ColorWheel
-
 
-
setId(int) - Method in class controlP5.Controller
-
-
set the id of a controller.
-
-
setId(int) - Method in class controlP5.ControllerGroup
-
setId(int) - Method in interface controlP5.ControllerInterface
-
 
-
setId(int) - Method in class controlP5.ListBoxItem
-
-
set the id of a listboxitem
-
-
setImage(PImage) - Method in class controlP5.CheckBox
-
 
-
setImage(PImage, int) - Method in class controlP5.CheckBox
-
 
-
setImage(PImage) - Method in class controlP5.Controller
-
 
-
setImage(PImage, int) - Method in class controlP5.Controller
-
 
-
setImage(PImage) - Method in class controlP5.RadioButton
-
 
-
setImage(PImage, int) - Method in class controlP5.RadioButton
-
 
-
setImages(PImage, PImage, PImage) - Method in class controlP5.CheckBox
-
 
-
setImages(PImage, PImage, PImage) - Method in class controlP5.Controller
-
-
by default controllers use simple shapes, to replace these shapes with images, use - setImages().
-
-
setImages(PImage, PImage, PImage, PImage) - Method in class controlP5.Controller
-
 
-
setImages(PImage...) - Method in class controlP5.Controller
-
 
-
setImages(PImage, PImage, PImage) - Method in class controlP5.RadioButton
-
 
-
setImages(PImage...) - Method in class controlP5.Toggle
-
 
-
setIndex(int) - Method in class controlP5.DropdownList
-
 
-
setInputFilter(int) - Method in class controlP5.Textfield
-
 
-
setInternalValue(float) - Method in class controlP5.Toggle
-
-
by default a toggle returns 0 (for off) and 1 (for on).
-
-
setInterval(int) - Method in class controlP5.FrameRate
-
 
-
setInterval(int) - Method in class controlP5.Matrix
-
-
set the speed of intervals in millis iterating through the matrix.
-
-
setItemHeight(int) - Method in class controlP5.Accordion
-
 
-
setItemHeight(int) - Method in class controlP5.CheckBox
-
-
set the height of a radioButton/checkBox item.
-
-
setItemHeight(int) - Method in class controlP5.DropdownList
-
 
-
setItemHeight(int) - Method in class controlP5.ListBox
-
 
-
setItemHeight(int) - Method in class controlP5.RadioButton
-
-
set the height of a radioButton/checkBox item.
-
-
setItemHeight(int) - Method in class controlP5.ScrollableList
-
 
-
setItems(String[]) - Method in class controlP5.ScrollableList
-
 
-
setItems(List<?>) - Method in class controlP5.ScrollableList
-
 
-
setItems(List<?>, int) - Method in class controlP5.ScrollableList
-
 
-
setItemsPerRow(int) - Method in class controlP5.CheckBox
-
-
Items of a radioButton or a checkBox are organized in columns and rows.
-
-
setItemsPerRow(int) - Method in class controlP5.RadioButton
-
-
Items of a radioButton or a checkBox are organized in columns and rows.
-
-
setItemWidth(int) - Method in class controlP5.CheckBox
-
-
set the width of a radioButton/checkBox item.
-
-
setItemWidth(int) - Method in class controlP5.RadioButton
-
-
set the width of a radioButton/checkBox item.
-
-
setLabel(String) - Method in class controlP5.ControllerGroup
-
 
-
setLabel(String) - Method in interface controlP5.ControllerInterface
-
 
-
setLabel(String) - Method in class controlP5.Tab
-
-
set the label of the group.
-
-
setLabel(String) - Method in class controlP5.TickMark
-
 
-
setLabel(Label) - Method in class controlP5.Tooltip
-
-
sets the Label to a custom label and replaces the - default label.
-
-
setLabelPadding(int, int) - Method in class controlP5.RadioButton
-
 
-
setLabelVisible(boolean) - Method in class controlP5.Controller
-
-
show or hide the labels of a controller.
-
-
setLength(int) - Method in class controlP5.TickMark
-
 
-
setLetterSpacing(int) - Method in class controlP5.Label
-
 
-
setLetterSpacing(int) - Method in class controlP5.Textlabel
-
-
set the letter spacing of the font.
-
-
setLightness(double) - Method in class controlP5.ColorWheel
-
 
-
setLineHeight(int) - Method in class controlP5.Label
-
 
-
setLineHeight(int) - Method in class controlP5.Textarea
-
-
set the lineheight of the textarea.
-
-
setLineHeight(int) - Method in class controlP5.Textlabel
-
 
-
setListBoxItems(String[][]) - Method in class controlP5.DropdownList
-
 
-
setListBoxItems(String[][]) - Method in class controlP5.ListBox
-
 
-
setLocation(int, int) - Method in class controlP5.ControlWindow
-
 
-
setLock(boolean) - Method in class controlP5.Controller
-
-
sets the lock status of the controller
-
-
setLow(byte, int) - Static method in class controlP5.CP
-
 
-
setLowValue(float) - Method in class controlP5.Range
-
 
-
setLowValueLabel(String) - Method in class controlP5.Range
-
 
-
setMargin(int, int, int, int) - Method in class controlP5.ControllerStyle
-
 
-
setMarginBottom(int) - Method in class controlP5.ControllerStyle
-
 
-
setMarginLeft(int) - Method in class controlP5.ControllerStyle
-
 
-
setMarginRight(int) - Method in class controlP5.ControllerStyle
-
 
-
setMarginTop(int) - Method in class controlP5.ControllerStyle
-
 
-
setMax(float) - Method in class controlP5.Controller
-
-
sets the maximum value of the Controller.
-
-
setMax(float) - Method in class controlP5.Knob
-
 
-
setMax(int) - Method in class controlP5.Println
-
 
-
setMax(float) - Method in class controlP5.Range
-
 
-
setMax(float) - Method in class controlP5.Slider
-
-
set the maximum value of the slider.
-
-
setMaxX(float) - Method in class controlP5.Slider2D
-
-
sets the maximum value for the x-axis
-
-
setMaxY(float) - Method in class controlP5.Slider2D
-
-
sets the maximum value for the y-axis
-
-
setMin(float) - Method in class controlP5.Controller
-
-
sets the minimum value of the Controller.
-
-
setMin(float) - Method in class controlP5.Knob
-
 
-
setMin(float) - Method in class controlP5.Range
-
 
-
setMin(float) - Method in class controlP5.Slider
-
-
sets the minimum value of the slider.
-
-
setMinItemHeight(int) - Method in class controlP5.Accordion
-
-
Sets the minimum height of a collapsed item, default value is 100.
-
-
setMinX(float) - Method in class controlP5.Slider2D
-
-
sets the minimum value for the x-axis
-
-
setMinY(float) - Method in class controlP5.Slider2D
-
-
sets the minimum value for the y-axis
-
-
setMode(int) - Method in class controlP5.Canvas
-
 
-
setMode(int) - Method in class controlP5.Matrix
-
-
use setMode to change the cell-activation which by default is ControlP5.SINGLE_ROW, 1 active - cell per row, but can be changed to ControlP5.SINGLE_COLUMN or ControlP5.MULTIPLES
-
-
setMode(int) - Method in class controlP5.Toggle
-
-
set the visual mode of a Toggle.
-
-
setMouseOver(boolean) - Method in class controlP5.Controller
-
 
-
setMouseOver(boolean) - Method in class controlP5.ControllerGroup
-
 
-
setMouseOver(boolean) - Method in interface controlP5.ControllerInterface
-
 
-
setMousePressed(boolean) - Method in class controlP5.Controller
-
 
-
setMousePressed(boolean) - Method in class controlP5.ControllerGroup
-
 
-
setMousePressed(boolean) - Method in interface controlP5.ControllerInterface
-
 
-
setMouseWheelRotation(int) - Method in class controlP5.ControlP5
-
 
-
setMoveable(boolean) - Method in class controlP5.Controller
-
-
enable or prevent the controller to be moveable.
-
-
setMoveable(boolean) - Method in class controlP5.ControllerGroup
-
-
set the moveable status of the group, when false, the group can't be moved.
-
-
setMoveable(boolean) - Method in class controlP5.ControlP5
-
-
Enables/disables Controllers to be moved around when - ALT-key is down and mouse is dragged.
-
-
setMultiline(boolean) - Method in class controlP5.Label
-
 
-
setMultiline(boolean) - Method in class controlP5.Textlabel
-
 
-
setMultiplier(float) - Method in class controlP5.Numberbox
-
 
-
setNoneSelectedAllowed(boolean) - Method in class controlP5.CheckBox
-
-
In order to always have 1 item selected, use setNoneSelectedAllowed(false), by default this - is true.
-
-
setNoneSelectedAllowed(boolean) - Method in class controlP5.RadioButton
-
-
In order to always have 1 item selected, use setNoneSelectedAllowed(false), by default this - is true.
-
-
setNumberOfTickMarks(int) - Method in class controlP5.Knob
-
 
-
setNumberOfTickMarks(int) - Method in class controlP5.Range
-
 
-
setNumberOfTickMarks(int) - Method in class controlP5.Slider
-
-
sets the number of tickmarks for a slider, by default tick marks are turned off.
-
-
setOff() - Method in class controlP5.Button
-
-
If the button acts as a switch, setOff will turn off the switch.
-
-
setOffsetY(int) - Method in class controlP5.Label
-
 
-
setOffsetYratio(float) - Method in class controlP5.Label
-
 
-
setOn() - Method in class controlP5.Button
-
-
If the button acts as a switch, setOn will turn on the switch.
-
-
setOpen(boolean) - Method in class controlP5.ControllerGroup
-
 
-
setOpen(boolean) - Method in class controlP5.ScrollableList
-
 
-
setPadding(int, int, int, int) - Method in class controlP5.ControllerStyle
-
 
-
setPadding(int, int) - Method in class controlP5.Label
-
 
-
setPaddingBottom(int) - Method in class controlP5.ControllerStyle
-
 
-
setPaddingLeft(int) - Method in class controlP5.ControllerStyle
-
 
-
setPaddingRight(int) - Method in class controlP5.ControllerStyle
-
 
-
setPaddingTop(int) - Method in class controlP5.ControllerStyle
-
 
-
setPaddingX(int) - Method in class controlP5.Label
-
 
-
setPaddingY(int) - Method in class controlP5.Label
-
 
-
setParent(ControllerInterface<?>) - Method in class controlP5.Controller
-
-
set the parent of a parent of a controller.
-
-
setPasswordMode(boolean) - Method in class controlP5.Textfield
-
 
-
setPosition(PVector) - Method in class controlP5.Controller
-
setPosition(float, float) - Method in class controlP5.Controller
-
-
set the position of a controller.
-
-
setPosition(float, float) - Method in class controlP5.ControllerGroup
-
-
set the position of this controller.
-
-
setPosition(PVector) - Method in class controlP5.ControllerGroup
-
setPosition(float, float) - Method in interface controlP5.ControllerInterface
-
 
-
setPosition(PVector) - Method in interface controlP5.ControllerInterface
-
 
-
setPosition(int, int, Object) - Method in class controlP5.ControlP5Base
-
 
-
setPosition(int, int) - Method in class controlP5.ControlWindow
-
 
-
setPositionOffset(float, float) - Method in class controlP5.Tooltip
-
-
adds an offset to the position of the controller - relative to the mouse cursor's position.
-
-
setPositionOfTabs(PVector) - Method in class controlP5.ControlWindow
-
-
Sets the position of the tab bar which is set to 0,0 - by default.
-
-
setPositionOfTabs(int, int) - Method in class controlP5.ControlWindow
-
 
-
setPrintStackTrace(boolean) - Static method in class controlP5.ControlBroadcaster
-
 
-
setRadius(float) - Method in class controlP5.Knob
-
 
-
setRange(float, float) - Method in class controlP5.Chart
-
 
-
setRange(float, float) - Method in class controlP5.Knob
-
 
-
setRange(float, float) - Method in class controlP5.Numberbox
-
 
-
setRange(float, float) - Method in class controlP5.Range
-
 
-
setRange(float, float) - Method in class controlP5.Slider
-
 
-
setRangeValues(float, float) - Method in class controlP5.Range
-
 
-
setResolution(int) - Method in class controlP5.Chart
-
-
?
-
-
setResolution(float) - Method in class controlP5.Knob
-
-
resolution is a sensitivity value when dragging a knob.
-
-
setRGB(int) - Method in class controlP5.ColorWheel
-
 
-
setSaturation(double) - Method in class controlP5.ColorWheel
-
 
-
setScrollActive(int) - Method in class controlP5.Textarea
-
 
-
setScrollBackground(int) - Method in class controlP5.Textarea
-
 
-
setScrollbarVisible(boolean) - Method in class controlP5.DropdownList
-
 
-
setScrollbarVisible(boolean) - Method in class controlP5.ListBox
-
 
-
setScrollbarWidth(int) - Method in class controlP5.DropdownList
-
 
-
setScrollbarWidth(int) - Method in class controlP5.ListBox
-
 
-
setScrollForeground(int) - Method in class controlP5.Textarea
-
 
-
setScrollSensitivity(float) - Method in class controlP5.Knob
-
-
Sets the sensitivity for the scroll behavior when using the mouse wheel or the scroll - function of a multi-touch track pad.
-
-
setScrollSensitivity(float) - Method in class controlP5.Numberbox
-
-
sets the sensitivity for the scroll behavior when using the mouse wheel or the scroll - function of a multi-touch track pad.
-
-
setScrollSensitivity(float) - Method in class controlP5.ScrollableList
-
 
-
setScrollSensitivity(float) - Method in class controlP5.Slider
-
-
sets the sensitivity for the scroll behavior when using the mouse wheel or the scroll - function of a multi-touch track pad.
-
-
setShowAngleRange(boolean) - Method in class controlP5.Knob
-
 
-
setSize(PImage) - Method in class controlP5.CheckBox
-
 
-
setSize(int, int) - Method in class controlP5.CheckBox
-
 
-
setSize(int) - Method in class controlP5.ControlFont
-
 
-
setSize(int, int) - Method in class controlP5.ControlGroup
-
 
-
setSize(PImage) - Method in class controlP5.Controller
-
-
auto-updates the size of a controller according to the dimensions of the PImage.
-
-
setSize(int, int) - Method in class controlP5.Controller
-
 
-
setSize(int, int) - Method in class controlP5.ControllerGroup
-
 
-
setSize(int, int) - Method in class controlP5.DropdownList
-
 
-
setSize(int, int) - Method in class controlP5.Knob
-
 
-
setSize(int) - Method in class controlP5.Label
-
 
-
setSize(int, int) - Method in class controlP5.ListBox
-
 
-
setSize(PImage) - Method in class controlP5.RadioButton
-
 
-
setSize(int, int) - Method in class controlP5.RadioButton
-
 
-
setSize(int, int) - Method in class controlP5.Slider
-
 
-
setSize(int, int) - Method in class controlP5.Textarea
-
 
-
setSliderMode(int) - Method in class controlP5.Range
-
 
-
setSliderMode(int) - Method in class controlP5.Slider
-
-
use the slider mode to set the mode of the slider bar, which can be Slider.FLEXIBLE or - Slider.FIX
-
-
setSnapshot(String) - Method in class controlP5.ControllerProperties
-
-
logs all registered properties in memory.
-
-
setSpacingColumn(int) - Method in class controlP5.CheckBox
-
-
Sets the spacing in pixels between columns.
-
-
setSpacingColumn(int) - Method in class controlP5.RadioButton
-
-
Sets the spacing in pixels between columns.
-
-
setSpacingRow(int) - Method in class controlP5.CheckBox
-
-
Sets the spacing in pixels between rows.
-
-
setSpacingRow(int) - Method in class controlP5.RadioButton
-
-
Sets the spacing in pixels between rows.
-
-
setSpeedOfTime(float) - Method in class controlP5.ControlTimer
-
-
set the speed of time, for slow motion or high speed.
-
-
setStartAngle(float) - Method in class controlP5.Knob
-
-
The start angle is a value between 0 and TWO_PI.
-
-
setState(boolean) - Method in class controlP5.Toggle
-
-
sets the state of the toggle, this can be true or false.
-
-
setStringValue(String) - Method in class controlP5.Controller
-
 
-
setStringValue(String) - Method in class controlP5.ControllerGroup
-
setStringValue(String) - Method in interface controlP5.ControllerInterface
-
 
-
setStringValue(String) - Method in class controlP5.Textlabel
-
 
-
setStrokeWeight(float) - Method in class controlP5.Chart
-
 
-
setStrokeWeight(float) - Method in class controlP5.ChartDataSet
-
 
-
setSwitch(boolean) - Method in class controlP5.Button
-
-
Turns a button into a switch, or use a Toggle instead.
-
-
setTab(String) - Method in class controlP5.Controller
-
-
sets the tab of the controller.
-
-
setTab(ControlWindow, String) - Method in class controlP5.Controller
-
 
-
setTab(String) - Method in class controlP5.ControllerGroup
-
 
-
setTab(ControlWindow, String) - Method in class controlP5.ControllerGroup
-
 
-
setTab(Tab) - Method in class controlP5.ControllerGroup
-
 
-
setTabEventsActive(boolean) - Method in class controlP5.ControlP5
-
-
By default event originating from tabs are disabled, - use setTabEventsActive(true) to receive controlEvents - when tabs are clicked.
-
-
setText(String) - Method in class controlP5.ChartData
-
 
-
setText(String) - Method in class controlP5.Label
-
 
-
setText(String) - Method in class controlP5.ListBoxItem
-
-
change text text of a lsitboxitem's label.
-
-
setText(String) - Method in class controlP5.Textarea
-
-
set the text of the textarea.
-
-
setText(String) - Method in class controlP5.Textfield
-
 
-
setText(String) - Method in class controlP5.Textlabel
-
 
-
setTickMarkLength(int) - Method in class controlP5.Knob
-
 
-
setTickMarkWeight(float) - Method in class controlP5.Knob
-
 
-
setTitle(String) - Method in class controlP5.ControllerGroup
-
 
-
setTooltip(Tooltip) - Method in class controlP5.ControlP5
-
 
-
setTriggerEvent(int) - Method in class controlP5.Bang
-
-
By default a bang is triggered when the mouse is pressed.
-
-
setTriggerEvent(int) - Method in class controlP5.Slider
-
-
the trigger event is set to Slider.PRESSED by default but can be changed to Slider.RELEASE so - that events are triggered when the slider is released.
-
-
setType(int) - Method in class controlP5.ScrollableList
-
 
-
setUndecorated(boolean) - Method in class controlP5.ControlWindow
-
 
-
setup(PGraphics) - Method in class controlP5.Canvas
-
 
-
setup() - Method in class controlP5.MultiList
-
 
-
setUpdate(boolean) - Method in class controlP5.Controller
-
-
disables the update function for a controller.
-
-
setUpdate(boolean) - Method in class controlP5.ControllerGroup
-
-
enables or disables the update function of a controller.
-
-
setUpdate(boolean) - Method in interface controlP5.ControllerInterface
-
 
-
setUpdate(boolean) - Method in class controlP5.ControlP5
-
-
changes the update behavior according to parameter - theFlag
-
-
setUpdate(boolean) - Method in class controlP5.ControlWindow
-
-
enable or disable the update function of a control - window.
-
-
setUserInteraction(boolean) - Method in class controlP5.Controller
-
 
-
setValue(float) - Method in class controlP5.Bang
-
-
Sets the value of the bang controller.
-
-
setValue(float) - Method in class controlP5.Button
-
setValue(float) - Method in class controlP5.Chart
-
 
-
setValue(float) - Method in class controlP5.ChartData
-
 
-
setValue(float) - Method in class controlP5.ControlBehavior
-
 
-
setValue(float) - Method in class controlP5.Controller
-
 
-
setValue(float) - Method in class controlP5.ControllerGroup
-
setValue(float) - Method in interface controlP5.ControllerInterface
-
 
-
setValue(float) - Method in class controlP5.DropdownList
-
 
-
setValue(float) - Method in class controlP5.Knob
-
 
-
setValue(float) - Method in class controlP5.ListBox
-
 
-
setValue(float) - Method in class controlP5.Matrix
-
 
-
setValue(float) - Method in class controlP5.MultiList
-
setValue(float) - Method in class controlP5.Numberbox
-
-
set the value of the numberbox.
-
-
setValue(float) - Method in class controlP5.Range
-
-
set the value of the range-slider.
-
-
setValue(float) - Method in class controlP5.Slider
-
-
set the value of the slider.
-
-
setValue(float) - Method in class controlP5.Slider2D
-
 
-
setValue(float) - Method in class controlP5.Tab
-
setValue(float) - Method in class controlP5.Textfield
-
 
-
setValue(String) - Method in class controlP5.Textfield
-
 
-
setValue(float) - Method in class controlP5.Textlabel
-
 
-
setValue(String) - Method in class controlP5.Textlabel
-
-
set the text of the textlabel.
-
-
setValue(float) - Method in class controlP5.Toggle
-
setValue(boolean) - Method in class controlP5.Toggle
-
 
-
setValueLabel(int) - Method in class controlP5.CColor
-
 
-
setValueLabel(String) - Method in class controlP5.Controller
-
-
set or change the value of the value label of a controller.
-
-
setValueLabelSeparator(String) - Method in class controlP5.Slider2D
-
 
-
setValueSelf(float) - Method in class controlP5.Controller
-
 
-
setView(int) - Method in class controlP5.Chart
-
 
-
setView(ControllerView<T>) - Method in class controlP5.Controller
-
-
use setDisplay to customize your controller look.
-
-
setView(ControllerView<T>, int) - Method in class controlP5.Controller
-
 
-
setView(ControllerView<?>) - Method in class controlP5.Tooltip
-
-
A custom view can be set for a Tooltip.
-
-
setViewStyle(int) - Method in class controlP5.Knob
-
-
set the display style of a knob.
-
-
setVisible(boolean) - Method in class controlP5.Controller
-
 
-
setVisible(boolean) - Method in class controlP5.ControllerGroup
-
 
-
setVisible(boolean) - Method in class controlP5.ControlP5
-
 
-
setVisible(boolean) - Method in class controlP5.Label
-
 
-
setWidth(int) - Method in class controlP5.Accordion
-
 
-
setWidth(int) - Method in class controlP5.Controller
-
 
-
setWidth(int) - Method in class controlP5.ControllerGroup
-
 
-
setWidth(int) - Method in class controlP5.DropdownList
-
 
-
setWidth(int) - Method in class controlP5.Label
-
 
-
setWidth(int) - Method in class controlP5.ListBox
-
 
-
setWidth(int) - Method in class controlP5.MultiListButton
-
-
set the width of a multlist button.
-
-
setWidth(int) - Method in class controlP5.Range
-
 
-
setWidth(int) - Method in class controlP5.Slider
-
-
set the width of the slider.
-
-
setWidth(int) - Method in class controlP5.Tab
-
 
-
setWidth(int) - Method in class controlP5.Textarea
-
-
set the width of the textarea.
-
-
setWidth(int) - Method in class controlP5.Textfield
-
 
-
setWidth(int) - Method in class controlP5.Textlabel
-
 
-
setWidth(int) - Method in class controlP5.Tooltip
-
-
with the default display, the width of the tooltip is - set automatically, therefore setWidth() does not have - any effect without changing the default display to a - custom ControllerView.
-
-
setX(int) - Method in class controlP5.ControlWindow.Pointer
-
 
-
setY(int) - Method in class controlP5.ControlWindow.Pointer
-
 
-
sharp() - Static method in class controlP5.ControlFont
-
-
renders a PFont twice for better and sharper readability
-
-
SHIFT - Static variable in interface controlP5.ControlP5Constants
-
 
-
show() - Method in class controlP5.Controller
-
 
-
show() - Method in class controlP5.ControllerGroup
-
 
-
show() - Method in interface controlP5.ControllerInterface
-
 
-
show() - Method in class controlP5.ControlP5
-
-
shows all controllers and tabs in your sketch.
-
-
show(Object) - Method in class controlP5.ControlP5Base
-
 
-
show() - Method in class controlP5.ControlWindow
-
 
-
show() - Method in class controlP5.Label
-
 
-
showArrow() - Method in class controlP5.ControllerGroup
-
 
-
showBar() - Method in class controlP5.ControllerGroup
-
 
-
showLabels() - Method in class controlP5.CheckBox
-
 
-
showLabels() - Method in class controlP5.RadioButton
-
 
-
showScrollbar() - Method in class controlP5.DropdownList
-
 
-
showScrollbar() - Method in class controlP5.ListBox
-
 
-
showScrollbar() - Method in class controlP5.Textarea
-
 
-
showTickMarks() - Method in class controlP5.Knob
-
 
-
showTickMarks(boolean) - Method in class controlP5.Range
-
 
-
showTickMarks(boolean) - Method in class controlP5.Slider
-
-
shows or hides tickmarks for a slider
-
-
shuffle() - Method in class controlP5.Knob
-
-
Assigns a random value to the controller.
-
-
shuffle() - Method in class controlP5.Numberbox
-
-
assigns a random value to the controller.
-
-
shuffle() - Method in class controlP5.Slider
-
-
assigns a random value to the slider.
-
-
shuffle() - Method in class controlP5.Slider2D
-
-
assigns a random value to the controller.
-
-
SILVER - Static variable in interface controlP5.ControlP5Constants
-
 
-
SINGLE - Static variable in interface controlP5.ControlP5Constants
-
 
-
SINGLE_COLUMN - Static variable in interface controlP5.ControlP5Constants
-
 
-
SINGLE_ROW - Static variable in interface controlP5.ControlP5Constants
-
 
-
size() - Method in class controlP5.Chart
-
 
-
size() - Method in class controlP5.ControllerList
-
 
-
sizeDrawable() - Method in class controlP5.ControllerList
-
 
-
Slider - Class in controlP5
-
-
A slider is either used horizontally or vertically.
-
-
Slider(ControlP5, String) - Constructor for class controlP5.Slider
-
-
Convenience constructor to extend Slider.
-
-
Slider(ControlP5, ControllerGroup<?>, String, float, float, float, int, int, int, int) - Constructor for class controlP5.Slider
-
 
-
Slider2D - Class in controlP5
-
-
The Slider2D allows to control a handle within a 2D area.
-
-
Slider2D(ControlP5, String) - Constructor for class controlP5.Slider2D
-
-
Convenience constructor to extend Slider2D.
-
-
snapToTickMarks(boolean) - Method in class controlP5.Knob
-
 
-
snapToTickMarks(boolean) - Method in class controlP5.Range
-
 
-
snapToTickMarks(boolean) - Method in class controlP5.Slider
-
-
enables or disables snap to tick marks.
-
-
SPRITE - Static variable in interface controlP5.ControlP5Constants
-
 
-
standard56 - Static variable in interface controlP5.ControlP5Constants
-
 
-
standard56base64 - Static variable in class controlP5.BitFont
-
 
-
standard58 - Static variable in interface controlP5.ControlP5Constants
-
 
-
standard58base64 - Static variable in class controlP5.BitFont
-
 
-
stop() - Method in class controlP5.Matrix
-
 
-
stopListeningTo(String, Object) - Method in class controlP5.ControlP5Base
-
 
-
STRING - Static variable in interface controlP5.ControlP5Constants
-
 
-
stringValue() - Method in class controlP5.ControlGroup
-
-
!!! experimental, see ControllerGroup.value()
-
-
submit() - Method in class controlP5.Textfield
-
-
make the controller execute a return event.
-
-
SWITCH - Static variable in interface controlP5.ControlP5Constants
-
 
-
SWITCH_BACK - Static variable in interface controlP5.ControlP5Constants
-
 
-
SWITCH_FORE - Static variable in interface controlP5.ControlP5Constants
-
 
-
synt24 - Static variable in interface controlP5.ControlP5Constants
-
 
-
- - - -

T

-
-
t() - Method in interface controlP5.Pointer
-
 
-
TAB - Static variable in class controlP5.ControlEvent
-
 
-
TAB - Static variable in interface controlP5.ControlP5Constants
-
 
-
Tab - Class in controlP5
-
-
Tabs are used to organize controllers.
-
-
Tab(ControlP5, ControlWindow, String) - Constructor for class controlP5.Tab
-
 
-
TEAL - Static variable in interface controlP5.ControlP5Constants
-
 
-
Textarea - Class in controlP5
-
-
a textarea can be used to leave notes, it uses the controlP5 BitFont to render text.
-
-
Textarea(ControlP5, String) - Constructor for class controlP5.Textarea
-
-
Convenience constructor to extend Textarea.
-
-
Textarea(String, int, int) - Constructor for class controlP5.Textarea
-
 
-
Textfield - Class in controlP5
-
-
A singleline input textfield, use arrow keys to go back and forth, use backspace to delete - characters.
-
-
Textfield(ControlP5, String) - Constructor for class controlP5.Textfield
-
-
Convenience constructor to extend Textfield.
-
-
Textfield(ControlP5, ControllerGroup<?>, String, String, int, int, int, int) - Constructor for class controlP5.Textfield
-
 
-
Textfield.InputFilter - Enum in controlP5
-
 
-
Textlabel - Class in controlP5
-
 
-
Textlabel(ControlP5, String, int, int) - Constructor for class controlP5.Textlabel
-
 
-
Textlabel(ControlP5, String, int, int, int, int) - Constructor for class controlP5.Textlabel
-
 
-
THEME_A - Static variable in interface controlP5.ControlP5Constants
-
 
-
THEME_CP52014 - Static variable in interface controlP5.ControlP5Constants
-
 
-
THEME_CP5BLUE - Static variable in interface controlP5.ControlP5Constants
-
 
-
THEME_RED - Static variable in interface controlP5.ControlP5Constants
-
 
-
THEME_RETRO - Static variable in interface controlP5.ControlP5Constants
-
 
-
THEME_WHITE - Static variable in interface controlP5.ControlP5Constants
-
 
-
TickMark - Class in controlP5
-
-
Tickmarks are used by the Slider and Knob controller.
-
-
TickMark(Controller<?>) - Constructor for class controlP5.TickMark
-
 
-
time() - Method in class controlP5.ControlTimer
-
-
get the time in milliseconds since the timer was started.
-
-
toggle(int) - Method in class controlP5.CheckBox
-
-
toggle a single checkbox item by index
-
-
toggle(String) - Method in class controlP5.CheckBox
-
-
deactivate a single checkbox item by name
-
-
toggle(int) - Method in class controlP5.RadioButton
-
 
-
Toggle - Class in controlP5
-
-
a toggle can have two states, true and false, where true has the value 1 and false is 0.
-
-
Toggle(ControlP5, String) - Constructor for class controlP5.Toggle
-
-
Convenience constructor to extend Toggle.
-
-
Toggle(ControlP5, Tab, String, float, float, float, int, int) - Constructor for class controlP5.Toggle
-
 
-
toggle() - Method in class controlP5.Toggle
-
-
switch the state of a toggle.
-
-
toggleUndecorated() - Method in class controlP5.ControlWindow
-
 
-
toList(Object) - Static method in class controlP5.ControlP5
-
 
-
toMap(Object) - Static method in class controlP5.ControlP5
-
 
-
Tooltip - Class in controlP5
-
-
A tooltip can be registered for individual controllers - and is activated on rollover.
-
-
TOP - Static variable in interface controlP5.ControlP5Constants
-
 
-
TOP_OUTSIDE - Static variable in interface controlP5.ControlP5Constants
-
 
-
toString() - Method in class controlP5.Bang
-
 
-
toString() - Method in class controlP5.Button
-
 
-
toString() - Method in class controlP5.CColor
-
 
-
toString() - Method in class controlP5.Chart
-
 
-
toString() - Method in class controlP5.CheckBox
-
 
-
toString() - Method in class controlP5.ControlEvent
-
 
-
toString() - Method in class controlP5.ControlGroup
-
toString() - Method in class controlP5.Controller
-
 
-
toString() - Method in class controlP5.ControllerGroup
-
 
-
toString() - Method in class controlP5.ControllerProperties
-
 
-
toString() - Method in class controlP5.ControllerProperty
-
 
-
toString() - Method in class controlP5.ControlTimer
-
-
return a string representation of the current status of the timer.
-
-
toString() - Method in class controlP5.ListBoxItem
-
toString() - Method in class controlP5.Range
-
 
-
toUpperCase(boolean) - Method in class controlP5.CheckBox
-
 
-
toUpperCase(boolean) - Method in class controlP5.DropdownList
-
 
-
toUpperCase(boolean) - Method in class controlP5.Label
-
 
-
toUpperCase(boolean) - Method in class controlP5.ListBox
-
 
-
toUpperCase(boolean) - Method in class controlP5.ListBoxItem
-
-
by default the text of a listboxitem is set to uppercase, use toUpperCase(false) to make - changes.
-
-
toUpperCase(boolean) - Method in class controlP5.MultiList
-
 
-
toUpperCase(boolean) - Method in class controlP5.MultiListButton
-
 
-
toUpperCase(boolean) - Method in class controlP5.RadioButton
-
 
-
TRANSITION_WAIT_FADEIN - Static variable in interface controlP5.ControlP5Constants
-
 
-
TREE - Static variable in interface controlP5.ControlP5Constants
-
 
-
TREE - Static variable in class controlP5.ScrollableList
-
 
-
trigger(int) - Method in class controlP5.Matrix
-
 
-
TWO_PI - Static variable in interface controlP5.ControlP5Constants
-
 
-
- - - -

U

-
-
UNDEFINDED - Static variable in class controlP5.ControlEvent
-
 
-
unlock() - Method in class controlP5.Controller
-
-
enables the controller to be moved, changed and controlled by the user.
-
-
unplugFrom(Object[]) - Method in class controlP5.Controller
-
-
unplugs the controller from a list of objects
-
-
unplugFrom(Object) - Method in class controlP5.Controller
-
-
unplugs the Controller for a single object
-
-
unregister(Controller<?>) - Method in class controlP5.Tooltip
-
-
removes a controller from the tooltip
-
-
unregister(String) - Method in class controlP5.Tooltip
-
 
-
unregisterTooltip() - Method in class controlP5.Controller
-
 
-
unshift(float) - Method in class controlP5.Chart
-
-
adds a new float at the beginning of the data set.
-
-
unshift(String, float) - Method in class controlP5.Chart
-
 
-
UP - Static variable in interface controlP5.ControlP5Constants
-
 
-
UP - Static variable in class controlP5.Numberbox
-
 
-
update() - Method in class controlP5.Bang
-
 
-
update() - Method in class controlP5.Button
-
-
updates the value of the controller without having to set the value explicitly.
-
-
update(PApplet) - Method in class controlP5.Canvas
-
 
-
update() - Method in class controlP5.ControlBehavior
-
-
When extending ControlBehavior, update() has to be overridden.
-
-
update() - Method in class controlP5.Controller
-
-
updates the value of the controller without having to set the value explicitly.
-
-
update() - Method in class controlP5.ControllerGroup
-
 
-
update() - Method in interface controlP5.ControllerInterface
-
 
-
update() - Method in class controlP5.ControlP5
-
-
forces all controllers to update.
-
-
update() - Method in class controlP5.ControlTimer
-
-
called to update the timer.
-
-
update() - Method in class controlP5.ControlWindow
-
-
updates all controllers inside the control window if - update is enabled.
-
-
update() - Method in class controlP5.Knob
-
 
-
update() - Method in class controlP5.Matrix
-
 
-
update(PApplet) - Method in class controlP5.MultiList
-
 
-
update() - Method in class controlP5.MultiList
-
-
updates the value of the controller without having to set the value explicitly.
-
-
update() - Method in class controlP5.Numberbox
-
 
-
update() - Method in class controlP5.Range
-
 
-
update() - Method in class controlP5.Slider
-
 
-
update() - Method in class controlP5.Toggle
-
-
updates the value of the controller without having to set the value explicitly.
-
-
updateAbsolutePosition() - Method in class controlP5.Controller
-
updateAbsolutePosition() - Method in class controlP5.ControllerGroup
-
updateAbsolutePosition() - Method in interface controlP5.ControllerInterface
-
 
-
updateData(float...) - Method in class controlP5.Chart
-
 
-
updateData(String, float...) - Method in class controlP5.Chart
-
 
-
updateDisplayMode(int) - Method in class controlP5.Bang
-
 
-
updateDisplayMode(int) - Method in class controlP5.Button
-
 
-
updateDisplayMode(int) - Method in class controlP5.Chart
-
 
-
updateDisplayMode(int) - Method in class controlP5.ColorWheel
-
 
-
updateDisplayMode(int) - Method in class controlP5.Knob
-
 
-
updateDisplayMode(int) - Method in class controlP5.Matrix
-
 
-
updateDisplayMode(int) - Method in class controlP5.Numberbox
-
updateDisplayMode(int) - Method in class controlP5.Range
-
 
-
updateDisplayMode(int) - Method in class controlP5.ScrollableList
-
 
-
updateDisplayMode(int) - Method in class controlP5.Slider
-
updateDisplayMode(int) - Method in class controlP5.Slider2D
-
updateDisplayMode(int) - Method in class controlP5.Toggle
-
updateEvents() - Method in class controlP5.Controller
-
-
updateEvents is used for internal updates of a controller.
-
-
updateEvents() - Method in class controlP5.ControllerGroup
-
 
-
updateEvents() - Method in interface controlP5.ControllerInterface
-
 
-
updateEvents() - Method in class controlP5.ControlWindow
-
 
-
updateFont(ControlFont) - Method in class controlP5.Label
-
 
-
updateInternalEvents(PApplet) - Method in class controlP5.ControlGroup
-
 
-
updateInternalEvents(PApplet) - Method in class controlP5.Controller
-
 
-
updateInternalEvents(PApplet) - Method in class controlP5.ControllerGroup
-
 
-
updateInternalEvents(PApplet) - Method in interface controlP5.ControllerInterface
-
-
a method for putting input events like e.g.
-
-
updateInternalEvents(PApplet) - Method in class controlP5.DropdownList
-
 
-
updateInternalEvents(PApplet) - Method in class controlP5.Knob
-
 
-
updateInternalEvents(PApplet) - Method in class controlP5.ListBox
-
 
-
updateInternalEvents(PApplet) - Method in class controlP5.Matrix
-
 
-
updateInternalEvents(PApplet) - Method in class controlP5.Numberbox
-
 
-
updateInternalEvents(PApplet) - Method in class controlP5.Range
-
 
-
updateInternalEvents(PApplet) - Method in class controlP5.Slider
-
 
-
updateInternalEvents(PApplet) - Method in class controlP5.Slider2D
-
 
-
updateItems() - Method in class controlP5.Accordion
-
-
UpdateItems is called when changes such as remove, change of height is performed on an - accordion.
-
-
updateLayout() - Method in class controlP5.CheckBox
-
 
-
updateLayout() - Method in class controlP5.RadioButton
-
 
-
updateListBoxItems() - Method in class controlP5.DropdownList
-
 
-
updateListBoxItems() - Method in class controlP5.ListBox
-
 
-
updateLocation(float, float) - Method in class controlP5.MultiList
-
 
-
updateLocation(float, float) - Method in class controlP5.MultiListButton
-
 
-
updateRect(float, float, float, float) - Method in class controlP5.MultiListButton
-
 
-
updateSize() - Method in class controlP5.Controller
-
 
-
updateSnapshot(String) - Method in class controlP5.ControllerProperties
-
-
convenience method, setSnapshot(String) also works here since it will override existing log with the same key.
-
-
updateViewMode(int) - Method in class controlP5.Bang
-
 
-
updateViewMode(int) - Method in class controlP5.BoundingBox
-
 
-
updateViewMode(int) - Method in class controlP5.Button
-
 
-
updateViewMode(int) - Method in class controlP5.Chart
-
 
-
updateViewMode(int) - Method in class controlP5.ColorWheel
-
 
-
- - - -

V

-
-
VALUELABEL - Static variable in interface controlP5.ControlP5Constants
-
 
-
valueOf(String) - Static method in enum controlP5.Textfield.InputFilter
-
-
Returns the enum constant of this type with the specified name.
-
-
values() - Static method in enum controlP5.Textfield.InputFilter
-
-
Returns an array containing the constants of this enum type, in -the order they are declared.
-
-
VERBOSE - Static variable in interface controlP5.ControlP5Constants
-
 
-
VERSION - Static variable in class controlP5.ControlP5
-
 
-
version() - Method in class controlP5.ControlP5
-
-
Returns the current version of controlP5
-
-
VERTICAL - Static variable in interface controlP5.ControlP5Constants
-
 
-
- - - -

W

-
-
WAIT - Static variable in interface controlP5.ControlP5Constants
-
 
-
WHITE - Static variable in interface controlP5.ControlP5Constants
-
 
-
window() - Method in class controlP5.Canvas
-
 
-
- - - -

X

-
-
x() - Method in interface controlP5.Pointer
-
 
-
- - - -

Y

-
-
y() - Method in interface controlP5.Pointer
-
 
-
YELLOW - Static variable in interface controlP5.ControlP5Constants
-
 
-
- - - -

_

-
-
_myPaddingX - Variable in class controlP5.Label
-
 
-
_myPaddingY - Variable in class controlP5.Label
-
 
-
-A B C D E F G H I J K L M N O P R S T U V W X Y _ 
- -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/index.html b/reference/index.html deleted file mode 100644 index 20f23a9..0000000 --- a/reference/index.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - -Javadocs: controlP5 - - - - - - -<noscript> -<div>JavaScript is disabled on your browser.</div> -</noscript> -<h2>Frame Alert</h2> -<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="controlP5/package-summary.html">Non-frame version</a>.</p> - - - diff --git a/reference/overview-tree.html b/reference/overview-tree.html deleted file mode 100644 index 2deea99..0000000 --- a/reference/overview-tree.html +++ /dev/null @@ -1,253 +0,0 @@ - - - - - -Class Hierarchy (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - -
-

Hierarchy For All Packages

-Package Hierarchies: - -
-
-

Class Hierarchy

- -

Interface Hierarchy

- -

Annotation Type Hierarchy

- -

Enum Hierarchy

- -
- -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/package-list b/reference/package-list deleted file mode 100644 index 73e660c..0000000 --- a/reference/package-list +++ /dev/null @@ -1 +0,0 @@ -controlP5 diff --git a/reference/resources/background.gif b/reference/resources/background.gif deleted file mode 100644 index f471940fde2f39ef8943a6af9569bcf986b1579b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2313 zcmV+k3HJ6!Nk%w1VKM-40OkMy00030|NlK(aXwsfKV5S}VtGJbbVOr%L0@%CZH88Q zl{{NzcR^uxNo<2iYk@pjY)*5FJz8x~bc{)B zfk z+1T6M-s9WdW8dcJ-wO*3@9+W*5AY543-j^$^!EPz_4eHZ2#>)41`h@dc!2OAgN6$a zCS2I?;lqgx6IR4nkpTe;1RN0f=zxMq2O=q`94V5d$&e>Unta)^<;;^G3>e7yp=ZvW z6DIW3xpSvaogXF?_4%`@(V;s}NR^5J!3hrtJV@1QRV&r5S*L!zYE|rss${iFkg&!? zTN5V#)~=bmMorwgZsEpdOE)iExo+FO-8;8Kga{=HbSQCnF=E6W3?o*|ID%uwi5**> zJXy127Y9m+=HQ|PhXWi+xNwoWv}n_%Pq%(e+H~mGqhq5kv4Mo|-n~g|7!F*xZ{xv< zCpXS~dGg^IGK?4@J-T%b(XnUHFul6n<@2&4)zzyO2) z3Q8`i0+UKY*`$}e9mmp;tg*))`|PsK1|hAo%u0K$vDwm4gaSkm0j{`26k#qAKmbuhxZ#cquDR>B zD{s8+&TH-uNg$C#68QG}1HMBHfrP&L@@w$F_!itRzXdCN@V|LDAu%3!IDtq1#1UV7 z#1RxvT=B(DWbCoU5l=ia$Pp`Hgb_?Mp@hmtxZDI2N-)v#$}PXVvdm1d>@v(v`0TUJ zF)Pu89(q`zv=w^nVTIF3@3BYIPA}c`(@ZCAwbNBEt@PDUKe5CTR8aB66IE1!w%Amt zy+jpcn~k>GZpVFg+H6x{_uOksvBlq0OyT$6TyQZ37k(cOxZr|JEx1sGm<(M9gH z-~PMqyn|tT=))UN`|-FFFUA#KToK0fUOaz=7}Z~KeHhVC&%O27cTfHQ^WBU8z4p&T zp#>D|V}XShTD;Hx745Iz{`>K-Z$A|7!*Boo{mY;G21vjH8t{M!OrQc6$iN0V@PQDF zpadsK!3tXNf*8!81~qnXWuHZ)kytd=_y+ADWvw31ouV;CdZ#ya*(l7-A-C-Y^+iit8O zBy3*`Ls$|5Hn4m_^I^|C7{m7EFn|5vTk;|oywIgCc9Bb*=L+Y$)M>9GC<|HGs@6NB zHLY%03!dDf=eDRt2O6lVSFRcsuWZEwU?=z$CZ0W?#VJfdN>HG(l%oKpyiftJc|Y)xkjSJYCrQal-0PC~()T9xwF!Jf zVi1UA#3BBbh(i8r5&v#Pz!cF41KjbCc?4u2@@Q~oKLirt2TM30;y6b+zyX2`Yl9u; z`0$3;v0-YUp&7NdPT#q`cZlbij$jvbRk6R>8g*>}*b9E+WDwmpHAAxYzyT aU_pX{M6b8i>#Dq3onfZy}_nli%!Q$ZV%e&!tN2 zX3B0NWXQ443Eo1rUP86rLU>O>oTp%wt3Z{Tz&P*)Iraq^_@X;RtUFY!JxH|4U!>kw zxXwqo&R3Y=EsXaR!ng@y+y$%L1P3FZ4@N!j3m5MW74HcC->_JFuvlxLXiI=-OQ2|@ zpGc#>2-aN)<1RE9^`bB0`65VSK2>5m>CHs^YZCC)NX*NfbeT1%)Cxpu2_(6cCbLvjLY`hf1%*q}QO*%V4SfOu5Nqg~`-+(-76= za<`RA&(qDB^S!nIS^od5|Nk$KPXD8(qSB!f`M*{E?A^&yOW$08V^iNPK!%UNJ-@xmz>`pG2_%4I3QWk4UdtwP!GH$C%mo2K|$Ap=_)Y!#O($1@ohsUtR1k%wI*) z4*X&g==oWh`j{uP=HFm;Ye>0>UbDdtSp^~MaQ!L9I#)Ga?q}{@T#|qec*FkMLDenm zj^sCgk!^O^3o|vG!~2$$$7`C#4Ry zdQ!tui+J1*HyavK+4{`r+zvYHj9IsRt~@uEBOreWS8~2rXAR3!|7aTdr+x4|>@$Az z)b1t$gSB~6USxpfLmy^|_J_eNt*PI=ScO1SVH895N#`ef%IOh&o-2GIjK1s-JzkyZ z@r7O%hChz}kMHCM@Wqi^R-9t&%Fh^#9dVB0%ej@$=OjXA%XZdzCXf}c>SW26_z-Te z5b{}XWg&rELM=N*%aimp)k04t2c+`WAS>ZFIPWKvtyOI))HzpRA!T!b{tv?4NzF1v zNlP%#{&p@lFFEKvcroMAsI)mq?&`!e%l+-y&j9ZqhN}oG&dB=Pw09r+Q%m0cMujS# zs$a7!9VH`CC7k{!bV(J`rm%Jpj6&nLtWhPcy$onn$8G#ZdD9hxO<9k67Ya>K_7W~3 z&KYf14fq<{qHA7u6;>AOcomhdg?ianjr9uINt}*7w?g%z9{Q`(qRo@hDwSpGmxz&h&>%G%T(URL~=c>C{>y$K?+wLFp zy*M1@FTUKYV>8DeDIAIKM+!T5c-k&C4?Y~y^E zQCIc-=9~DiPtfVZB=_c3`qH3h|NXd^BcOQG`funSe)i5!NoA_r{b6PwzSDIXG+!(F z9CqJgo&~#7^VZHWj{u23q+NDCHn}GeWDC*(SW%{f4WMtP3l2jsO7*M)EX)#NLlsNnU4q@#jn0r#rsWsf^ngE0&ambG1f;Rj zfOk#_>1|25Z%?iI{0Yv8)DQfk>m1td?~}m0N%^k^u%EuUCc#ItmlY|epQ3YLWehYw zRU0qpPb#X&WU*UOU8et(s8x~WyYWYsgJCF+;U6@*nICY8)dk}IG+(#_Bz8zURd3HZ6qPE68U1%S{wL0 z;K{PDw2iRFIGG?(UiE9kT9?siuv4O{ z`dX2-eiXU3N)H2nT4V=AO^~J}sw+gr{&~qx%$$wlMv_JCWAMfcjYl}*Cfcf!adOY8 z8oLmJ{%49e+nLiVo#H9}wRk?UCzDz^>9TDxreVHzl~R*)?YU>Uu;J2eQ27O5`&X^8 z`94{)YWJQa#l0Fbz0N6B>j&8J;<%VuG6OYM9&QIdtueWjI3X;*dEtGiF@1AcvN4U> zG5SXIEXxB>)!mtQOztJLyeF78S*kLiU-!>PtQ_s~OMl~&y(hVVe$A5 zwo}E-DJ6${QP75?LsQ}Wl@MXwXMT4d>|?rD!g?jE>J^N*y;X}5FLe%d0_ zZ>eIBK6l@jkfw{p_YiDP;MS{jww{%j#?rk2z1J!HqE;Vd!TrCl_7UPef8;edI}wD6 zT&12Bxj&q}d4%$GHq+$~UYtWv`wI9k`89oKkCEK_E;-+O)(rhThjOM|kXDn{!W1Lo z`_?yQv=lp=-w()R<=0&c5%RWHY_fw@qb}uwFuPAGkl~@Kis}eE%MY@~6ZyWcF+llM zGyK`)(vn1F%%z=W7-Y=1$`w0Mv+-|#d};%JjCmw)Y1hOxwA|{}P%6LS4X`jQCGh`mR@=hGrr|cXa^Ipj;Mh)6mTqd1s_HmP0IxXT!w7YhoIHT>Hm#!;c@|L9OjV zsTlHE{Z;HWeM9^tPm-`|&nnl$%DRtNG1~?npUvgKPwKlaccEe4q!7YU3zykJnu6Sr z()LMXs_)^~u-ds7+wMff)RAJF?2?1H`_wDnt%MssYeB5;q~ojgVm6OHA6B>FG2erv z8&`|6<`=!EPKR^8Qlp5MiKwfxy4D`mN> ze$RKh_6*YJd4y0nnUZvwN%iY&^9xk@cM|5g#pZkc#N*(PH?^w&?ilTDMXFcd0`5!E zvgHS`=Lc|~1aO=L@L~eE*aP{90lc7qXY7GOs)3JH14T{(`K1D%tpvUT1-?F^1d4_S zJ#7yXkP3Q37bJlRQfv=mV-J3B8O*m5B%L3uW)S>|Jwy`|s6iK`sv0Z-3NcU(0knrG z5ChFXA@A9PUSdLI+(VU!!J1Mbw!~0VP^jZci2X|Nx0BF!24ObrAr>b=QtlyN4TAhn z!mQncJm~^m4MIafVLt_ewDUtO+e5w*!`(6A&H^F7i9s4t5&uBpNvh$nlTZjqTM5krNRRQ zqP)VR!|9@H>7qN_!+-)&_9s!^;gOvy5s~iEB&qP8{77&2NJMzZcsnJgSt_bYDzYU% zxQ#uuk3D*e7_*d5^?HW(^(WxICGf-mcmM((VStzIz%zFsm0;ZI3h=5OciJ#a%7I(IeGbFv+PP^?^sKBPrRBl<+qK^o%3fi=L9`la>-l4~p|hzAl~W zf=%(|NHgF7r5dJD+Cf08q-c(m;Epsldaz4cqHzTHT>)4xEe(cE0i~tf{Y0xs_1~Kv z+BYQ-TpEOch13;5YC9nHYEXhSv{ew=LV~nQL%UBQEgaDL2m?9u~v zEQmOvM=aB)Z$+eE38rs%AZR_)4>@2raqwH#Fji#xoLc&PS_TU^W8W(M0GqLdO~1yF z{sfHZ_sC#FX58(}d>RSkKZCz8%D7{cC3Z$Zh@52{31&V*W-@s~Z<8~aBeNcNW?e&O zsR(7fHOf}B&fsRqdZ(WK1e~s*o^uD6{YX9QJvqyWAqQXt*E>r$V94YK=X@8+{1cg> z*_i`a%alCJvbD~lCg&Q1Gk=|BzY)sejf9EHJ{s7lu4?ExCWR3jgTiET;exy{sW!Mg zuj*_YOf0@ScN~X0$7V6&KpL172rf|rA8?K<2+GelXw)NUk#@b4aT5MO%1ip4*ym}B-JI__S1R?CK z<4eW~bH;@H@tR55x}&JNSw_NvEPk)6E>XDt7*)4sgWuw+_vNZzmaS(tsi(57zcjA9 z@~XcHtzYq~IX|z*Md9mh>W~`sk3<^s7;EmyH4wcTdAo5NkUA2ofeG69{Gx7#i_*lt zQ7;N@xEo#nNRj&SbDHNnP0w#OE0{DZ$~7ySG%IN~zwd5Vu4&dnH>*OMb>&*VL^tbA zG;7y1t9dsYU$p3pw0x6mwGe6fjBYWsZ8e3q8f~-~cefgHxBangajI$kv(c*W-DZGp zbM$UgnP{_MYPXYX|6$u^deIhE(-xuGX2RVXqS+o~(iSV%;ZW1=Zqkut(r&xak^pT> zsp*I@X|-eOd^gb+sM(%3(E$|c47Y91mTU99Xe;4vFOTl5gmwVB+fvc3n2pwK?~Xd# zwrY{?CUj@~Msr?wXU0WKv2A$hq z`$V^gNq4(<*C=;4e4}$*uIC$5&uUHkM08J~N$>VV*VpdmLCuc!?!J9=-)VH;fo9)| zNN4m#^Kb9|`RF!^ZAT-z=bC8$do8~Tjc^o-aQjyc2(TW*d50E1#NW0pKb^~tf&OUlS+W}>0!m@!~1 z&TdSLhm`0u99c-z=oxYL8IFaGCDoFwFUP!1iJ%xF1UC4hhv*VR2451Pc0+kQGC)39C5 za81oV=$+xzZNYhn=RB-CTZ>Bevj)A3mi9|OS(dcy=N#Zm=Dza|z4Jd<=3IQ2CB>FiwH7{4Ej#+oa>M67 z!56)Km&2xJ|H7B;%~rJDuJ{rbZQiaX*e^$DEt~T$#h9(y#jg6>uX?boq!N}Q;EQth zYo1rjc15dETPw~*Ymu=lreoE9g^wb)ZcRe1yp1(Eo(rmqUYZXOU$BC_| zX{{&qE?E06wXm#v#cpKwE)jaydSaI`TkCCClr_lKMzPkyFT!R%VRn&sZSrchKx&4e~pJQcfViQxxl=T=7}#gYz7Pvoh`T#Jbab%2A2m zxh?A<`}A?8_GumBEcL;$x%gQb@PZ(If%ZE~D?ax#Km4a~+GV~!;Bb~qxxh@HHc|H6 zr%$^c9Dw~UQFWJv+81rCXS1vqqLfQ~-BtO63xCArGVA4T-}xPXYGHqB5h^+n5%$24 z(BROpi13J@*qFfR$oRMHel`=(zy zovs-UKHD3VkJ?hVeq!aA+8Fh4+NIlFhcC~UrR{4I#}K*u&z%68+P1*=q0B1r*2MY> z!9gYs*vlTO5v#8S>c#3goFmp>3iVKdU)NkjNV(s7tO4Wq?2M}o5Cj-*7;S=fEshOA zR*4$dm{ROvUamG%xL_tSW6}U$Nl=@91T;nC11o-iIVyVrfkd) zTCp;^tOy|_kuOFV$Nn=$AQJO9;&sZ&eDs^!r*m;Hw!)vpO1vcfj2EV{dJ?7ap0tq6 z$SwUVM*Vt+MS_`;bas-svPV|3POQi8G~?f^KOx4hg1He+Wd*s3Hl1{TfJS-+zv6vc zPoKiwr?7wECbub(IdB)9f_!kmUjBR*KY_z4E8_QA9xSr#G&@i5y^H`jB^I{|akh>W z%Cn3luOVY|8P>u>e^~#{$kmgX&-q>k{#pFbm2({(rtG<%nb0UCQ0%{Cy`F&~7}*we z@Of>ND_)V&XwN_+n~KjVorUQWZ*B6cld7ymQl{;rwlHl34K#}2YWxE+4CX@P&u6AfCda`&ZT1MOY69e-L@gNcAvwx8%1Z7lB4zc=_Cpt~&s ze%?;){1DB(PSK!^za967qF?lIjB~&06}Lf`cgh2qUiI^|$-VCTNE=hp&Ij}^A9&|* zQQrSqo3gn#_=z9j(y6f@T|OkJYv(fjwpz}$*U$|nLH2F zPNMuTS4g8 z*^hOlRh6~Mk}58;d477R>F^~aLO$dOXmhA*6zwIaHK()t2zKjo?j^NOJbh_=+71xg zO{Mgp7x?Z-1MKzoQ<+V2g#|e}|JawOPJZBL{o~PYdtWDX?jl##!Aiq|w>)vGJLipp zBK1xGhcvgSsQ;rn>+`>UmxlID{<~}7{y>SO^cyktN^Fsz!Z|B4?p*RKQG*8}SYBt{ zuFO{vJ?jgL{gUzYsnv(io}c0vlCp#*1vE?}KL^UZ&VF^TK+D;40CxX%j);%dCt;Z{ zAeMXC9JPWvKGwsCxx4w2iv_wNGG8l16AVI93rmc^c1>r(P||YE zpXa+=-&k995hfykL^J5S&vJF^ljR&`FE#ppNMM3%Omc!F)Mn{{&Ip#)JegbEJxud2 zn`wDVB~DMii5|H%m~51YeU1juNG3!+&?*uC#q@)z8q~`4yEL5I8}PtyA1IZ=52P$x zX)KhZt z7czUXBsy-8d`GVQ`90`wIh(Xt7v5j7h0t&ET~2M!Tb~4rN-xtK@8@mB*c(6QTwOS- z%9445_WY|cfm4?$nX$72&{~^mu}an^x^Da%=UU6YI;ur3+9L6I>raW5!=-Nzy(F2Z zwZlg7aM3NN5b{K|FB>s4R}|&Lr32_Ys{wwkECxo|rV@;5aHB25iUs7(6@dDpjN{Y%?C~UGp>*Q}K?)KKk64 zAn;@-dER}QG0L${jQ1cR75eM3-~ZTltTQ8%sm9x4Y`ve@ekMuvpA#Rh51@s6;6^&Q z!&M7^b%cea7FlZkPV9}@!bPBBfB&~XvGlE2T7V?IpM~OBmuK;OSt{~N`rL5c_I^de z9n*=@p|l;d`b_YIn8Aem1t7pp0=2-MCTIcJHlY z6x+mNLgi{JpwP)y(yzAFL2A#>bI&EwZE`PGvd*FQ!rx~6bUN&+Ij3)L;=595L#G;m8*^e?ap1`J5w7-q)*iUT_W9w8 z&xS-`i++HpWzY-a-)CWd0(pLW$A85P{Dy9r-=uPekNpN^yA}pJ7yWTZ>3iw4d6+IK zF%1XXkGcJm{0*vhSG5R1ySW;jctk9O==1-Mk?=Bl<{HE1p_@tx1s^+GoczYxj#B=i=kwQvEPrOt`<4W*pJw zbNjEqpr7B|Llc%m{V*QssV)im;pb00LUob=yFaU4`P_}ywU zt*QZl-bUsmh@L&zQaX4uHL&7YD(BOb9hH;;y;O-b-_O$4EFi1vCrMlz`dN|u?}HNO^aFQV{UZg_yy%nf>IXpulip!cR8|vNu7P*; zQye@}Qmj%(TB6`5E=c~w=LITF266XJ6X5xA7!OM1SE=~N*o3EP5Qqx!W<_+EMSLGo zqkC18AQ=0AK9=hgGQtrTovYc5^?Z^RLX?hlO-j&e1MXTTbfm>MS^=}!p>C>icUKdZ zBcNOb(6IJ!kq*e7N8Fx!!kPyn+2B2^2hd00+W^PUA&+S63jFE)bP5Tv+L5l~n(pu? zbeO|+K{{?pEow3?j0+dGVu)a6(0r{1Uj7{3 zxSsZ|BdMk>1-S}-;+`pk{Q5>H=tLRx+YqeenaSRsEX@gtPzz>j1A9g!C9kGtspY(- z%YL>NkVDE2z@}*;Q{=&5)yS;NupAmmibGUE4qte7aY6PcnXJgw>}ad(SW;@HtNurF ziV0_yHz=;Di%Tki6DW^tjkL`t%Ktct(ay zvuAOYoCu!Pm~@P5CIjk$bp`_iv{^l*Au{fB8mJK1>Macv?GL)**8*+JNvySIH5Y7i#1;!%NT!efc z;Z0*AOM&1VpR+6wIQxBM{xf`8T1V@#e<#QL}=YRwMkWG8%1(Fgj{iX)N zup{Txko(DqJWf=#Oi?Z!nra-?C{);TP`w|4>L+EKx1&P3swX<*#_50F!lD_$nQyuK??!UwA-{y)^QmMxoK1xIJ~uML{u;5!Z5tQyEL>;KaUd!_9FP zl2$QOI6V1`QdF|8gkdZsSpUqCjSBu(1H)r*vL#PEy)@Px>5TIk7_9o#Bj zzD&<1_k(ejk%qO6ak=GMmG5b7LTAA^KKq-Ey#z8(2wy2;Ot^oZI(MG@)~iY$RAnJt zu`ioyvR?Vws_tuK9hDqmel+)bP0kyxJV{7t=&3{b(@Hs1fs$9n45aq)IKknZa2H*7 z^P-ZDyOMdMj&-9{(-?dqo5I3Gy=K$!L%q>3^0N~o^2i0^_@^2nQv>S4B&=5_8^a^V zaY!NjyA5QgO&r#^CJcp&=!))MZ*CC&hvLEzWU*!IO=aYo{_yG+53H$XOAIQWnG`uD zLuuwTY6e8N^m5^AHQa}Y5Z#SdbEY;+x{oW?g;ie4CNYomRyQd2mv^L}T!>a5<*wTh>@>Qtwp~nejn`~DcZJI+QC-xU zoxz=5z0k%1;jBrGI%Th~FQElrAPr?E-Fv9|o09dPk=?>f)jFKL8PK|;w(cVDq>YWP zEfL7RGBv|<>f4IccND3wCi*V8`>#a$FPZu&a{V`W`me+Kuf_CJ)%IV%?5ByL^#3Q{ z&uBM5|34IKI>0_Tz{5OngXe#6w*N6;;5PH%9n%56%RaWA{wJ4%515Apdj`a62bp<> zM12OuV+QZ^55ATkViO(UWgg}%9C}kb^r~=BiDyWIXZWM&kb>Q?dd$#W`4KU|2#4qh zz;sZ>ZqS5h#Kdk$&1c9AHmDUdtmHE)CqH0RIAZEE;t(^+RXF+*FlJyk;?6Vn{&MsO zZ0HwY)b4Va!F1#s^N5$-s9(&mPa*Lu4>4SxXm~l|3?PR2jB1J!Q|(4#0i$lFME^-r zA~Q(2O+PHOdcVN((R8zqi>%+yx4PA5u&+jI zZ?)Fm8m-+`n!Bnrx0PvZE7!Q)Z+NTE@K(R!nO40sZF(n~bq_b_9H`UYU#q>pPJ3UC z_UeU>J7qcy%%`ks9)BNcS^GDOn z?oKkjHNoWO1e2?M#vd12e^_AscAnLnc~-CISiYWX`D%{k^H~<37unpMYJYdSv=Om2vbAM@`Qp{{SI=yP zj6WN*eEt0G$9EPX6FU%)-ho>hWTW!yzXBIo73<0umM-=@eG&niY^` zlG(|vuCl_x(X^Fob@=i{8+M5vWf7Bz=#aHGTNA;fZQyfbfueI8Z^639n`(DI%w^-^ zl`=@!u)r~Xf920-xd$Ab+S&PJY%K0H8a_J8uN3^_!K1_NV$*e#*Y*6|)XpiW=9H`*`Xx7W%v@7{XDma1?v0a%(K6rI&1!a YpWXKgmku8Vj|K)Vje`mzEKCg608Q#dYybcN diff --git a/reference/serialized-form.html b/reference/serialized-form.html deleted file mode 100644 index 1d9068d..0000000 --- a/reference/serialized-form.html +++ /dev/null @@ -1,330 +0,0 @@ - - - - - -Serialized Form (Javadocs: controlP5) - - - - - - - -
- - - - - -
- - -
-

Serialized Form

-
-
-
    -
  • -

    Package controlP5

    -
      -
    • - - -

      Class controlP5.CColor extends java.lang.Object implements Serializable

      -
        -
      • - - -

        Serialized Fields

        -
          -
        • -

          colorBackground

          -
          int colorBackground
          -
        • -
        • -

          colorForeground

          -
          int colorForeground
          -
        • -
        • -

          colorActive

          -
          int colorActive
          -
        • -
        • -

          colorCaptionLabel

          -
          int colorCaptionLabel
          -
        • -
        • -

          colorValueLabel

          -
          int colorValueLabel
          -
        • -
        • -

          colorBackgroundAlpha

          -
          int colorBackgroundAlpha
          -
        • -
        • -

          colorForegroundAlpha

          -
          int colorForegroundAlpha
          -
        • -
        • -

          colorActiveAlpha

          -
          int colorActiveAlpha
          -
        • -
        • -

          colorCaptionLabelAlpha

          -
          int colorCaptionLabelAlpha
          -
        • -
        • -

          colorValueLabelAlpha

          -
          int colorValueLabelAlpha
          -
        • -
        • -

          alpha

          -
          int alpha
          -
        • -
        • -

          maskA

          -
          int maskA
          -
        • -
        • -

          maskR

          -
          int maskR
          -
        • -
        • -

          maskG

          -
          int maskG
          -
        • -
        • -

          maskB

          -
          int maskB
          -
        • -
        -
      • -
      -
    • -
    • - - -

      Class controlP5.ChartDataSet extends java.util.ArrayList<ChartData> implements Serializable

      -
        -
      • - - -

        Serialized Fields

        -
          -
        • -

          _myColor

          -
          CColor _myColor
          -
        • -
        • -

          _myStrokeWeight

          -
          float _myStrokeWeight
          -
        • -
        • -

          colors

          -
          int[] colors
          -
        • -
        • -

          _myName

          -
          java.lang.String _myName
          -
        • -
        -
      • -
      -
    • -
    • - - -

      Class controlP5.ControllerProperty extends java.lang.Object implements Serializable

      -
      -
      serialVersionUID:
      -
      4506431150330867327L
      -
      -
        -
      • - - -

        Serialized Fields

        -
          -
        • -

          setter

          -
          java.lang.String setter
          -
        • -
        • -

          getter

          -
          java.lang.String getter
          -
        • -
        • -

          type

          -
          java.lang.Class<T> type
          -
        • -
        • -

          value

          -
          java.lang.Object value
          -
        • -
        • -

          address

          -
          java.lang.String address
          -
        • -
        • -

          id

          -
          int id
          -
        • -
        -
      • -
      -
    • -
    • - - -

      Class controlP5.ControllerStyle extends java.lang.Object implements Serializable

      -
      -
      serialVersionUID:
      -
      3250201688970310633L
      -
      -
        -
      • - - -

        Serialized Fields

        -
          -
        • -

          paddingTop

          -
          int paddingTop
          -
        • -
        • -

          paddingRight

          -
          int paddingRight
          -
        • -
        • -

          paddingBottom

          -
          int paddingBottom
          -
        • -
        • -

          paddingLeft

          -
          int paddingLeft
          -
        • -
        • -

          marginTop

          -
          int marginTop
          -
        • -
        • -

          marginRight

          -
          int marginRight
          -
        • -
        • -

          marginBottom

          -
          int marginBottom
          -
        • -
        • -

          marginLeft

          -
          int marginLeft
          -
        • -
        • -

          background

          -
          int background
          -
        • -
        • -

          backgroundWidth

          -
          int backgroundWidth
          -
        • -
        • -

          backgroundHeight

          -
          int backgroundHeight
          -
        • -
        • -

          color

          -
          int color
          -
        • -
        -
      • -
      -
    • -
    -
  • -
-
- -
- - - - - -
- - -

processing library controlP5 by Andreas Schlegel. (c) 2006-2014

- - diff --git a/reference/stylesheet.css b/reference/stylesheet.css deleted file mode 100644 index f605b49..0000000 --- a/reference/stylesheet.css +++ /dev/null @@ -1,561 +0,0 @@ -/* Javadoc style sheet */ -/* -Overall document style -*/ -body { - background-color:#f4f4f4; - color:#111111; - font-family:Arial, Helvetica, sans-serif; - font-size:76%; - padding:0; - margin:0; - margin-top:20px; -} -a:link, a:visited { - text-decoration:none; - color:#0074D9; /* OK */ -} -a:hover, a:focus { - text-decoration:none; - color:#2ECC40; /* OK */ -} -a:active { - text-decoration:none; - color:#2ECC40; /* OK */ -} -a[name] { - color:#ffff00; -} -a[name]:hover { - text-decoration:none; - color:#2ECC40; -} -pre { - font-size:1.3em; -} -h1 { - font-size:1.8em; -} -h2 { - font-size:1.5em; -} -h3 { - font-size:1.4em; -} -h4 { - font-size:1.3em; -} -h5 { - font-size:1.2em; -} -h6 { - font-size:1.1em; -} -ul { - list-style-type:disc; -} -code, tt { - font-size:1.2em; -} -dt code { - font-size:1.2em; -} -table tr td dt code { - font-size:1.2em; - vertical-align:top; -} -sup { - font-size:.6em; -} -/* -Document title and Copyright styles -*/ -.clear { - clear:both; - height:0px; - overflow:hidden; -} -.aboutLanguage { - float:right; - padding:0px 21px; - font-size:.8em; - z-index:200; - margin-top:-7px; -} -.legalCopy { - margin-left:20px; - margin-bottom:100px; - width:200px; -} -p.legalCopy small { - font-size:1em; - -} -.bar a, .bar a:link, .bar a:visited, .bar a:active { - color:#ff0000; - text-decoration:none; -} -.bar a:hover, .bar a:focus { - color:#ff0000; -} -.tab { - background-color:#ff0000; - background-position:left top; - background-repeat:no-repeat; - color:#ffff00; - padding:8px; - width:5em; - font-weight:bold; -} -/* -Navigation bar styles -*/ -.bar { - background-repeat:repeat-x; - color:#0074D9; /* OK */ - padding:.8em .5em .4em .8em; - height:auto;/*height:1.8em;*/ - font-size:1em; - margin:0; -} -.topNav { - color:#2ECC40; - float:left; - padding:0; - clear:right; - height:2.8em; - padding-top:10px; - padding-left:10px; - overflow:hidden; -} -.bottomNav { - margin-top:10px; - color:#2ECC40; - float:left; - padding:0; - clear:right; - height:2.8em; - padding-top:10px; - padding-left:10px; - overflow:hidden; -} -.subNav { - background-color:#f4f4f4; - padding:20px 10px; - margin:10px 0px; - clear:left; - float:left; - overflow:hidden; -} -.subNav div { - clear:left; - float:left; -} - -ul.navList, ul.subNavList { - float:left; - margin:0 0 0 0px; - padding:0 0 0 0px; -} - -ul.subNavList { - border-bottom:1px solid black; - margin-left:10px; - padding-top:10px; -} -ul.navList li{ - list-style:none; - float:left; - padding:6px 10px; -} -ul.subNavList li{ - list-style:none; - float:left; - font-size:90%; -} -.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { - color:#0074D9; /* OK */ - text-decoration:none; -} -.topNav a:hover, .bottomNav a:hover { - text-decoration:none; - color:#2ECC40; /* OK */ -} - -/* -Page header and footer styles -*/ -.header, .footer { - clear:both; - margin:0 20px; - padding:5px 0 0 0; -} -.indexHeader { - margin:10px; - position:relative; -} -.indexHeader h1 { - font-size:1.3em; -} -.title { - color:#001F3F; - margin:10px 0; - font-weight: normal; -} -.subTitle { - margin:5px 0 0 0; -} -.header ul { - margin:0 0 25px 0; - padding:0; -} -.footer ul { - margin:20px 0 5px 0; -} -.header ul li, .footer ul li { - list-style:none; - font-size:1.2em; -} -/* -Heading styles -*/ -div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { - background-color:#DDDDDD; /* OK, method-details */ - margin:0 0 6px -8px; - padding:10px 5px; - border-top:1px solid #0074D9; /* OK */ -} -ul.blockList ul.blockList ul.blockList li.blockList h3 { - background-color:#DDDDDD; /* OK, method summary */ - margin:0 0 6px -8px; - padding:12px 5px; - border-top:1px solid #0074D9; /* OK */ -} -ul.blockList ul.blockList li.blockList h3 { - padding:0; - margin:15px 0; -} -ul.blockList li.blockList h2 { - padding:0px 0 20px 0; -} -/* -Page layout container styles -*/ -.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { - clear:both; - padding:50px 20px; - position:relative; -} -.indexContainer { - margin:10px; - position:relative; - font-size:1.0em; -} -.indexContainer h2 { - font-size:1.1em; - padding:0 0 3px 0; -} -.indexContainer ul { - margin:0; - padding:0; -} -.indexContainer ul li { - list-style:none; -} -.contentContainer dl dt { - border-top:1px solid #0074D9; - padding-top:5px; -} - -.contentContainer dl dd { - margin-bottom:10px; -} - - -.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { - font-size:1.1em; - font-weight:bold; - margin:10px 0 0 0; - color:#001F3F; /* OK */ -} -.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { - margin:10px 0 10px 20px; -} -.serializedFormContainer dl.nameValue dt { - margin-left:1px; - font-size:1.1em; - display:inline; - font-weight:bold; -} -.serializedFormContainer dl.nameValue dd { - margin:0 0 0 1px; - font-size:1.1em; - display:inline; -} -/* -List styles -*/ -ul.horizontal li { - display:inline; - font-size:0.9em; -} -ul.inheritance { - margin:0; - padding:0; -} -ul.inheritance li { - display:inline; - list-style:none; -} -ul.inheritance li ul.inheritance { - margin-left:15px; - padding-left:15px; - padding-top:1px; -} -ul.blockList, ul.blockListLast { - margin:10px 0 10px 0; - padding:0; - -} -ul.blockList li.blockList, ul.blockListLast li.blockList { - list-style:none; - margin-bottom:25px; - -} -ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { - padding:0px 20px 5px 10px; - border:1px solid #0074D9; /* OK */ - background-color:#ffffff; -} - -ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { - padding:0 0 5px 8px; - border:1px solid #0074D9; /* OK */ - background-color:#ffffff; - border-top:none; -} -ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { - margin-left:0; - padding-left:0; - padding-bottom:15px; - border:none; - border-bottom:1px solid #0074D9; -} -ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { - list-style:none; - border-bottom:none; - padding-bottom:0; -} -table tr td dl, table tr td dl dt, table tr td dl dd { - margin-top:0px; - margin-bottom:1px; -} -/* -Table styles -*/ -.contentContainer table, .classUseContainer table, .constantValuesContainer table { - border-bottom:1px solid #0074D9; - width:100%; -} -.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table { - width:100%; -} -.contentContainer .description table, .contentContainer .details table { - border-bottom:none; -} -.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{ - vertical-align:top; - padding-right:20px; -} -.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast, -.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast, -.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne, -.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne { - padding-right:3px; -} -.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption { - position:relative; - text-align:left; - background-repeat:no-repeat; - color:#ff0000; - font-weight:bold; - clear:none; - overflow:hidden; - padding:0px; - margin:0px; - padding:20px 20px; -} -caption a:link, caption a:hover, caption a:active, caption a:visited { - color:#ff0000; -} -.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span { - white-space:nowrap; - padding-top:8px; - padding-left:0px; - display:block; - float:left; - height:18px; - color:#001F3F; - font-size:1.4em; - font-weight:normal; -} -.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd { - width:10px; - position:relative; - float:left; -} -ul.blockList ul.blockList li.blockList table { - margin:0 0 12px 0px; - width:100%; -} -.tableSubHeadingColor { - background-color: #ffff00; -} - -.altColor { - background-color:#ffffff; -} -.rowColor { - background-color:#f0f0f0; -} -.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td { - text-align:left; - padding:3px 3px 3px 7px; -} -th.colFirst, th.colLast, th.colOne, .constantValuesContainer th { - background:#01FF70; - border-top:1px solid #0074D9; - border-bottom:1px solid #0074D9; - text-align:left; - padding:12px 3px 12px 7px; -} -td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { - font-weight:normal; -} -td.colFirst, th.colFirst { - border-left:1px solid #0074D9; - white-space:nowrap; -} -td.colLast, th.colLast { - border-right:1px solid #0074D9; -} -td.colOne, th.colOne { - border-right:1px solid #0074D9; - border-left:1px solid #0074D9; -} -table.overviewSummary { - padding:0px; - margin-left:0px; -} -table.overviewSummary td.colFirst, table.overviewSummary th.colFirst, -table.overviewSummary td.colOne, table.overviewSummary th.colOne { - width:25%; - vertical-align:middle; -} -table.packageSummary td.colFirst, table.overviewSummary th.colFirst { - width:25%; - vertical-align:middle; -} -/* -Content styles -*/ -.description pre { - margin-top:0; -} -.deprecatedContent { - margin:0; - padding:10px 0; -} -.docSummary { - padding:0; -} -/* -Formatting effect styles -*/ -.sourceLineNo { - color:green; - padding:0 30px 0 0; -} -h1.hidden { - visibility:hidden; - overflow:hidden; - font-size:.9em; -} -.block { - display:block; - margin:3px 0 0 0; -} -.strong { - font-weight:bold; -} - - - -.toggleList { - padding:0; - margin:0; - margin-top:12px; - border:0; -} - -.toggleList dt { - background:#01FF70; - color:#333; - display:inline-block; - padding:8px 16px; - margin:10px 0px 10px 0px; - -moz-border-radius: 20px; /* Firefox */ - -webkit-border-radius: 20px; /* Safari, Chrome */ - border-radius: 20px; /* CSS3 */ - border-top:0; -} - -.toggleList dt:hover { - cursor:pointer; -} - -.toggleList dt span { - border-top:0; - font-family: monospace; - padding:0; - margin:0; -} - - -.toggleList dd { - margin:0; - padding:0; - border:0; -} - -html.isjs .toggleList dd { - border:0; - display: none; -} - -.toggleList pre { - padding: 4px 4px 4px 4px; -} - - - - -.navBarCell1Rev { - background-color:#0074D9; - color:#ffffff; - -moz-border-radius: 20px; /* Firefox */ - -webkit-border-radius: 20px; /* Safari, Chrome */ - border-radius: 20px; /* CSS3 */ - display:inline-block; - margin:0px 10px 0px 10px; -} - -pre { - - font-size:1em; -} - - -p { - width:80%; -}