- java.lang.Object
-
- org.praxislive.code.CodeContext<P3DCodeDelegate>
-
- org.praxislive.video.pgl.code.P3DCodeContext
-
public class P3DCodeContext extends CodeContext<P3DCodeDelegate>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.praxislive.code.CodeContext
CodeContext.ClockListener
-
-
Constructor Summary
Constructors Constructor Description P3DCodeContext(P3DCodeConnector connector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configure(CodeComponent<P3DCodeDelegate> cmp, CodeContext<P3DCodeDelegate> oldCtxt)
A hook method that will be called when the CodeContext is configured on a component.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, boolean fullStop)
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, hierarchyChanged, invoke, invokeCallable, locateService, log, removeClockListener, reset, starting, stopping, update
-
-
-
-
Constructor Detail
-
P3DCodeContext
public P3DCodeContext(P3DCodeConnector connector)
-
-
Method Detail
-
configure
protected void configure(CodeComponent<P3DCodeDelegate> cmp, CodeContext<P3DCodeDelegate> 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<P3DCodeDelegate>
- Parameters:
cmp
- component being attached tooldCtxt
- previous context, or null if there was none
-
starting
public 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<P3DCodeDelegate>
- Parameters:
source
- execution context
-
stopping
protected void stopping(ExecutionContext source, boolean fullStop)
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. Full stop will be true in the former case when the execution context itself is changing state.This method may be overridden in subclasses. The default implementation delegates to
CodeContext.stopping(org.praxislive.core.ExecutionContext)
.- Overrides:
stopping
in classCodeContext<P3DCodeDelegate>
- Parameters:
source
- execution contextfullStop
- whether the context itself is transitioning state
-
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<P3DCodeDelegate>
- Parameters:
source
- execution context
-
-