|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectcontrolP5.ControllerGroup
controlP5.ControlGroup
controlP5.RadioButton
controlP5.CheckBox
public class CheckBox
A checkBox is a multiple-choice radioButton. items are added to a checkBox and can be organized is rows and columns. items of a checkBox are of type Toggle.
Constructor Summary | |
---|---|
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() |
Method Summary | |
---|---|
void |
activate(int theIndex)
activate an individual item of the checkox-item-list. |
void |
activate(java.lang.String theRadioButtonName)
|
void |
activateAll()
activate all checkBox items. |
void |
deactivate(int theIndex)
deactivate a radio button. |
void |
deactivate(java.lang.String theRadioButtonName)
deactivate a RadioButton and set the value of the radio controller to the default value (-1). |
void |
toggle(int theIndex)
|
void |
toggle(java.lang.String theRadioButtonName)
|
Methods inherited from class controlP5.RadioButton |
---|
addItem, addItem, controlEvent, deactivateAll, getItem, getState, getState, removeItem, setItemHeight, setItemsPerRow, setItemWidth, setSpacingColumn, setSpacingRow, updateLayout |
Methods inherited from class controlP5.ControlGroup |
---|
activateEvent, addCloseButton, addToXMLElement, arrayValue, getBackgroundHeight, hideBar, isBarVisible, mousePressed, removeCloseButton, setBackgroundColor, setBackgroundHeight, setBarHeight, showBar, stringValue, value |
Methods inherited from class controlP5.ControllerGroup |
---|
absolutePosition, add, addCanvas, addDrawable, captionLabel, close, color, continuousUpdateEvents, controller, draw, getAsXML, getColor, getTab, getWindow, hide, id, init, isMoveable, isOpen, isUpdate, isVisible, isXMLsavable, keyEvent, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, name, open, position, remove, remove, remove, removeCanvas, setColorActive, setColorBackground, setColorForeground, setColorLabel, setColorValue, setGroup, setGroup, setId, setLabel, setMousePressed, setMoveable, setOpen, setPosition, setTab, setTab, setTab, setUpdate, setVisible, show, update, updateAbsolutePosition, updateEvents, updateInternalEvents, valueLabel |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CheckBox(ControlP5 theControlP5, ControllerGroup theParent, java.lang.String theName, int theX, int theY)
theControlP5
- theParent
- theName
- theX
- theY
- Method Detail |
---|
public final void activateAll()
public final void activate(int theIndex)
activate
in class RadioButton
public final void deactivate(int theIndex)
RadioButton
deactivate
in class RadioButton
public final void toggle(int theIndex)
toggle
in class RadioButton
public final void toggle(java.lang.String theRadioButtonName)
public final void activate(java.lang.String theRadioButtonName)
activate
in class RadioButton
public final void deactivate(java.lang.String theRadioButtonName)
RadioButton
deactivate
in class RadioButton
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |