Module org.praxislive.video.code
Package org.praxislive.video.code
Class VideoCodeContext<D extends VideoCodeDelegate>
- java.lang.Object
-
- org.praxislive.code.CodeContext<D>
-
- org.praxislive.video.code.VideoCodeContext<D>
-
public class VideoCodeContext<D extends VideoCodeDelegate> extends CodeContext<D>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.praxislive.code.CodeContext
CodeContext.ClockListener
-
-
Constructor Summary
Constructors Constructor Description VideoCodeContext(VideoCodeConnector<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
starting(ExecutionContext source, boolean fullStart)
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
-
VideoCodeContext
public VideoCodeContext(VideoCodeConnector<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 VideoCodeDelegate>
- Parameters:
cmp
- component being attached tooldCtxt
- previous context, or null if there was none
-
starting
protected void starting(ExecutionContext source, boolean fullStart)
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. Full start 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.starting(org.praxislive.core.ExecutionContext)
.- Overrides:
starting
in classCodeContext<D extends VideoCodeDelegate>
- Parameters:
source
- execution contextfullStart
- whether the context itself is transitioning state
-
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<D extends VideoCodeDelegate>
- 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<D extends VideoCodeDelegate>
- Parameters:
source
- execution context
-
-