java.lang.Object
org.praxislive.code.CodeDelegate
org.praxislive.code.CodeRootDelegate
org.praxislive.code.CodeRootContainerDelegate
org.praxislive.core.code.CoreRootContainerDelegate
- All Implemented Interfaces:
ContainerDelegateAPI,DefaultDelegateAPI
public class CoreRootContainerDelegate
extends CodeRootContainerDelegate
implements DefaultDelegateAPI
Basic core code root base class.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.praxislive.code.CodeRootContainerDelegate
CodeRootContainerDelegate.DisplayTableNested classes/interfaces inherited from class org.praxislive.code.CodeRootDelegate
CodeRootDelegate.DriverNested classes/interfaces inherited from interface org.praxislive.code.ContainerDelegateAPI
ContainerDelegateAPI.CustomType, ContainerDelegateAPI.SupportedTypes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidHook called when the list of children has changed.voidinit()Hook called whenever the delegate needs to be initialized.voidstarting()Hook called whenever the root is started.voidstopping()Hook called when the root is stopping.voidupdate()Hook called on every clock update.Methods inherited from class org.praxislive.code.CodeRootContainerDelegate
childrenMethods inherited from class org.praxislive.code.CodeDelegate
ask, ask, ask, async, eval, find, getLookup, isLoggable, log, log, log, log, millis, self, self, tell, tell, tell, tellIn, tellIn, tellIn, time, timeout, transmit, transmit, transmitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.praxislive.code.DefaultDelegateAPI
abs, acos, array, array, array, asin, atan, atan2, B, constrain, constrain, cos, D, D, degrees, dist, dist, exp, I, I, lerp, log, map, max, max, max, max, max, max, min, min, min, min, min, min, norm, pow, radians, random, random, randomOf, randomOf, randomOf, round, S, sin, sq, sqrt, tan, V
-
Constructor Details
-
CoreRootContainerDelegate
public CoreRootContainerDelegate()
-
-
Method Details
-
init
public void init()Hook called whenever the delegate needs to be initialized. Will be called when the root is started, and any time the code is updated. Because this code is called in a running root, the code should be suitable for real-time usage.- Overrides:
initin classCodeRootContainerDelegate
-
starting
public void starting()Hook called whenever the root is started. This method will be called afterinit(). It is not called on code updates. -
update
public void update()Hook called on every clock update. This will vary depending on the root the component is installed into - it may correspond to every buffer or frame. If a component reacts solely to input and doesn't need to be called every cycle, do not override this method so that the delegate does not have to be connected to the clock (for efficiency). -
stopping
public void stopping()Hook called when the root is stopping. -
childrenChanged
public void childrenChanged()Hook called when the list of children has changed.
-