Browse Source

version_essai

master
Frédéric Gallais 2 years ago
commit
daf76be8d7
  1. 53
      0_config-polargraph/lov-expenum.properties.txt
  2. 53
      0_config-polargraph/lov-init.properties.txt
  3. 53
      0_config-polargraph/lov-v1.properties.txt
  4. 53
      0_config-polargraph/lov-v2.properties.txt
  5. 53
      0_config-polargraph/lov.properties.txt
  6. 53
      0_config-polargraph/lov2.properties.txt
  7. 286
      libraries/controlP5/examples/controllers/ControlP5accordion/ControlP5accordion.pde
  8. 188
      libraries/controlP5/examples/controllers/ControlP5background/ControlP5background.pde
  9. 2
      libraries/controlP5/examples/controllers/ControlP5background/sketch.properties
  10. 231
      libraries/controlP5/examples/controllers/ControlP5bang/ControlP5bang.pde
  11. 267
      libraries/controlP5/examples/controllers/ControlP5button/ControlP5button.pde
  12. BIN
      libraries/controlP5/examples/controllers/ControlP5button/data/button_a.png
  13. BIN
      libraries/controlP5/examples/controllers/ControlP5button/data/button_b.png
  14. BIN
      libraries/controlP5/examples/controllers/ControlP5button/data/button_c.png
  15. 207
      libraries/controlP5/examples/controllers/ControlP5buttonBar/ControlP5buttonBar.pde
  16. 89
      libraries/controlP5/examples/controllers/ControlP5canvas/ControlP5canvas.pde
  17. 243
      libraries/controlP5/examples/controllers/ControlP5chart/ControlP5chart.pde
  18. 242
      libraries/controlP5/examples/controllers/ControlP5checkBox/ControlP5checkBox.pde
  19. 188
      libraries/controlP5/examples/controllers/ControlP5colorPicker/ControlP5colorPicker.pde
  20. 203
      libraries/controlP5/examples/controllers/ControlP5colorWheel/ControlP5colorWheel.pde
  21. 63
      libraries/controlP5/examples/controllers/ControlP5controlTimer/ControlP5controlTimer.pde
  22. 165
      libraries/controlP5/examples/controllers/ControlP5controllerProperties/ControlP5controllerProperties.pde
  23. 22
      libraries/controlP5/examples/controllers/ControlP5controllerProperties/hello.properties.json
  24. 311
      libraries/controlP5/examples/controllers/ControlP5dropdownList/ControlP5dropdownList.pde
  25. 235
      libraries/controlP5/examples/controllers/ControlP5group/ControlP5group.pde
  26. 218
      libraries/controlP5/examples/controllers/ControlP5icon/ControlP5icon.pde
  27. BIN
      libraries/controlP5/examples/controllers/ControlP5icon/fontawesome-webfont.ttf
  28. 260
      libraries/controlP5/examples/controllers/ControlP5knob/ControlP5knob.pde
  29. 319
      libraries/controlP5/examples/controllers/ControlP5listBox/ControlP5listBox.pde
  30. 296
      libraries/controlP5/examples/controllers/ControlP5matrix/ControlP5matrix.pde
  31. 101
      libraries/controlP5/examples/controllers/ControlP5multilist/ControlP5multiList.pde
  32. 214
      libraries/controlP5/examples/controllers/ControlP5numberbox/ControlP5numberbox.pde
  33. 238
      libraries/controlP5/examples/controllers/ControlP5radioButton/ControlP5radioButton.pde
  34. 244
      libraries/controlP5/examples/controllers/ControlP5range/ControlP5range.pde
  35. 261
      libraries/controlP5/examples/controllers/ControlP5scrollableList/ControlP5scrollableList.pde
  36. 297
      libraries/controlP5/examples/controllers/ControlP5slider/ControlP5slider.pde
  37. 238
      libraries/controlP5/examples/controllers/ControlP5slider2D/ControlP5slider2D.pde
  38. 236
      libraries/controlP5/examples/controllers/ControlP5tab/ControlP5tab.pde
  39. 229
      libraries/controlP5/examples/controllers/ControlP5textarea/ControlP5textarea.pde
  40. 257
      libraries/controlP5/examples/controllers/ControlP5textfield/ControlP5textfield.pde
  41. 211
      libraries/controlP5/examples/controllers/ControlP5textlabel/ControlP5textlabel.pde
  42. 239
      libraries/controlP5/examples/controllers/ControlP5toggle/ControlP5toggle.pde
  43. 116
      libraries/controlP5/examples/controllers/ControlP5tooltip/ControlP5tooltip.pde
  44. 82
      libraries/controlP5/examples/controllers/ControlP5window/ControlP5window.pde
  45. 99
      libraries/controlP5/examples/experimental/ControlP5CustomMatrix/ControlP5CustomMatrix.pde
  46. 187
      libraries/controlP5/examples/experimental/ControlP5MenuList/ControlP5MenuList.pde
  47. 257
      libraries/controlP5/examples/experimental/ControlP5SliderList/ControlP5SliderList.pde
  48. 112
      libraries/controlP5/examples/experimental/ControlP5editableNumberbox/ControlP5editableNumberbox.pde
  49. 50
      libraries/controlP5/examples/experimental/ControlP5graphics/ControlP5graphics.pde
  50. 123
      libraries/controlP5/examples/experimental/MidiMapper/MidiMapper.pde
  51. 107
      libraries/controlP5/examples/experimental/MidiMapper/MidiSimple.java
  52. 58
      libraries/controlP5/examples/extra/ControlP5AutoDetectFields/ControlP5AutoDetectFields.pde
  53. 33
      libraries/controlP5/examples/extra/ControlP5ControllerInsideClass/ControlP5ControllerInsideClass.pde
  54. 72
      libraries/controlP5/examples/extra/ControlP5canvasDrawIntoCanvas/ControlP5canvasDrawIntoCanvas.pde
  55. 252
      libraries/controlP5/examples/extra/ControlP5chartsCombined/ControlP5chartsCombined.pde
  56. 71
      libraries/controlP5/examples/extra/ControlP5console/ControlP5console.pde
  57. 148
      libraries/controlP5/examples/extra/ControlP5controllerOnTop3D/ControlP5controllerOnTop3D.pde
  58. 98
      libraries/controlP5/examples/extra/ControlP5frame/ControlP5frame.pde
  59. 199
      libraries/controlP5/examples/extra/ControlP5frameRate/ControlP5frameRate.pde
  60. 134
      libraries/controlP5/examples/extra/ControlP5frames/ControlP5frames.pde
  61. 51
      libraries/controlP5/examples/extra/ControlP5groupCanvas/ControlP5groupCanvas.pde
  62. 38
      libraries/controlP5/examples/extra/ControlP5imageButton/ControlP5imageButton.pde
  63. BIN
      libraries/controlP5/examples/extra/ControlP5imageButton/data/Arrow-Left.png
  64. BIN
      libraries/controlP5/examples/extra/ControlP5imageButton/data/Arrow-Right.png
  65. BIN
      libraries/controlP5/examples/extra/ControlP5imageButton/data/Refresh.png
  66. 50
      libraries/controlP5/examples/extra/ControlP5key/ControlP5key.pde
  67. 74
      libraries/controlP5/examples/extra/ControlP5listBoxClear/ControlP5listBoxClear.pde
  68. 94
      libraries/controlP5/examples/extra/ControlP5mouseWheel/ControlP5mouseWheel.pde
  69. 75
      libraries/controlP5/examples/extra/ControlP5pointer/ControlP5pointer.pde
  70. 133
      libraries/controlP5/examples/extra/ControlP5propertiesSets/ControlP5propertiesSets.pde
  71. 17
      libraries/controlP5/examples/extra/ControlP5propertiesSets/default.json
  72. 5
      libraries/controlP5/examples/extra/ControlP5propertiesSets/setA.json
  73. 51
      libraries/controlP5/examples/extra/ControlP5renderIntoPGraphics/ControlP5renderIntoPGraphics.pde
  74. 110
      libraries/controlP5/examples/extra/ControlP5style/ControlP5style.pde
  75. 114
      libraries/controlP5/examples/extra/ControlP5textfieldAdvanced/ControlP5textfieldAdvanced.pde
  76. 58
      libraries/controlP5/examples/extra/ControlP5withPeasyCam/ControlP5withPeasyCam.pde
  77. 166
      libraries/controlP5/examples/use/ControlP5annotation/ControlP5annotation.pde
  78. 92
      libraries/controlP5/examples/use/ControlP5basics/ControlP5basics.pde
  79. 1
      libraries/controlP5/examples/use/ControlP5beginEnd/ControlP5beginEnd.pde
  80. 125
      libraries/controlP5/examples/use/ControlP5behavior/ControlP5behavior.pde
  81. 55
      libraries/controlP5/examples/use/ControlP5bringToFront/ControlP5bringToFront.pde
  82. 178
      libraries/controlP5/examples/use/ControlP5callback/ControlP5callback.pde
  83. 119
      libraries/controlP5/examples/use/ControlP5controlEvent/ControlP5controlEvent.pde
  84. 134
      libraries/controlP5/examples/use/ControlP5controlFont/ControlP5controlFont.pde
  85. 101
      libraries/controlP5/examples/use/ControlP5customView/ControlP5customView.pde
  86. 163
      libraries/controlP5/examples/use/ControlP5extendController/ControlP5extendController.pde
  87. 47
      libraries/controlP5/examples/use/ControlP5listenerForSingleController/ControlP5listenerForSingleController.pde
  88. 98
      libraries/controlP5/examples/use/ControlP5mouseover/ControlP5mouseover.pde
  89. 109
      libraries/controlP5/examples/use/ControlP5plugTo/ControlP5plugTo.pde
  90. 106
      libraries/controlP5/examples/use/ControlP5propertiesCustom/ControlP5propertiesCustom.pde
  91. 22
      libraries/controlP5/examples/use/ControlP5propertiesCustom/hello.json
  92. 81
      libraries/controlP5/examples/use/ControlP5quick/ControlP5quick.pde
  93. 54
      libraries/controlP5/examples/use/ControlP5sliderSetValue/ControlP5sliderSetValue.pde
  94. 165
      libraries/controlP5/examples/use/ControlP5snapshot/ControlP5snapshot.pde
  95. 62
      libraries/controlP5/examples/use/ControlP5workingWithIDs/ControlP5workingWithIDs.pde
  96. 44
      libraries/controlP5/library.properties
  97. BIN
      libraries/controlP5/library/controlP5.jar
  98. 90
      libraries/controlP5/reference/allclasses-frame.html
  99. 90
      libraries/controlP5/reference/allclasses-noframe.html
  100. 1348
      libraries/controlP5/reference/constant-values.html

53
0_config-polargraph/lov-expenum.properties.txt

@ -0,0 +1,53 @@
# *** Polargraph properties file ***
#Sat Feb 09 13:59:46 CET 2019
controller.pixel.samplearea=10
controller.pictureframe.position.y=177
controller.pictureframe.position.x=76
controller.testPenWidth.startSize=0.5
controller.machine.colour=969696
machine.motors.mmPerRev=109.5
controller.vector.filename=/home/fredervish/Documents/lov-polargraph/2_dessins-imprimer/theo-portrait-2.svg
controller.window.width=1607
controller.frame.colour=C80000
controller.image.position.y=588
controller.image.position.x=131
machine.motors.accel=250
controller.image.height=394
controller.machine.serialport=32
controller.window.height=439
controller.maxSegmentLength=2
controller.geomerative.polygonizerLength=1
machine.penlift.up=17
machine.penlift.down=93
controller.page.position.y=150
controller.vector.scaling=20.6
controller.page.position.x=364
controller.pictureframe.width=570
machine.step.multiplier=2
controller.grid.size=93.0
controller.testPenWidth.endSize=2
controller.pictureframe.height=850
controller.page.colour=DCDCDC
controller.testPenWidth.incrementSize=0.5
controller.image.width=394
machine.motors.stepsPerRev=200.5
machine.pen.size=1
controller.page.width=297
controller.pixel.mask.color=958341
controller.machine.baudrate=57600
controller.vector.minLineLength=0
machine.width=1025
controller.geomerative.polygonizer=1
controller.page.height=420
controller.vector.position.y=-135.74
controller.background.colour=646464
controller.image.filename=
controller.vector.position.x=-387.4
controller.homepoint.y=150
controller.guide.colour=FFFFFF
machine.motors.maxSpeed=250
controller.homepoint.x=512
controller.density.preview.style=3
controller.pixel.scaling=3.14
controller.densitypreview.colour=000000
machine.height=900

53
0_config-polargraph/lov-init.properties.txt

@ -0,0 +1,53 @@
# *** Polargraph properties file ***
#Sun Dec 16 16:41:04 CET 2018
controller.pixel.samplearea=10
controller.pictureframe.position.y=
controller.pictureframe.position.x=
controller.testPenWidth.startSize=0.5
controller.machine.colour=
machine.motors.mmPerRev=109.5
controller.vector.filename=
controller.window.width=
controller.frame.colour=
controller.image.position.y=
controller.image.position.x
machine.motors.accel=250
controller.image.height=
controller.machine.serialport=
controller.window.height=
controller.maxSegmentLength=
controller.geomerative.polygonizerLength=2
machine.penlift.up=17
machine.penlift.down=93
controller.page.position.y=150
controller.vector.scaling=50.0
controller.page.position.x=
controller.pictureframe.width=
machine.step.multiplier=2
controller.grid.size=18.0
controller.testPenWidth.endSize=2
controller.pictureframe.height=850
controller.page.colour=
controller.testPenWidth.incrementSize=0.5
controller.image.width=
machine.motors.stepsPerRev=200
machine.pen.size=4.05
controller.page.width=708
controller.pixel.mask.color=
controller.machine.baudrate=57600
controller.vector.minLineLength=0
machine.width=708
controller.geomerative.polygonizer=
controller.page.height=730
controller.vector.position.y=
controller.background.colour=
controller.image.filename=
controller.vector.position.x=
controller.homepoint.y=150
controller.guide.colour=
machine.motors.maxSpeed=500
controller.homepoint.x=354
controller.density.preview.style=
controller.pixel.scaling=
controller.densitypreview.colour=
machine.height=1097

53
0_config-polargraph/lov-v1.properties.txt

@ -0,0 +1,53 @@
# *** Polargraph properties file ***
#Sun Dec 16 15:48:38 CET 2018
controller.pixel.samplearea=10
controller.pictureframe.position.y=177
controller.pictureframe.position.x=76
controller.testPenWidth.startSize=0.5
controller.machine.colour=969696
machine.motors.mmPerRev=109.5
controller.vector.filename=/home/fredervish/Bureau/Heckert_GNU_white.svg
controller.window.width=1335
controller.frame.colour=C80000
controller.image.position.y=588
controller.image.position.x=131
machine.motors.accel=250
controller.image.height=394
controller.machine.serialport=32
controller.window.height=34
controller.maxSegmentLength=2
controller.geomerative.polygonizerLength=1
machine.penlift.up=17
machine.penlift.down=93
controller.page.position.y=120
controller.vector.scaling=42.1
controller.page.position.x=0
controller.pictureframe.width=570
machine.step.multiplier=2
controller.grid.size=93.0
controller.testPenWidth.endSize=2
controller.pictureframe.height=850
controller.page.colour=DCDCDC
controller.testPenWidth.incrementSize=0.5
controller.image.width=394
machine.motors.stepsPerRev=200.5
machine.pen.size=1
controller.page.width=708
controller.pixel.mask.color=958341
controller.machine.baudrate=57600
controller.vector.minLineLength=0
machine.width=708
controller.geomerative.polygonizer=1
controller.page.height=978
controller.vector.position.y=-198.02
controller.background.colour=646464
controller.image.filename=/home/fredervish/Documents/lov-polargraph/2_dessins-imprimer/Common_Kingfisher_Alcedo_atthis.jpg
controller.vector.position.x=-700.27
controller.homepoint.y=120
controller.guide.colour=FFFFFF
machine.motors.maxSpeed=500
controller.homepoint.x=354
controller.density.preview.style=3
controller.pixel.scaling=3.14
controller.densitypreview.colour=000000
machine.height=1097

53
0_config-polargraph/lov-v2.properties.txt

@ -0,0 +1,53 @@
# *** Polargraph properties file ***
#Sun Dec 16 16:41:04 CET 2018
controller.pixel.samplearea=10
controller.pictureframe.position.y=177
controller.pictureframe.position.x=76
controller.testPenWidth.startSize=0.5
controller.machine.colour=969696
machine.motors.mmPerRev=109.5
controller.vector.filename=
controller.window.width=1287
controller.frame.colour=C80000
controller.image.position.y=588
controller.image.position.x=131
machine.motors.accel=250
controller.image.height=394
controller.machine.serialport=32
controller.window.height=-80
controller.maxSegmentLength=2
controller.geomerative.polygonizerLength=1
machine.penlift.up=17
machine.penlift.down=93
controller.page.position.y=150
controller.vector.scaling=42.1
controller.page.position.x=0
controller.pictureframe.width=570
machine.step.multiplier=2
controller.grid.size=93.0
controller.testPenWidth.endSize=2
controller.pictureframe.height=850
controller.page.colour=DCDCDC
controller.testPenWidth.incrementSize=0.5
controller.image.width=394
machine.motors.stepsPerRev=200.5
machine.pen.size=1
controller.page.width=708
controller.pixel.mask.color=958341
controller.machine.baudrate=57600
controller.vector.minLineLength=0
machine.width=708
controller.geomerative.polygonizer=1
controller.page.height=730
controller.vector.position.y=-198.02
controller.background.colour=646464
controller.image.filename=
controller.vector.position.x=-700.27
controller.homepoint.y=150
controller.guide.colour=FFFFFF
machine.motors.maxSpeed=500
controller.homepoint.x=354
controller.density.preview.style=3
controller.pixel.scaling=3.14
controller.densitypreview.colour=000000
machine.height=1097

53
0_config-polargraph/lov.properties.txt

@ -0,0 +1,53 @@
# *** Polargraph properties file ***
#Mon Nov 12 21:22:36 CET 2018
controller.pixel.samplearea=10
controller.pictureframe.position.y=177
controller.pictureframe.position.x=76
controller.testPenWidth.startSize=0.5
controller.machine.colour=969696
machine.motors.mmPerRev=109.5
controller.vector.filename=/home/fredervish/Bureau/Heckert_GNU_white.svg
controller.window.width=1383
controller.frame.colour=C80000
controller.image.position.y=588
controller.image.position.x=131
machine.motors.accel=253
controller.image.height=394
controller.machine.serialport=32
controller.window.height=148
controller.maxSegmentLength=2
controller.geomerative.polygonizerLength=1
machine.penlift.up=19
machine.penlift.down=109
controller.page.position.y=120
controller.vector.scaling=42.1
controller.page.position.x=0
controller.pictureframe.width=570
machine.step.multiplier=2
controller.grid.size=93.0
controller.testPenWidth.endSize=2
controller.pictureframe.height=850
controller.page.colour=DCDCDC
controller.testPenWidth.incrementSize=0.5
controller.image.width=394
machine.motors.stepsPerRev=200.5
machine.pen.size=4.05
controller.page.width=708
controller.pixel.mask.color=958341
controller.machine.baudrate=57600
controller.vector.minLineLength=0
machine.width=708
controller.geomerative.polygonizer=1
controller.page.height=978
controller.vector.position.y=-198.02
controller.background.colour=646464
controller.image.filename=/home/fredervish/Documents/lov-polargraph/2_dessins-imprimer/Common_Kingfisher_Alcedo_atthis.jpg
controller.vector.position.x=-700.27
controller.homepoint.y=120
controller.guide.colour=FFFFFF
machine.motors.maxSpeed=499
controller.homepoint.x=354
controller.density.preview.style=3
controller.pixel.scaling=3.14
controller.densitypreview.colour=000000
machine.height=1097

53
0_config-polargraph/lov2.properties.txt

@ -0,0 +1,53 @@
# *** Polargraph properties file ***
#Sun Dec 16 15:32:46 CET 2018
controller.pixel.samplearea=10
controller.pictureframe.position.y=177
controller.pictureframe.position.x=76
controller.testPenWidth.startSize=0.5
controller.machine.colour=969696
machine.motors.mmPerRev=109.5
controller.vector.filename=/home/fredervish/Bureau/Heckert_GNU_white.svg
controller.window.width=1367
controller.frame.colour=C80000
controller.image.position.y=588
controller.image.position.x=131
machine.motors.accel=253
controller.image.height=394
controller.machine.serialport=32
controller.window.height=110
controller.maxSegmentLength=2
controller.geomerative.polygonizerLength=1
machine.penlift.up=52
machine.penlift.down=109
controller.page.position.y=120
controller.vector.scaling=42.1
controller.page.position.x=0
machine.step.multiplier=2
controller.pictureframe.width=570
controller.grid.size=93.0
controller.testPenWidth.endSize=2
controller.pictureframe.height=850
controller.page.colour=DCDCDC
controller.testPenWidth.incrementSize=0.5
controller.image.width=394
machine.motors.stepsPerRev=200.5
machine.pen.size=4.05
controller.page.width=708
controller.pixel.mask.color=958341
controller.machine.baudrate=57600
controller.vector.minLineLength=0
machine.width=708
controller.geomerative.polygonizer=1
controller.page.height=978
controller.vector.position.y=-198.02
controller.vector.position.x=-700.27
controller.image.filename=/home/fredervish/Documents/lov-polargraph/2_dessins-imprimer/Common_Kingfisher_Alcedo_atthis.jpg
controller.background.colour=646464
controller.homepoint.y=120
controller.homepoint.x=354
machine.motors.maxSpeed=499
controller.guide.colour=FFFFFF
controller.density.preview.style=3
controller.pixel.scaling=3.14
controller.densitypreview.colour=000000
machine.height=1097

286
libraries/controlP5/examples/controllers/ControlP5accordion/ControlP5accordion.pde

@ -0,0 +1,286 @@
/**
* 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 close()
controlP5.Accordion : Accordion open()
controlP5.Accordion : Accordion remove(ControllerInterface)
controlP5.Accordion : Accordion removeItem(ControlGroup)
controlP5.Accordion : Accordion setCollapseMode(int)
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 removeListener(ControlListener)
controlP5.ControlGroup : Accordion setBackgroundColor(int)
controlP5.ControlGroup : Accordion setBackgroundHeight(int)
controlP5.ControlGroup : Accordion setBarHeight(int)
controlP5.ControlGroup : Accordion setSize(int, int)
controlP5.ControlGroup : Accordion updateInternalEvents(PApplet)
controlP5.ControlGroup : String getInfo()
controlP5.ControlGroup : String toString()
controlP5.ControlGroup : int getBackgroundHeight()
controlP5.ControlGroup : int getBarHeight()
controlP5.ControlGroup : int listenerSize()
controlP5.ControllerGroup : Accordion add(ControllerInterface)
controlP5.ControllerGroup : Accordion addListener(ControlListener)
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 hideArrow()
controlP5.ControllerGroup : Accordion hideBar()
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(Canvas)
controlP5.ControllerGroup : Accordion removeListener(ControlListener)
controlP5.ControllerGroup : Accordion removeProperty(String)
controlP5.ControllerGroup : Accordion removeProperty(String, String)
controlP5.ControllerGroup : Accordion setAddress(String)
controlP5.ControllerGroup : Accordion setArrayValue(float[])
controlP5.ControllerGroup : Accordion setArrayValue(int, float)
controlP5.ControllerGroup : Accordion setCaptionLabel(String)
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(float, float)
controlP5.ControllerGroup : Accordion setPosition(float[])
controlP5.ControllerGroup : Accordion setSize(int, int)
controlP5.ControllerGroup : Accordion setStringValue(String)
controlP5.ControllerGroup : Accordion setTitle(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 showArrow()
controlP5.ControllerGroup : Accordion showBar()
controlP5.ControllerGroup : Accordion update()
controlP5.ControllerGroup : Accordion updateAbsolutePosition()
controlP5.ControllerGroup : CColor getColor()
controlP5.ControllerGroup : Canvas addCanvas(Canvas)
controlP5.ControllerGroup : ControlWindow getWindow()
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 : 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 isBarVisible()
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 getArrayValue(int)
controlP5.ControllerGroup : float getValue()
controlP5.ControllerGroup : float[] getArrayValue()
controlP5.ControllerGroup : float[] getPosition()
controlP5.ControllerGroup : int getHeight()
controlP5.ControllerGroup : int getId()
controlP5.ControllerGroup : int getWidth()
controlP5.ControllerGroup : int listenerSize()
controlP5.ControllerGroup : void controlEvent(ControlEvent)
controlP5.ControllerGroup : void remove()
java.lang.Object : String toString()
java.lang.Object : boolean equals(Object)
created: 2015/03/24 12:25:32
*/

188
libraries/controlP5/examples/controllers/ControlP5background/ControlP5background.pde

@ -0,0 +1,188 @@
/**
* ControlP5 Background
*
*
* find a list of public methods available for the Group Controller
* at the bottom of this sketch.
*
* by Andreas Schlegel, 2014
* www.sojamo.de/libraries/controlp5
*
*/
import controlP5.*;
ControlP5 cp5;
int v1;
boolean lines = true;
void setup() {
size(800, 400);
noStroke();
cp5 = new ControlP5(this);
cp5.begin(cp5.addBackground("abc"));
cp5.addSlider("v1")
.setPosition(10, 20)
.setSize(200, 20)
.setRange(100, 300)
.setValue(250)
;
cp5.addToggle("lines")
.setPosition(10,50)
.setSize(80,20)
.setMode(Toggle.SWITCH)
;
cp5.end();
}
void draw() {
background(200, 200, 200);
pushMatrix();
pushMatrix();
fill(255, 255, 0);
rect(v1, 100, 60, 200);
fill(0, 255, 110);
rect(40, v1, 320, 40);
translate(200, 200);
rotate(map(v1, 100, 300, -PI, PI));
fill(255, 0, 128);
rect(0, 0, 100, 100);
popMatrix();
if(lines) {
translate(600, 100);
for (int i=0; i<20; i++) {
pushMatrix();
fill(255);
translate(0, i*10);
rotate(map(v1+i, 0, 300, -PI, PI));
rect(-150, 0, 300, 4);
popMatrix();
}
}
popMatrix();
}
/*
a list of all methods available for the Background Controller
use ControlP5.printPublicMethodsFor(Background.class);
to print the following list into the console.
You can find further details about class Background in the javadoc.
Format:
ClassName : returnType methodName(parameter type)
controlP5.ControlGroup : Background activateEvent(boolean)
controlP5.ControlGroup : Background addListener(ControlListener)
controlP5.ControlGroup : Background removeListener(ControlListener)
controlP5.ControlGroup : Background setBackgroundColor(int)
controlP5.ControlGroup : Background setBackgroundHeight(int)
controlP5.ControlGroup : Background setBarHeight(int)
controlP5.ControlGroup : Background setSize(int, int)
controlP5.ControlGroup : Background updateInternalEvents(PApplet)
controlP5.ControlGroup : String getInfo()
controlP5.ControlGroup : String toString()
controlP5.ControlGroup : int getBackgroundHeight()
controlP5.ControlGroup : int getBarHeight()
controlP5.ControlGroup : int listenerSize()
controlP5.ControllerGroup : Background add(ControllerInterface)
controlP5.ControllerGroup : Background addListener(ControlListener)
controlP5.ControllerGroup : Background bringToFront()
controlP5.ControllerGroup : Background bringToFront(ControllerInterface)
controlP5.ControllerGroup : Background close()
controlP5.ControllerGroup : Background disableCollapse()
controlP5.ControllerGroup : Background enableCollapse()
controlP5.ControllerGroup : Background hide()
controlP5.ControllerGroup : Background hideArrow()
controlP5.ControllerGroup : Background hideBar()
controlP5.ControllerGroup : Background moveTo(ControlWindow)
controlP5.ControllerGroup : Background moveTo(PApplet)
controlP5.ControllerGroup : Background open()
controlP5.ControllerGroup : Background registerProperty(String)
controlP5.ControllerGroup : Background registerProperty(String, String)
controlP5.ControllerGroup : Background remove(CDrawable)
controlP5.ControllerGroup : Background remove(ControllerInterface)
controlP5.ControllerGroup : Background removeCanvas(Canvas)
controlP5.ControllerGroup : Background removeListener(ControlListener)
controlP5.ControllerGroup : Background removeProperty(String)
controlP5.ControllerGroup : Background removeProperty(String, String)
controlP5.ControllerGroup : Background setAddress(String)
controlP5.ControllerGroup : Background setArrayValue(float[])
controlP5.ControllerGroup : Background setArrayValue(int, float)
controlP5.ControllerGroup : Background setCaptionLabel(String)
controlP5.ControllerGroup : Background setColor(CColor)
controlP5.ControllerGroup : Background setColorActive(int)
controlP5.ControllerGroup : Background setColorBackground(int)
controlP5.ControllerGroup : Background setColorForeground(int)
controlP5.ControllerGroup : Background setColorLabel(int)
controlP5.ControllerGroup : Background setColorValue(int)
controlP5.ControllerGroup : Background setHeight(int)
controlP5.ControllerGroup : Background setId(int)
controlP5.ControllerGroup : Background setLabel(String)
controlP5.ControllerGroup : Background setMouseOver(boolean)
controlP5.ControllerGroup : Background setMoveable(boolean)
controlP5.ControllerGroup : Background setOpen(boolean)
controlP5.ControllerGroup : Background setPosition(float, float)
controlP5.ControllerGroup : Background setPosition(float[])
controlP5.ControllerGroup : Background setSize(int, int)
controlP5.ControllerGroup : Background setStringValue(String)
controlP5.ControllerGroup : Background setTitle(String)
controlP5.ControllerGroup : Background setUpdate(boolean)
controlP5.ControllerGroup : Background setValue(float)
controlP5.ControllerGroup : Background setVisible(boolean)
controlP5.ControllerGroup : Background setWidth(int)
controlP5.ControllerGroup : Background show()
controlP5.ControllerGroup : Background showArrow()
controlP5.ControllerGroup : Background showBar()
controlP5.ControllerGroup : Background update()
controlP5.ControllerGroup : Background updateAbsolutePosition()
controlP5.ControllerGroup : CColor getColor()
controlP5.ControllerGroup : Canvas addCanvas(Canvas)
controlP5.ControllerGroup : ControlWindow getWindow()
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 : 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 isBarVisible()
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 getArrayValue(int)
controlP5.ControllerGroup : float getValue()
controlP5.ControllerGroup : float[] getArrayValue()
controlP5.ControllerGroup : float[] getPosition()
controlP5.ControllerGroup : int getHeight()
controlP5.ControllerGroup : int getId()
controlP5.ControllerGroup : int getWidth()
controlP5.ControllerGroup : int listenerSize()
controlP5.ControllerGroup : void controlEvent(ControlEvent)
controlP5.ControllerGroup : void remove()
java.lang.Object : String toString()
java.lang.Object : boolean equals(Object)
created: 2015/03/24 12:25:35
*/

2
libraries/controlP5/examples/controllers/ControlP5background/sketch.properties

@ -0,0 +1,2 @@
mode.id=processing.mode.java.JavaMode
mode=Java

231
libraries/controlP5/examples/controllers/ControlP5bang/ControlP5bang.pde

@ -0,0 +1,231 @@
/**
* 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<col.length;i++) {
cp5.addBang("bang"+i)
.setPosition(40+i*80, 200)
.setSize(40, 40)
.setId(i)
;
}
// change the trigger event, by default it is PRESSED.
cp5.addBang("bang")
.setPosition(40, 300)
.setSize(280, 40)
.setTriggerEvent(Bang.RELEASE)
.setLabel("changeBackground")
;
}
void draw() {
background(myColorBackground);
for (int i=0;i<col.length;i++) {
fill(col[i]);
rect(40+i*80, 50, 40, 80);
}
}
public void bang() {
int theColor = (int)random(255);
myColorBackground = color(theColor);
println("### bang(). a bang event. setting background to "+theColor);
}
public void controlEvent(ControlEvent theEvent) {
for (int i=0;i<col.length;i++) {
if (theEvent.getController().getName().equals("bang"+i)) {
col[i] = color(random(255));
}
}
println(
"## controlEvent / id:"+theEvent.controller().getId()+
" / name:"+theEvent.controller().getName()+
" / value:"+theEvent.controller().getValue()
);
}
/*
a list of all methods available for the Bang Controller
use ControlP5.printPublicMethodsFor(Bang.class);
to print the following list into the console.
You can find further details about class Bang in the javadoc.
Format:
ClassName : returnType methodName(parameter type)
controlP5.Bang : Bang setTriggerEvent(int)
controlP5.Bang : Bang setValue(float)
controlP5.Bang : Bang update()
controlP5.Bang : String getInfo()
controlP5.Bang : String toString()
controlP5.Bang : int getTriggerEvent()
controlP5.Controller : Bang addCallback(CallbackListener)
controlP5.Controller : Bang addListener(ControlListener)
controlP5.Controller : Bang addListenerFor(int, CallbackListener)
controlP5.Controller : Bang align(int, int, int, int)
controlP5.Controller : Bang bringToFront()
controlP5.Controller : Bang bringToFront(ControllerInterface)
controlP5.Controller : Bang hide()
controlP5.Controller : Bang linebreak()
controlP5.Controller : Bang listen(boolean)
controlP5.Controller : Bang lock()
controlP5.Controller : Bang onChange(CallbackListener)
controlP5.Controller : Bang onClick(CallbackListener)
controlP5.Controller : Bang onDoublePress(CallbackListener)
controlP5.Controller : Bang onDrag(CallbackListener)
controlP5.Controller : Bang onDraw(ControllerView)
controlP5.Controller : Bang onEndDrag(CallbackListener)
controlP5.Controller : Bang onEnter(CallbackListener)
controlP5.Controller : Bang onLeave(CallbackListener)
controlP5.Controller : Bang onMove(CallbackListener)
controlP5.Controller : Bang onPress(CallbackListener)
controlP5.Controller : Bang onRelease(CallbackListener)
controlP5.Controller : Bang onReleaseOutside(CallbackListener)
controlP5.Controller : Bang onStartDrag(CallbackListener)
controlP5.Controller : Bang onWheel(CallbackListener)
controlP5.Controller : Bang plugTo(Object)
controlP5.Controller : Bang plugTo(Object, String)
controlP5.Controller : Bang plugTo(Object[])
controlP5.Controller : Bang plugTo(Object[], String)
controlP5.Controller : Bang registerProperty(String)
controlP5.Controller : Bang registerProperty(String, String)
controlP5.Controller : Bang registerTooltip(String)
controlP5.Controller : Bang removeBehavior()
controlP5.Controller : Bang removeCallback()
controlP5.Controller : Bang removeCallback(CallbackListener)
controlP5.Controller : Bang removeListener(ControlListener)
controlP5.Controller : Bang removeListenerFor(int, CallbackListener)
controlP5.Controller : Bang removeListenersFor(int)
controlP5.Controller : Bang removeProperty(String)
controlP5.Controller : Bang removeProperty(String, String)
controlP5.Controller : Bang setArrayValue(float[])
controlP5.Controller : Bang setArrayValue(int, float)
controlP5.Controller : Bang setBehavior(ControlBehavior)
controlP5.Controller : Bang setBroadcast(boolean)
controlP5.Controller : Bang setCaptionLabel(String)
controlP5.Controller : Bang setColor(CColor)
controlP5.Controller : Bang setColorActive(int)
controlP5.Controller : Bang setColorBackground(int)
controlP5.Controller : Bang setColorCaptionLabel(int)
controlP5.Controller : Bang setColorForeground(int)
controlP5.Controller : Bang setColorLabel(int)
controlP5.Controller : Bang setColorValue(int)
controlP5.Controller : Bang setColorValueLabel(int)
controlP5.Controller : Bang setDecimalPrecision(int)
controlP5.Controller : Bang setDefaultValue(float)
controlP5.Controller : Bang setHeight(int)
controlP5.Controller : Bang setId(int)
controlP5.Controller : Bang setImage(PImage)
controlP5.Controller : Bang setImage(PImage, int)
controlP5.Controller : Bang setImages(PImage, PImage, PImage)
controlP5.Controller : Bang setImages(PImage, PImage, PImage, PImage)
controlP5.Controller : Bang setLabel(String)
controlP5.Controller : Bang setLabelVisible(boolean)
controlP5.Controller : Bang setLock(boolean)
controlP5.Controller : Bang setMax(float)
controlP5.Controller : Bang setMin(float)
controlP5.Controller : Bang setMouseOver(boolean)
controlP5.Controller : Bang setMoveable(boolean)
controlP5.Controller : Bang setPosition(float, float)
controlP5.Controller : Bang setPosition(float[])
controlP5.Controller : Bang setSize(PImage)
controlP5.Controller : Bang setSize(int, int)
controlP5.Controller : Bang setStringValue(String)
controlP5.Controller : Bang setUpdate(boolean)
controlP5.Controller : Bang setValue(float)
controlP5.Controller : Bang setValueLabel(String)
controlP5.Controller : Bang setValueSelf(float)
controlP5.Controller : Bang setView(ControllerView)
controlP5.Controller : Bang setVisible(boolean)
controlP5.Controller : Bang setWidth(int)
controlP5.Controller : Bang show()
controlP5.Controller : Bang unlock()
controlP5.Controller : Bang unplugFrom(Object)
controlP5.Controller : Bang unplugFrom(Object[])
controlP5.Controller : Bang unregisterTooltip()
controlP5.Controller : Bang update()
controlP5.Controller : Bang 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 : ControllerView getView()
controlP5.Controller : Label getCaptionLabel()
controlP5.Controller : Label getValueLabel()
controlP5.Controller : List getControllerPlugList()
controlP5.Controller : Pointer getPointer()
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[] getAbsolutePosition()
controlP5.Controller : float[] getArrayValue()
controlP5.Controller : float[] getPosition()
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)
created: 2015/03/24 12:25:36
*/

267
libraries/controlP5/examples/controllers/ControlP5button/ControlP5button.pde

@ -0,0 +1,267 @@
/**
* 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.Button : boolean isSwitch()
controlP5.Controller : Button addCallback(CallbackListener)
controlP5.Controller : Button addListener(ControlListener)
controlP5.Controller : Button addListenerFor(int, CallbackListener)
controlP5.Controller : Button align(int, int, int, int)
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 onChange(CallbackListener)
controlP5.Controller : Button onClick(CallbackListener)
controlP5.Controller : Button onDoublePress(CallbackListener)
controlP5.Controller : Button onDrag(CallbackListener)
controlP5.Controller : Button onDraw(ControllerView)
controlP5.Controller : Button onEndDrag(CallbackListener)
controlP5.Controller : Button onEnter(CallbackListener)
controlP5.Controller : Button onLeave(CallbackListener)
controlP5.Controller : Button onMove(CallbackListener)
controlP5.Controller : Button onPress(CallbackListener)
controlP5.Controller : Button onRelease(CallbackListener)
controlP5.Controller : Button onReleaseOutside(CallbackListener)
controlP5.Controller : Button onStartDrag(CallbackListener)
controlP5.Controller : Button onWheel(CallbackListener)
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 removeListenerFor(int, CallbackListener)
controlP5.Controller : Button removeListenersFor(int)
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 setColorLabel(int)
controlP5.Controller : Button setColorValue(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 setImage(PImage)
controlP5.Controller : Button setImage(PImage, int)
controlP5.Controller : Button setImages(PImage, PImage, PImage)
controlP5.Controller : Button setImages(PImage, PImage, PImage, PImage)
controlP5.Controller : Button setLabel(String)
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(float, float)
controlP5.Controller : Button setPosition(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 setValue(float)
controlP5.Controller : Button setValueLabel(String)
controlP5.Controller : Button setValueSelf(float)
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 : ControllerView getView()
controlP5.Controller : Label getCaptionLabel()
controlP5.Controller : Label getValueLabel()
controlP5.Controller : List getControllerPlugList()
controlP5.Controller : Pointer getPointer()
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[] getAbsolutePosition()
controlP5.Controller : float[] getArrayValue()
controlP5.Controller : float[] getPosition()
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)
created: 2015/03/24 12:20:49
*/

BIN
libraries/controlP5/examples/controllers/ControlP5button/data/button_a.png

After

Width: 50  |  Height: 50  |  Size: 1.2 KiB

BIN
libraries/controlP5/examples/controllers/ControlP5button/data/button_b.png

After

Width: 50  |  Height: 50  |  Size: 1.3 KiB

BIN
libraries/controlP5/examples/controllers/ControlP5button/data/button_c.png

After

Width: 50  |  Height: 50  |  Size: 1.2 KiB

207
libraries/controlP5/examples/controllers/ControlP5buttonBar/ControlP5buttonBar.pde

@ -0,0 +1,207 @@
/**
* ControlP5 ButtonBar
*
* work-in-progress
*
* by Andreas Schlegel, 2012
* www.sojamo.de/libraries/controlp5
*
*/
import controlP5.*;
ControlP5 cp5;
void setup() {
size(400, 400);
cp5 = new ControlP5(this);
ButtonBar b = cp5.addButtonBar("bar")
.setPosition(0, 0)
.setSize(400, 20)
.addItems(split("a b c d e f g h i j"," "))
;
println(b.getItem("a"));
b.changeItem("a","text","first");
b.changeItem("b","text","second");
b.changeItem("c","text","third");
b.onMove(new CallbackListener(){
public void controlEvent(CallbackEvent ev) {
ButtonBar bar = (ButtonBar)ev.getController();
println("hello ",bar.hover());
}
});
}
void bar(int n) {
println("bar clicked, item-value:", n);
}
void draw() {
background(220);
}
/*
a list of all methods available for the ButtonBar Controller
use ControlP5.printPublicMethodsFor(ButtonBar.class);
to print the following list into the console.
You can find further details about class ButtonBar in the javadoc.
Format:
ClassName : returnType methodName(parameter type)
controlP5.ButtonBar : ButtonBar addItem(String, Object)
controlP5.ButtonBar : ButtonBar addItems(List)
controlP5.ButtonBar : ButtonBar addItems(Map)
controlP5.ButtonBar : ButtonBar addItems(String[])
controlP5.ButtonBar : ButtonBar clear()
controlP5.ButtonBar : ButtonBar removeItem(String)
controlP5.ButtonBar : ButtonBar removeItems(List)
controlP5.ButtonBar : ButtonBar setItems(List)
controlP5.ButtonBar : ButtonBar setItems(Map)
controlP5.ButtonBar : ButtonBar setItems(String[])
controlP5.ButtonBar : List getItems()
controlP5.ButtonBar : Map getItem(String)
controlP5.ButtonBar : int hover()
controlP5.ButtonBar : void changeItem(String, String, Object)
controlP5.ButtonBar : void onClick()
controlP5.Controller : ButtonBar addCallback(CallbackListener)
controlP5.Controller : ButtonBar addListener(ControlListener)
controlP5.Controller : ButtonBar addListenerFor(int, CallbackListener)
controlP5.Controller : ButtonBar align(int, int, int, int)
controlP5.Controller : ButtonBar bringToFront()
controlP5.Controller : ButtonBar bringToFront(ControllerInterface)
controlP5.Controller : ButtonBar hide()
controlP5.Controller : ButtonBar linebreak()
controlP5.Controller : ButtonBar listen(boolean)
controlP5.Controller : ButtonBar lock()
controlP5.Controller : ButtonBar onChange(CallbackListener)
controlP5.Controller : ButtonBar onClick(CallbackListener)
controlP5.Controller : ButtonBar onDoublePress(CallbackListener)
controlP5.Controller : ButtonBar onDrag(CallbackListener)
controlP5.Controller : ButtonBar onDraw(ControllerView)
controlP5.Controller : ButtonBar onEndDrag(CallbackListener)
controlP5.Controller : ButtonBar onEnter(CallbackListener)
controlP5.Controller : ButtonBar onLeave(CallbackListener)
controlP5.Controller : ButtonBar onMove(CallbackListener)
controlP5.Controller : ButtonBar onPress(CallbackListener)
controlP5.Controller : ButtonBar onRelease(CallbackListener)
controlP5.Controller : ButtonBar onReleaseOutside(CallbackListener)
controlP5.Controller : ButtonBar onStartDrag(CallbackListener)
controlP5.Controller : ButtonBar onWheel(CallbackListener)
controlP5.Controller : ButtonBar plugTo(Object)
controlP5.Controller : ButtonBar plugTo(Object, String)
controlP5.Controller : ButtonBar plugTo(Object[])
controlP5.Controller : ButtonBar plugTo(Object[], String)
controlP5.Controller : ButtonBar registerProperty(String)
controlP5.Controller : ButtonBar registerProperty(String, String)
controlP5.Controller : ButtonBar registerTooltip(String)
controlP5.Controller : ButtonBar removeBehavior()
controlP5.Controller : ButtonBar removeCallback()
controlP5.Controller : ButtonBar removeCallback(CallbackListener)
controlP5.Controller : ButtonBar removeListener(ControlListener)
controlP5.Controller : ButtonBar removeListenerFor(int, CallbackListener)
controlP5.Controller : ButtonBar removeListenersFor(int)
controlP5.Controller : ButtonBar removeProperty(String)
controlP5.Controller : ButtonBar removeProperty(String, String)
controlP5.Controller : ButtonBar setArrayValue(float[])
controlP5.Controller : ButtonBar setArrayValue(int, float)
controlP5.Controller : ButtonBar setBehavior(ControlBehavior)
controlP5.Controller : ButtonBar setBroadcast(boolean)
controlP5.Controller : ButtonBar setCaptionLabel(String)
controlP5.Controller : ButtonBar setColor(CColor)
controlP5.Controller : ButtonBar setColorActive(int)
controlP5.Controller : ButtonBar setColorBackground(int)
controlP5.Controller : ButtonBar setColorCaptionLabel(int)
controlP5.Controller : ButtonBar setColorForeground(int)
controlP5.Controller : ButtonBar setColorLabel(int)
controlP5.Controller : ButtonBar setColorValue(int)
controlP5.Controller : ButtonBar setColorValueLabel(int)
controlP5.Controller : ButtonBar setDecimalPrecision(int)
controlP5.Controller : ButtonBar setDefaultValue(float)
controlP5.Controller : ButtonBar setHeight(int)
controlP5.Controller : ButtonBar setId(int)
controlP5.Controller : ButtonBar setImage(PImage)
controlP5.Controller : ButtonBar setImage(PImage, int)
controlP5.Controller : ButtonBar setImages(PImage, PImage, PImage)
controlP5.Controller : ButtonBar setImages(PImage, PImage, PImage, PImage)
controlP5.Controller : ButtonBar setLabel(String)
controlP5.Controller : ButtonBar setLabelVisible(boolean)
controlP5.Controller : ButtonBar setLock(boolean)
controlP5.Controller : ButtonBar setMax(float)
controlP5.Controller : ButtonBar setMin(float)
controlP5.Controller : ButtonBar setMouseOver(boolean)
controlP5.Controller : ButtonBar setMoveable(boolean)
controlP5.Controller : ButtonBar setPosition(float, float)
controlP5.Controller : ButtonBar setPosition(float[])
controlP5.Controller : ButtonBar setSize(PImage)
controlP5.Controller : ButtonBar setSize(int, int)
controlP5.Controller : ButtonBar setStringValue(String)
controlP5.Controller : ButtonBar setUpdate(boolean)
controlP5.Controller : ButtonBar setValue(float)
controlP5.Controller : ButtonBar setValueLabel(String)
controlP5.Controller : ButtonBar setValueSelf(float)
controlP5.Controller : ButtonBar setView(ControllerView)
controlP5.Controller : ButtonBar setVisible(boolean)
controlP5.Controller : ButtonBar setWidth(int)
controlP5.Controller : ButtonBar show()
controlP5.Controller : ButtonBar unlock()
controlP5.Controller : ButtonBar unplugFrom(Object)
controlP5.Controller : ButtonBar unplugFrom(Object[])
controlP5.Controller : ButtonBar unregisterTooltip()
controlP5.Controller : ButtonBar update()
controlP5.Controller : ButtonBar 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 : ControllerView getView()
controlP5.Controller : Label getCaptionLabel()
controlP5.Controller : Label getValueLabel()
controlP5.Controller : List getControllerPlugList()
controlP5.Controller : Pointer getPointer()
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[] getAbsolutePosition()
controlP5.Controller : float[] getArrayValue()
controlP5.Controller : float[] getPosition()
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)
created: 2015/03/24 12:20:51
*/

89
libraries/controlP5/examples/controllers/ControlP5canvas/ControlP5canvas.pde

@ -0,0 +1,89 @@
/**
* 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 Canvas 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(PGraphics)
controlP5.Canvas : void update(PApplet)
java.lang.Object : String toString()
java.lang.Object : boolean equals(Object)
created: 2015/03/24 12:20:53
*/

243
libraries/controlP5/examples/controllers/ControlP5chart/ControlP5chart.pde

@ -0,0 +1,243 @@
/**
* ControlP5 Chart
*
* find a list of public methods available for the Chart Controller
* at the bottom of this sketch.
*
* by Andreas Schlegel, 2014
* www.sojamo.de/libraries/controlp5
*
*/
import controlP5.*;
ControlP5 cp5;
Chart myChart;
void setup() {
size(800, 400);
cp5 = new ControlP5(this);
myChart = cp5.addChart("dataflow")
.setPosition(50, 50)
.setSize(200, 100)
.setRange(-20, 20)
.setView(Chart.LINE) // use Chart.LINE, Chart.PIE, Chart.AREA, Chart.BAR_CENTERED
.setStrokeWeight(1.5)
.setColorCaptionLabel(color(40))
;
myChart.addDataSet("incoming");
myChart.setData("incoming", new float[100]);
}
void draw() {
background(200);
// unshift: add data from left to right (first in)
//myChart.unshift("incoming", (sin(frameCount*0.1)*20));
// push: add data from right to left (last in)
myChart.push("incoming", (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 addLast(String, float)
controlP5.Chart : Chart addLast(float)
controlP5.Chart : Chart push(String, float)
controlP5.Chart : Chart push(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 removeFirst()
controlP5.Chart : Chart removeFirst(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 addListenerFor(int, CallbackListener)
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 onChange(CallbackListener)
controlP5.Controller : Chart onClick(CallbackListener)
controlP5.Controller : Chart onDoublePress(CallbackListener)
controlP5.Controller : Chart onDrag(CallbackListener)
controlP5.Controller : Chart onDraw(ControllerView)
controlP5.Controller : Chart onEndDrag(CallbackListener)
controlP5.Controller : Chart onEnter(CallbackListener)
controlP5.Controller : Chart onLeave(CallbackListener)
controlP5.Controller : Chart onMove(CallbackListener)
controlP5.Controller : Chart onPress(CallbackListener)
controlP5.Controller : Chart onRelease(CallbackListener)
controlP5.Controller : Chart onReleaseOutside(CallbackListener)
controlP5.Controller : Chart onStartDrag(CallbackListener)
controlP5.Controller : Chart onWheel(CallbackListener)
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 removeListenerFor(int, CallbackListener)
controlP5.Controller : Chart removeListenersFor(int)
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 setColorLabel(int)
controlP5.Controller : Chart setColorValue(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 setImage(PImage)
controlP5.Controller : Chart setImage(PImage, int)
controlP5.Controller : Chart setImages(PImage, PImage, PImage)
controlP5.Controller : Chart setImages(PImage, PImage, PImage, PImage)
controlP5.Controller : Chart setLabel(String)
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(float, float)
controlP5.Controller : Chart setPosition(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 setValue(float)
controlP5.Controller : Chart setValueLabel(String)
controlP5.Controller : Chart setValueSelf(float)
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 : ControllerView getView()
controlP5.Controller : Label getCaptionLabel()
controlP5.Controller : Label getValueLabel()
controlP5.Controller : List getControllerPlugList()
controlP5.Controller : Pointer getPointer()
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[] getAbsolutePosition()
controlP5.Controller : float[] getArrayValue()
controlP5.Controller : float[] getPosition()