Module org.praxislive.audio.code
Package org.praxislive.audio.code
Class AudioCodeContext<D extends AudioCodeDelegate>
- java.lang.Object
-
- org.praxislive.code.CodeContext<D>
-
- org.praxislive.audio.code.AudioCodeContext<D>
-
public class AudioCodeContext<D extends AudioCodeDelegate> extends CodeContext<D>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.praxislive.code.CodeContext
CodeContext.ClockListener
-
-
Constructor Summary
Constructors Constructor Description AudioCodeContext(AudioCodeConnector<D> connector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configure(CodeComponent<D> cmp, CodeContext<D> oldCtxt)
A hook method that will be called when the CodeContext is configured on a component.protected void
hierarchyChanged()
Called when the hierarchy changes, which might be because the component hierarchy has changed (seeComponent.hierarchyChanged()
), the context has been added or is being removed from the component, or for any other reason that cached information should be invalidated (eg.protected void
starting(ExecutionContext source)
Hook called when the execution context is started (moves to stateExecutionContext.State.ACTIVE
) or the context is added to a component within an active execution context.protected void
stopping(ExecutionContext source)
Hook called when the execution context is stopped (moves away from stateExecutionContext.State.ACTIVE
) or the context is removed from a component within an active execution context.protected void
tick(ExecutionContext source)
Hook called by the clock listener on the execution context.-
Methods inherited from class org.praxislive.code.CodeContext
addClockListener, checkActive, dispose, flush, getAddress, getComponent, getControl, getControlDescriptor, getControlIDs, getDelegate, getExecutionContext, getInfo, getLog, getLogLevel, getLookup, getPort, getPortDescriptor, getPortIDs, getTime, invoke, invokeCallable, locateService, log, removeClockListener, reset, starting, stopping, update
-
-
-
-
Constructor Detail
-
AudioCodeContext
public AudioCodeContext(AudioCodeConnector<D> connector)
-
-
Method Detail
-
configure
protected void configure(CodeComponent<D> cmp, CodeContext<D> oldCtxt)
Description copied from class:CodeContext
A 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:
configure
in classCodeContext<D extends AudioCodeDelegate>
- Parameters:
cmp
- component being attached tooldCtxt
- previous context, or null if there was none
-
hierarchyChanged
protected void hierarchyChanged()
Description copied from class:CodeContext
Called when the hierarchy changes, which might be because the component hierarchy has changed (seeComponent.hierarchyChanged()
), the context has been added or is being removed from the component, or for any other reason that cached information should be invalidated (eg. anything retrieved from the lookup). Subclasses may override this to handle such events / invalidate lookup results. The default implementation does nothing.- Overrides:
hierarchyChanged
in classCodeContext<D extends AudioCodeDelegate>
-
starting
protected void starting(ExecutionContext source)
Description copied from class:CodeContext
Hook called when the execution context is started (moves to stateExecutionContext.State.ACTIVE
) or the context is added to a component within an active execution context.- Overrides:
starting
in classCodeContext<D extends AudioCodeDelegate>
- Parameters:
source
- execution context
-
stopping
protected void stopping(ExecutionContext source)
Description copied from class:CodeContext
Hook called when the execution context is stopped (moves away from stateExecutionContext.State.ACTIVE
) or the context is removed from a component within an active execution context.- Overrides:
stopping
in classCodeContext<D extends AudioCodeDelegate>
- Parameters:
source
- execution context
-
tick
protected void tick(ExecutionContext source)
Description copied from class:CodeContext
Hook called by the clock listener on the execution context. The default implementation does nothing.- Overrides:
tick
in classCodeContext<D extends AudioCodeDelegate>
- Parameters:
source
- execution context
-
-