- java.lang.Object
-
- org.praxislive.code.CodeContext<P2DCodeDelegate>
-
- org.praxislive.video.pgl.code.P2DCodeContext
-
public class P2DCodeContext extends CodeContext<P2DCodeDelegate>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.praxislive.code.CodeContext
CodeContext.ClockListener
-
-
Constructor Summary
Constructors Constructor Description P2DCodeContext(P2DCodeConnector connector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigure(CodeComponent<P2DCodeDelegate> cmp, CodeContext<P2DCodeDelegate> oldCtxt)A hook method that will be called when the CodeContext is configured on a component.protected voidstarting(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 voidstopping(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 voidtick(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
-
P2DCodeContext
public P2DCodeContext(P2DCodeConnector connector)
-
-
Method Detail
-
configure
protected void configure(CodeComponent<P2DCodeDelegate> cmp, CodeContext<P2DCodeDelegate> oldCtxt)
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<P2DCodeDelegate>- Parameters:
cmp- component being attached tooldCtxt- previous context, or null if there was none
-
starting
protected void starting(ExecutionContext source)
Description copied from class:CodeContextHook 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:
startingin classCodeContext<P2DCodeDelegate>- Parameters:
source- execution context
-
stopping
protected void stopping(ExecutionContext source, boolean fullStop)
Description copied from class:CodeContextHook 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:
stoppingin classCodeContext<P2DCodeDelegate>- Parameters:
source- execution contextfullStop- whether the context itself is transitioning state
-
tick
protected void tick(ExecutionContext source)
Description copied from class:CodeContextHook called by the clock listener on the execution context. The default implementation does nothing.- Overrides:
tickin classCodeContext<P2DCodeDelegate>- Parameters:
source- execution context
-
-