|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectcontrolP5.Controller
controlP5.Radio
public class Radio
deprecated, use RadioButton instead.
Field Summary | |
---|---|
int |
defaultValue
Deprecated. |
Fields inherited from class controlP5.Controller |
---|
MOVE, PRESSED, RELEASE |
Fields inherited from interface controlP5.ControlP5Constants |
---|
acceptClassList, ALT, ARRAY, BACKSPACE, BOOLEAN, CONTROL, DECREASE, DELETE, DOWN, ENTER, ESCAPE, eventMethod, FIELD, FLOAT, HALF_PI, HIDE, INCREASE, INTEGER, INVALID, KEYCONTROL, LEFT, LOAD, MENU, METHOD, PI, PRINT, RESET, RIGHT, SAVE, SHIFT, STRING, SWITCH_BACK, SWITCH_FORE, TAB, TWO_PI, UP, VERBOSE |
Constructor Summary | |
---|---|
Radio(ControlP5 theControlP5,
ControllerGroup theParent,
java.lang.String theName,
float theX,
float theY)
Deprecated. |
|
Radio(ControlP5 theControlP5,
ControllerGroup theParent,
java.lang.String theName,
float theX,
float theY,
int theWidth,
int theHeight,
int theLineSpacing)
Deprecated. |
Method Summary | |
---|---|
void |
activate(java.lang.String theRadioButtonName)
Deprecated. activate a radio button by name. |
controlP5.Radio.RadioToggle |
add(java.lang.String theLabel,
int theValue)
Deprecated. |
controlP5.Radio.RadioToggle |
addItem(java.lang.String theLabel,
int theValue)
Deprecated. add a new radio button item. |
void |
addToXMLElement(ControlP5XMLElement theElement)
Deprecated. |
controlP5.Radio.RadioToggle |
current()
Deprecated. get current radio button. |
void |
current(controlP5.Radio.RadioToggle theRadioButton)
Deprecated. set current radio button. |
void |
deactivate(java.lang.String theRadioButtonName)
Deprecated. deactivate a RadioButton and set the value of the radio controller to the default value. |
void |
deactivateAll()
Deprecated. |
void |
draw(processing.core.PApplet theApplet)
Deprecated. |
void |
removeItem(java.lang.String theName)
Deprecated. |
void |
setColorActive(int theColor)
Deprecated. set the color for the controller while active. |
void |
setColorBackground(int theColor)
Deprecated. set the background color of the controller. |
void |
setColorForeground(int theColor)
Deprecated. set the foreground color of the controller. |
void |
setColorLabel(int theColor)
Deprecated. set the color of the text label of the controller. |
void |
setDefaultValue(int theValue)
Deprecated. set the default value of a Radio controller, in case no radio button is selected. |
void |
setValue(float theValue)
Deprecated. set the value of the controller. |
void |
update()
Deprecated. updates the value of the controller without having to set the value explicitly. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int defaultValue
Constructor Detail |
---|
public Radio(ControlP5 theControlP5, ControllerGroup theParent, java.lang.String theName, float theX, float theY)
theControlP5
- ControlP5theParent
- ControllerGrouptheName
- StringtheX
- floattheY
- floatpublic Radio(ControlP5 theControlP5, ControllerGroup theParent, java.lang.String theName, float theX, float theY, int theWidth, int theHeight, int theLineSpacing)
Method Detail |
---|
public controlP5.Radio.RadioToggle add(java.lang.String theLabel, int theValue)
theLabel
- StringtheValue
- int
public controlP5.Radio.RadioToggle addItem(java.lang.String theLabel, int theValue)
theLabel
- StringtheValue
- intpublic void removeItem(java.lang.String theName)
public void draw(processing.core.PApplet theApplet)
draw
in interface CDrawable
draw
in interface ControllerInterface
draw
in class Controller
theApplet
- PAppletpublic void setDefaultValue(int theValue)
theValue
- public void setValue(float theValue)
Controller
setValue
in class Controller
theValue
- floatpublic void update()
Controller
update
in interface ControllerInterface
update
in class Controller
public void current(controlP5.Radio.RadioToggle theRadioButton)
theRadioButton
- RadioButtonpublic controlP5.Radio.RadioToggle current()
public void activate(java.lang.String theRadioButtonName)
theRadioButtonLabel
- Stringpublic void deactivate(java.lang.String theRadioButtonName)
theRadioButtonName
- public void deactivateAll()
public void setColorBackground(int theColor)
Controller
setColorBackground
in interface ControllerInterface
setColorBackground
in class Controller
theColor
- intpublic void setColorForeground(int theColor)
Controller
setColorForeground
in interface ControllerInterface
setColorForeground
in class Controller
theColor
- intpublic void setColorLabel(int theColor)
Controller
setColorLabel
in interface ControllerInterface
setColorLabel
in class Controller
theColor
- intpublic void setColorActive(int theColor)
Controller
setColorActive
in interface ControllerInterface
setColorActive
in class Controller
theColor
- intpublic void addToXMLElement(ControlP5XMLElement theElement)
theElement
- ControlP5XMLElement
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |