-
Nested Class Summary
Nested classes/interfaces inherited from class org.praxislive.code.CodeContext
CodeContext.ClockListener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigure(CodeComponent<P3DCodeDelegate> cmp, CodeContext<P3DCodeDelegate> oldCtxt) A hook method that will be called when the CodeContext is configured on a component.voidonInit()Hook called when the code context becomes active, either as a result of the execution context becoming active or the code context being attached to a component within an active execution context.protected voidonReset()Hook called when the context is being reset.protected voidonStop()Hook called when the execution context is stopping.protected voidtick(ExecutionContext source) Hook called by the clock listener on the execution context.Methods inherited from class org.praxislive.code.CodeContext
addClockListener, checkActive, controlIDs, dispose, flush, getAddress, getComponent, getControl, getControlDescriptor, getDelegate, getExecutionContext, getInfo, getLog, getLogLevel, getLookup, getPort, getPortDescriptor, getTime, hierarchyChanged, invoke, invokeCallable, locateService, log, onStart, portIDs, removeClockListener, resetAndInitialize, update
-
Constructor Details
-
P3DCodeContext
-
-
Method Details
-
configure
Description copied from class:CodeContextA hook method that will be called when the CodeContext is configured on a component. It is called after controls, ports and refs have been configured. Subclasses may override this to do additional configuration. The default implementation does nothing.- Overrides:
configurein classCodeContext<P3DCodeDelegate>- Parameters:
cmp- component being attached tooldCtxt- previous context, or null if there was none
-
onInit
public void onInit()Description copied from class:CodeContextHook called when the code context becomes active, either as a result of the execution context becoming active or the code context being attached to a component within an active execution context.- Overrides:
onInitin classCodeContext<P3DCodeDelegate>
-
onReset
protected void onReset()Description copied from class:CodeContextHook called when the context is being reset.- Overrides:
onResetin classCodeContext<P3DCodeDelegate>
-
onStop
protected void onStop()Description copied from class:CodeContextHook called when the execution context is stopping.- Overrides:
onStopin classCodeContext<P3DCodeDelegate>
-
tick
Description copied from class:CodeContextHook called by the clock listener on the execution context. The default implementation does nothing.- Overrides:
tickin classCodeContext<P3DCodeDelegate>- Parameters:
source- execution context
-