|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectcontrolP5.ControlBehavior
public abstract class ControlBehavior
control behavior is an abstract class and can be extended, update() has to be implemented. how to use ControlBehavior please see the ControlP5behavior example in the examples folder.
Constructor Summary | |
---|---|
ControlBehavior()
|
Method Summary | |
---|---|
Controller |
controller()
returns the controller this behavior is connected to. |
boolean |
isActive()
check if the behavior is active or not. |
void |
setActive(boolean theFlag)
(de)activate the behavior. |
void |
setValue(float theValue)
set the value of the controller. |
abstract void |
update()
when extending ControlBehavior, update() has to be overwritten. |
float |
value()
get the value of the controller this behavior is connected to. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ControlBehavior()
Method Detail |
---|
public Controller controller()
public void setValue(float theValue)
theValue
- floatpublic float value()
public abstract void update()
public void setActive(boolean theFlag)
theFlag
- booleanpublic boolean isActive()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |