Overview  Package   Class  Tree  Index 

be.lassi.ui.patch
Class Patch

java.lang.Object
  extended by be.lassi.ui.patch.Patch
All Implemented Interfaces:
ShowContextListener

public class Patch
extends java.lang.Object
implements ShowContextListener


Constructor Summary
Patch(ShowContext context)
          Constructs a new instance.
 
Method Summary
 void clearPatch()
          Removes the patch information from all dimmers: sets all dimmers to "not patched".
 void copyChannelNamesToDimmers()
          Sets the dimmer names to the names of the channels that are patched to the dimmers, the names of the "not patched" dimmers are not touched.
 void copyDimmerNamesToChannels()
          Sets the names of the channels to the names of names of the the dimmers that they are patched to.
 void defaultPatch()
          Sets the default patch (channels are patched to dimmers with same number).
 PatchDetail getDetail(int index)
          Gets the patch detail at given index.
 java.util.List<PatchDetail> getDetails()
          Gets the patch details.
 int getDimmerCount()
          
 int getSortColumn()
          Gets the index of the column on which the patch details are sorted.
 boolean isDimmerOn()
          Indicates wheter one of the dimmers is currently on.
 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 setSortColumn(int sortColumn)
          Sets the column on which the sort the patch details.
 void sort()
          Sorts the patch details.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Patch

public Patch(ShowContext context)
Constructs a new instance.

Parameters:
context - the show context
Method Detail

clearPatch

public void clearPatch()
Removes the patch information from all dimmers: sets all dimmers to "not patched".


copyChannelNamesToDimmers

public void copyChannelNamesToDimmers()
Sets the dimmer names to the names of the channels that are patched to the dimmers, the names of the "not patched" dimmers are not touched.


copyDimmerNamesToChannels

public void copyDimmerNamesToChannels()
Sets the names of the channels to the names of names of the the dimmers that they are patched to. If the channel is patched to multiple dimmers, the channel gets the name of the dimmer with the highest id.


defaultPatch

public void defaultPatch()
Sets the default patch (channels are patched to dimmers with same number).


getDetail

public PatchDetail getDetail(int index)
Gets the patch detail at given index.

Parameters:
index - the patch detail index
Returns:
the patch detail at given index

getDetails

public java.util.List<PatchDetail> getDetails()
Gets the patch details.

Returns:
the patch details

getDimmerCount

public int getDimmerCount()


getSortColumn

public int getSortColumn()
Gets the index of the column on which the patch details are sorted.

Returns:
the sort column index

isDimmerOn

public boolean isDimmerOn()
Indicates wheter one of the dimmers is currently on.

Returns:
true if one of the dimmers is currently on

postShowChange

public void postShowChange()
Performs the activities that have to be carried out on the new show after a show change.

Specified by:
postShowChange in interface ShowContextListener

preShowChange

public void preShowChange()
Performs the activities that have to be carried out on the old show before a show change.

Specified by:
preShowChange in interface ShowContextListener

setSortColumn

public void setSortColumn(int sortColumn)
Sets the column on which the sort the patch details.

Parameters:
sortColumn - the column to set

sort

public void sort()
Sorts the patch details.


Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2