Class AudioCodeContext

java.lang.Object
org.praxislive.code.CodeContext<AudioCodeDelegate>
org.praxislive.audio.code.AudioCodeContext

public class AudioCodeContext extends CodeContext<AudioCodeDelegate>
  • Constructor Details

  • Method Details

    • configure

      protected void configure(CodeComponent<AudioCodeDelegate> cmp, CodeContext<AudioCodeDelegate> 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 class CodeContext<AudioCodeDelegate>
      Parameters:
      cmp - component being attached to
      oldCtxt - 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 (see Component.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 class CodeContext<AudioCodeDelegate>
    • onInit

      protected void onInit()
      Description copied from class: CodeContext
      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.
      Overrides:
      onInit in class CodeContext<AudioCodeDelegate>
    • onReset

      protected void onReset()
      Description copied from class: CodeContext
      Hook called when the context is being reset.

      Code inside this hook should not invoke code on the delegate.

      Overrides:
      onReset in class CodeContext<AudioCodeDelegate>
    • 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 class CodeContext<AudioCodeDelegate>
      Parameters:
      source - execution context