controlP5
Class ControlBehavior

java.lang.Object
  extended by controlP5.ControlBehavior

public abstract class ControlBehavior
extends java.lang.Object

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

ControlBehavior

public ControlBehavior()
Method Detail

controller

public Controller controller()
returns the controller this behavior is connected to.

Returns:
Controller

setValue

public void setValue(float theValue)
set the value of the controller.

Parameters:
theValue - float

value

public float value()
get the value of the controller this behavior is connected to.

Returns:
float

update

public abstract void update()
when extending ControlBehavior, update() has to be overwritten.


setActive

public void setActive(boolean theFlag)
(de)activate the behavior.

Parameters:
theFlag - boolean

isActive

public boolean isActive()
check if the behavior is active or not.

Returns:
boolean


processing library controlP5 by Andreas Schlegel. (c) 2010