Overview  Package   Class  Tree  Index 

be.lassi.lanbox
Class Runner

java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by be.lassi.lanbox.Runner
All Implemented Interfaces:
com.jgoodies.binding.beans.Observable, java.io.Serializable

public class Runner
extends com.jgoodies.binding.beans.Model

Functions for controlling Lanbox cue lists (next cue, previous cue, pause, resume), and visualizing progress (current cue, fade and hold).

See Also:
Serialized Form

Field Summary
static java.lang.String ACTIVE
           
static java.lang.String CUE
           
static java.lang.String FADE_PROGRESS
           
static java.lang.String FADE_TIME
           
static java.lang.String FADE_TIME_REMAINING
           
static java.lang.String HOLD_PROGRESS
           
static java.lang.String HOLD_TIME
           
static java.lang.String HOLD_TIME_REMAINING
           
static java.lang.String PAUSING
           
 
Constructor Summary
Runner(ShowContext context)
          Constructs a new runner.
 
Method Summary
 java.lang.String getCue()
          Gets textual representation of the current cue; the text is a combination of the Lanbox current cue (cue list number and cue step number) and the Lassi current cue.
 float getFadeProgress()
          Gets the fade progress (0f = start of fade, 1f = fade completed).
 java.lang.String getFadeTime()
          Gets the fade time of the currently active fade (or the last fade).
 java.lang.String getFadeTimeRemaining()
          Gets the textual representation of the remaining fade time of the currently active fade.
 float getHoldProgress()
          Gets the hold progress (0f = start of hold, 1f = hold completed).
 java.lang.String getHoldTime()
          Gets the textual representation of the total time of the currently active hold (or --- if no hold currently in progress).
 java.lang.String getHoldTimeRemaining()
          Gets the textual representation of the remaining time or the currently active hold (or --- if no hold currently in progress).
 boolean isActive()
          Indicates whether the runner is active.
 boolean isPausing()
          Indicates whether the layer is in 'pausing' state.
 void next()
          Issues a Lanbox go command for the current cue, and makes the next cue "current".
 void next(int layerNumber)
           
 void pause()
          Issues a Lanbox "pause" command.
 void previous()
          Issues a Lanbox "previous cue" command, and makes the previous cue "current".
 void resume()
          Issues a Lanbox "resume" command.
 void setActive(boolean active)
          Sets the active state.
 
Methods inherited from class com.jgoodies.binding.beans.Model
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTIVE

public static final java.lang.String ACTIVE
See Also:
Constant Field Values

CUE

public static final java.lang.String CUE
See Also:
Constant Field Values

FADE_PROGRESS

public static final java.lang.String FADE_PROGRESS
See Also:
Constant Field Values

FADE_TIME

public static final java.lang.String FADE_TIME
See Also:
Constant Field Values

FADE_TIME_REMAINING

public static final java.lang.String FADE_TIME_REMAINING
See Also:
Constant Field Values

HOLD_PROGRESS

public static final java.lang.String HOLD_PROGRESS
See Also:
Constant Field Values

HOLD_TIME

public static final java.lang.String HOLD_TIME
See Also:
Constant Field Values

HOLD_TIME_REMAINING

public static final java.lang.String HOLD_TIME_REMAINING
See Also:
Constant Field Values

PAUSING

public static final java.lang.String PAUSING
See Also:
Constant Field Values
Constructor Detail

Runner

public Runner(ShowContext context)
Constructs a new runner.

Parameters:
context - the show context
Method Detail

getCue

public java.lang.String getCue()
Gets textual representation of the current cue; the text is a combination of the Lanbox current cue (cue list number and cue step number) and the Lassi current cue.

Returns:
the current cue

getFadeProgress

public float getFadeProgress()
Gets the fade progress (0f = start of fade, 1f = fade completed).

Returns:
the fade progress

getFadeTime

public java.lang.String getFadeTime()
Gets the fade time of the currently active fade (or the last fade).

Returns:
the fade time

getFadeTimeRemaining

public java.lang.String getFadeTimeRemaining()
Gets the textual representation of the remaining fade time of the currently active fade.

Returns:
the remaining fade time

getHoldProgress

public float getHoldProgress()
Gets the hold progress (0f = start of hold, 1f = hold completed).

Returns:
the hold progress

getHoldTime

public java.lang.String getHoldTime()
Gets the textual representation of the total time of the currently active hold (or --- if no hold currently in progress).

Returns:
the hold time

getHoldTimeRemaining

public java.lang.String getHoldTimeRemaining()
Gets the textual representation of the remaining time or the currently active hold (or --- if no hold currently in progress).

Returns:
the remaining hold time

isActive

public boolean isActive()
Indicates whether the runner is active.

Returns:
true if active

isPausing

public boolean isPausing()
Indicates whether the layer is in 'pausing' state.

Returns:
true if layer is pausing

next

public void next()
Issues a Lanbox go command for the current cue, and makes the next cue "current".


next

public void next(int layerNumber)

pause

public void pause()
Issues a Lanbox "pause" command.


previous

public void previous()
Issues a Lanbox "previous cue" command, and makes the previous cue "current".


resume

public void resume()
Issues a Lanbox "resume" command.


setActive

public void setActive(boolean active)
Sets the active state.

Parameters:
active - true if runner should be active

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2