Overview  Package   Class  Tree  Index 

be.lassi.context
Class ShowContext

java.lang.Object
  extended by be.lassi.context.ShowContext
All Implemented Interfaces:
ClockListener

public class ShowContext
extends java.lang.Object
implements ClockListener


Constructor Summary
ShowContext()
          Constructs a new instance.
ShowContext(AllPreferences preferences)
          Constructs a new instance.
 
Method Summary
 void add(LevelController levelController)
          Adds a level controller.
 void addChannelLevelProvider(LevelProvider levelProvider)
          Adds a channel level provider.
 void addShowContextListener(ShowContextListener listener)
          Adds a show context listener.
 void clockTick(long now)
          
 void close()
          Closes the lanbox.
 void cuesCopy()
          Copy the currently selected cues in the CueList into the cue paste buffer.
 void cuesCut()
          Remove the currently selected cues in the CueList after copying them into the cue paste buffer.
 void cuesPasteInsert(int cueIndex)
          Insert the Cues in the cue paste buffer into the CueList at given index.
 void execute(Command command)
          Executes given lanbox command.
 void fade()
           
 Audio getAudio()
           
 Timing getChangeTiming()
          Gets the change timing.
 LevelProvider getChannelLevelProvider(int index)
          Gets the channel level provider at given index.
 ColorSelection getColorSelection()
           
 ConnectionStatus getConnectionStatus()
           
 Holder<Control> getControlHolder()
           
 CuesController getCuesController()
           
 Timing getDefaultTiming()
          Gets the default timing.
 DirtyIndicator getDirtyCues()
           
 DirtyIndicator getDirtyShow()
           
 FixtureControl getFixtureControl()
           
 FunctionKeys getFunctionKeys()
           
 Kernel getKernel()
          Gets the kernel.
 Lanbox getLanbox()
          Gets the lanbox.
 float getLevel(long now, int channelIndex)
          Answer the level for the channel with given index, using the HTP (Highest Takes Precidence) principle.
 Library getLibrary()
           
 MidiEngine getMidiEngine()
           
 int getNumberOfChannelLevelProviders()
          Gets the number of channel level providers.
 AllPreferences getPreferences()
          Gets all preferences.
 Runner getRunner()
           
 WebServer getServer()
           
 Show getShow()
          Gets the current show.
 void go()
           
 void notifyListenersPostChange()
          Notifies listeners that the Show is has changed.
 void notifyListenersPreChange()
          Notifies listeners that the Show is about to change.
 void record()
           
 void removeChannelLevelProvider(LevelProvider levelProvider)
          Removes given channel level provider.
 void removeShowContextListener(ShowContextListener listener)
          Removes a show context listener.
 void setChangeTiming(Timing timing)
          Set the timing parameters for changes in the Sheet user interface.
 void setDefaultTiming(Timing timing)
          Set the default timing parameters that will be used when creating new cues.
 void setShow(Show newShow)
          Sets a new show.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShowContext

public ShowContext()
Constructs a new instance.


ShowContext

public ShowContext(AllPreferences preferences)
Constructs a new instance.

Parameters:
preferences - the user preferences
Method Detail

add

public void add(LevelController levelController)
Adds a level controller.

Parameters:
levelController - the level controller to be added

addChannelLevelProvider

public void addChannelLevelProvider(LevelProvider levelProvider)
Adds a channel level provider.

Parameters:
levelProvider - the channel level provider to be added

addShowContextListener

public void addShowContextListener(ShowContextListener listener)
Adds a show context listener.

Parameters:
listener - the show context listener to be added

clockTick

public void clockTick(long now)

Specified by:
clockTick in interface ClockListener

close

public void close()
Closes the lanbox.


cuesCopy

public void cuesCopy()
Copy the currently selected cues in the CueList into the cue paste buffer.


cuesCut

public void cuesCut()
Remove the currently selected cues in the CueList after copying them into the cue paste buffer.


cuesPasteInsert

public void cuesPasteInsert(int cueIndex)
Insert the Cues in the cue paste buffer into the CueList at given index.

Parameters:
cueIndex - the position in the cue list at which to insert

execute

public void execute(Command command)
Executes given lanbox command.

Parameters:
command - the lanbox command to be executed

fade

public void fade()

getAudio

public Audio getAudio()

getChangeTiming

public Timing getChangeTiming()
Gets the change timing.

Returns:
the change timing

getChannelLevelProvider

public LevelProvider getChannelLevelProvider(int index)
Gets the channel level provider at given index.

Parameters:
index - the channel level provider index
Returns:
the channel level provider at given index

getColorSelection

public ColorSelection getColorSelection()

getConnectionStatus

public ConnectionStatus getConnectionStatus()

getControlHolder

public Holder<Control> getControlHolder()

getCuesController

public CuesController getCuesController()

getDefaultTiming

public Timing getDefaultTiming()
Gets the default timing.

Returns:
the default timing

getDirtyCues

public DirtyIndicator getDirtyCues()

getDirtyShow

public DirtyIndicator getDirtyShow()

getFixtureControl

public FixtureControl getFixtureControl()

getFunctionKeys

public FunctionKeys getFunctionKeys()

getKernel

public Kernel getKernel()
Gets the kernel.

Returns:
the kernel

getLanbox

public Lanbox getLanbox()
Gets the lanbox.

Returns:
the lanbox

getLevel

public float getLevel(long now,
                      int channelIndex)
Answer the level for the channel with given index, using the HTP (Highest Takes Precidence) principle.

Parameters:
now - the current system time
channelIndex - the channel index
Returns:
the level value

getLibrary

public Library getLibrary()

getMidiEngine

public MidiEngine getMidiEngine()

getNumberOfChannelLevelProviders

public int getNumberOfChannelLevelProviders()
Gets the number of channel level providers.

Returns:
the number of channel level providers

getPreferences

public AllPreferences getPreferences()
Gets all preferences.

Returns:
all preferences

getRunner

public Runner getRunner()

getServer

public WebServer getServer()

getShow

public Show getShow()
Gets the current show.

Returns:
Show the current show

go

public void go()

notifyListenersPostChange

public void notifyListenersPostChange()
Notifies listeners that the Show is has changed. The listeners should perform any initialization work for the new Show now.


notifyListenersPreChange

public void notifyListenersPreChange()
Notifies listeners that the Show is about to change. The listeners should perform any finialization work on the old show now.


record

public void record()

removeChannelLevelProvider

public void removeChannelLevelProvider(LevelProvider levelProvider)
Removes given channel level provider.

Parameters:
levelProvider - the channel level provider to be removed

removeShowContextListener

public void removeShowContextListener(ShowContextListener listener)
Removes a show context listener.

Parameters:
listener - the listener to be remove

setChangeTiming

public void setChangeTiming(Timing timing)
Set the timing parameters for changes in the Sheet user interface. Note that the variable itself is not changed, but rather the timing values within the timing object are overwritten.

Parameters:
timing - the new timing parameters

setDefaultTiming

public void setDefaultTiming(Timing timing)
Set the default timing parameters that will be used when creating new cues. Note that the variable itself is not changed, but rather the timing values within the timing object are overwritten.

Parameters:
timing - the new timing parameters

setShow

public void setShow(Show newShow)
Sets a new show.

Parameters:
newShow - the show to be set

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2