| 
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
be.lassi.ui.patch
Class Patcher
java.lang.Objectbe.lassi.ui.patch.Patcher
- All Implemented Interfaces:
 - ShowContextListener
 
public class Patcher
- extends java.lang.Object
 - implements ShowContextListener
 - extends java.lang.Object
 
| Field Summary | |
|---|---|
static int | 
PRE_PATCH_START
 | 
| Constructor Summary | |
|---|---|
Patcher(ShowContext context,
        Patch patch)
Constructs a new instance.  | 
|
| Method Summary | |
|---|---|
 void | 
blackout()
Fades out all dimmers.  | 
 void | 
clearPatch()
Unpatches all dimmers (asynchronous: does not wait until done).  | 
 void | 
clearPatch(Listener listener)
Unpatches all dimmers (asynchronous: does not wait until done).  | 
 void | 
clearPatchAndWait()
Unpatches all dimmers, and waits until done.  | 
 void | 
copyChannelNamesToDimmers()
Copies the channel names to the dimmers that are patched to these channels.  | 
 void | 
copyDimmerNamesToChannels()
Copies the dimmer names to the channels that are patched to these dimmers.  | 
 void | 
defaultPatch()
Patches dimmers to channels 1-to-1 (asynchronous: does not wait until done).  | 
 void | 
defaultPatch(Listener listener)
Patches dimmers to channels 1-to-1 (asynchronous: does not wait until done).  | 
 void | 
defaultPatchAndWait()
Patches dimmers to channels 1-to-1, and waits until done.  | 
 void | 
initialize()
Initializes the patcher.  | 
 boolean | 
isUpdateLanbox()
Indicates whether any patch changes have to be communicated to the Lanbox immediately.  | 
 void | 
loadPatch()
Reads the patch from the lanbox (asynchronous: do not wait for result here).  | 
 void | 
loadPatch(Listener listener,
          boolean updateChannels)
Reads the patch from the lanbox (asynchronous: do not wait for result here).  | 
 void | 
loadPatchAndWait(boolean updateChannels)
Reads the patch from the lanbox, and waits for the response.  | 
 void | 
patch(int[] patchDetailIndexes,
      java.util.List<Channel> channels,
      Listener listener)
Patches a number of channels to dimmers.  | 
 void | 
patchAndWait(int[] patchDetailIndexes,
             java.util.List<Channel> channels)
Patches channels to dimmers.  | 
 void | 
postShowChange()
Performs the activities that have to be carried out on the new show after a show change.  | 
 void | 
preShowChange()
Performs the activities that have to be carried out on the old show before a show change.  | 
 void | 
savePatch()
Saves the show patch information to the lanbox.  | 
 void | 
savePatch(Listener listener)
Saves the show patch information to the lanbox.  | 
 void | 
savePatchAndWait()
Saves the show patch information to the lanbox.  | 
 void | 
setFadeTime(Time fadeTime)
Sets the fade time that is used for fading dimmers in and out.  | 
 void | 
setLayerNumber(int newLayerNumber)
Sets the Lanbox layer that is used for fading dimmers in and out.  | 
 void | 
setOn(int row,
      boolean on)
Switches dimmer at given index on or off.  | 
 void | 
setUpdateLanbox(boolean updateLanbox)
Sets the 'updatelanbox' indicator.  | 
 void | 
unpatch(int[] patchDetailIndexes,
        Listener listener)
Unpatches the dimmers at given indexes.  | 
 void | 
unpatchAndWait(int[] patchDetailIndexes)
Unpatches the dimmers at given indexes.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
PRE_PATCH_START
public static final int PRE_PATCH_START
- See Also:
 - Constant Field Values
 
| Constructor Detail | 
|---|
Patcher
public Patcher(ShowContext context, Patch patch)
- Constructs a new instance.
- Parameters:
 context- the show contextpatch- the patch information
 
| Method Detail | 
|---|
blackout
public void blackout()
- Fades out all dimmers.
 
clearPatch
public void clearPatch()
- Unpatches all dimmers (asynchronous: does not wait until done).
 
clearPatch
public void clearPatch(Listener listener)
- Unpatches all dimmers (asynchronous: does not wait until done).
- Parameters:
 listener- listener that gets notified when uppatch command completed, null if nobody needs to be notified
 
clearPatchAndWait
public void clearPatchAndWait()
- Unpatches all dimmers, and waits until done.
 
copyChannelNamesToDimmers
public void copyChannelNamesToDimmers()
- Copies the channel names to the dimmers that are patched to these channels.
 
copyDimmerNamesToChannels
public void copyDimmerNamesToChannels()
- Copies the dimmer names to the channels that are patched to these dimmers.
 
defaultPatch
public void defaultPatch()
- Patches dimmers to channels 1-to-1 (asynchronous: does not wait until done).
 
defaultPatch
public void defaultPatch(Listener listener)
- Patches dimmers to channels 1-to-1 (asynchronous: does not wait until done).
- Parameters:
 listener- listener that gets notified when uppatch command completed, null if nobody needs to be notified
 
defaultPatchAndWait
public void defaultPatchAndWait()
- Patches dimmers to channels 1-to-1, and waits until done.
 
initialize
public void initialize()
- Initializes the patcher.
 
isUpdateLanbox
public boolean isUpdateLanbox()
- Indicates whether any patch changes have to be communicated to
 the Lanbox immediately.
- Returns:
 - true true if the Lanbox kept needs to be updated immediately
 
 
loadPatch
public void loadPatch()
- Reads the patch from the lanbox (asynchronous: do not wait for result here).
 
loadPatch
public void loadPatch(Listener listener, boolean updateChannels)
- Reads the patch from the lanbox (asynchronous: do not wait for result here).
- Parameters:
 listener- the listener to be notified when the patch is loadedupdateChannels- true if the dimmer channels have to be updated
 
loadPatchAndWait
public void loadPatchAndWait(boolean updateChannels)
- Reads the patch from the lanbox, and waits for the response.
- Parameters:
 updateChannels- true if the dimmer channels have to be updated
 
patch
public void patch(int[] patchDetailIndexes,
                  java.util.List<Channel> channels,
                  Listener listener)
- Patches a number of channels to dimmers.
- Parameters:
 patchDetailIndexes- the dimmers to patchchannels- the channels to patchlistener- the listener to be notified when the patch is done, null if nobody needs to be notified
 
patchAndWait
public void patchAndWait(int[] patchDetailIndexes,
                         java.util.List<Channel> channels)
- Patches channels to dimmers.
- Parameters:
 patchDetailIndexes- the indexes of the dimmers to patch tochannels- the channels to be patched
 
postShowChange
public void postShowChange()
- Performs the activities that have to be carried out on
 the new show after a show change.
- Specified by:
 postShowChangein interfaceShowContextListener
 
preShowChange
public void preShowChange()
- Performs the activities that have to be carried out on the 
 old show before a show change.
- Specified by:
 preShowChangein interfaceShowContextListener
 
savePatch
public void savePatch()
- Saves the show patch information to the lanbox.
 
savePatch
public void savePatch(Listener listener)
- Saves the show patch information to the lanbox.
- Parameters:
 listener- the listener that needs to be notified when the save is complete
 
savePatchAndWait
public void savePatchAndWait()
- Saves the show patch information to the lanbox.
 
setFadeTime
public void setFadeTime(Time fadeTime)
- Sets the fade time that is used for fading dimmers in and out.
- Parameters:
 fadeTime- the fade time to be set
 
setLayerNumber
public void setLayerNumber(int newLayerNumber)
- Sets the Lanbox layer that is used for fading dimmers in and out.
- Parameters:
 newLayerNumber- the new layer number
 
setOn
public void setOn(int row,
                  boolean on)
- Switches dimmer at given index on or off.
- Parameters:
 row- index of dimmer to be switched on or offon- true if on
 
setUpdateLanbox
public void setUpdateLanbox(boolean updateLanbox)
- Sets the 'updatelanbox' indicator.
- Parameters:
 updateLanbox- true if the Lanbox kept needs to be updated immediately
 
unpatch
public void unpatch(int[] patchDetailIndexes,
                    Listener listener)
- Unpatches the dimmers at given indexes.
- Parameters:
 patchDetailIndexes- the indexes of the dimmers to be unpatchedlistener- the listener to be notified when the unpatch is complete
 
unpatchAndWait
public void unpatchAndWait(int[] patchDetailIndexes)
- Unpatches the dimmers at given indexes.
- Parameters:
 patchDetailIndexes- the indexes of the dimmers to be unpatched
 
  | 
Lighting Assistant 1.2 | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
be.lassi.ui.patch.Patcher