|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
be.lassi.ui.patch
Class PatchPresentationModel
java.lang.Object be.lassi.ui.patch.PatchPresentationModel
public class PatchPresentationModel
- extends java.lang.Object
Presentation model for user interface that allows the user to assign channels to dimmers.
Constructor Summary | |
---|---|
PatchPresentationModel(ShowContext context,
java.awt.Component parent)
Constructs a new instance. |
Method Summary | |
---|---|
void |
actionStageFollowSelection()
|
void |
actionUpateImmediately()
|
void |
blackout()
Fades out any dimmers that are currently faded in. |
boolean |
canPatch()
Indicates whether a patch operation will do something; a patch operation will only do something if both dimmers and channels have been selected. |
boolean |
canUnpatch()
Indicates whether an unpatch operation will do something; an unpatch will only do something if at least one of the currently selected dimmers is patched. |
void |
clearPatch()
Unpatches all dimmers. |
void |
copyChannelNamesToDimmers()
Copies the channel names to the names of the dimmers that the channels are patched to. |
void |
copyDimmerNamesToChannels()
Copies the dimmer names to the names of the channels that are patched to the dimmers. |
void |
copyPatchDetailsToClipboard()
Copies the patch details to the clipboard. |
void |
defaultPatch()
Patches dimmers to channels 1-to-1. |
PatchActions |
getActions()
|
javax.swing.ListSelectionModel |
getChannelSelectionModel()
Gets the channel selection model. |
PatchChannelTableModel |
getChannelTableModel()
Gets the channel table model. |
javax.swing.ListSelectionModel |
getDetailSelectionModel()
Gets the patch detail selection model. |
PatchDetailTableModel |
getDetailTableModel()
Gets the patch detail table model. |
Patcher |
getPatcher()
Gets the patcher. |
java.util.List<Channel> |
getSelectedChannels()
Gets the channels that are currently selected. |
java.util.List<PatchDetail> |
getSelectedPatchDetails()
Gets the patch details that are currently selected. |
Holder<java.lang.Boolean> |
getStageFollowsSelection()
|
Holder<java.lang.Boolean> |
getUpdateImmediately()
|
void |
initialize()
Initializes the patcher. |
boolean |
isBlackout(boolean on)
Indicates whether a change in stageFollowsSelection state
would result in a blackout of all lights on stage. |
boolean |
isUpdateLanbox()
Indicates whether the Lanbox patch is updated immediately. |
void |
loadPatch()
Loads the patch information from the lanbox. |
void |
patch()
Patches the selected channels to the selected dimmers. |
void |
patchDetailSelectionChanged()
Updates the stage according to the patch detail selection changes that have been made. |
void |
savePatch()
Save the show patch information to the lanbox. |
void |
setStageFollowSelection(boolean on,
boolean blackout)
Sets the 'stageFollowsSelection' indicator. |
void |
setUpdateLanbox(boolean updateLanbox)
Sets the 'upateLanbox' indicator. |
void |
tableChanged(javax.swing.event.TableModelEvent e)
|
void |
unpatch()
Unpatches the dimmers that are currently selected. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
PatchPresentationModel
public PatchPresentationModel(ShowContext context, java.awt.Component parent)
- Constructs a new instance.
- Parameters:
context
- the show context
Method Detail |
---|
actionStageFollowSelection
public void actionStageFollowSelection()
actionUpateImmediately
public void actionUpateImmediately()
blackout
public void blackout()
- Fades out any dimmers that are currently faded in.
canPatch
public boolean canPatch()
- Indicates whether a patch operation will do something; a patch
operation will only do something if both dimmers and channels
have been selected.
- Returns:
- true if patch operation is meaningful
canUnpatch
public boolean canUnpatch()
- Indicates whether an unpatch operation will do something; an unpatch
will only do something if at least one of the currently selected
dimmers is patched.
- Returns:
- true if unpatch is meaningful
clearPatch
public void clearPatch()
- Unpatches all dimmers.
copyChannelNamesToDimmers
public void copyChannelNamesToDimmers()
- Copies the channel names to the names of the dimmers that the
channels are patched to.
copyDimmerNamesToChannels
public void copyDimmerNamesToChannels()
- Copies the dimmer names to the names of the channels that are patched
to the dimmers.
copyPatchDetailsToClipboard
public void copyPatchDetailsToClipboard()
- Copies the patch details to the clipboard.
defaultPatch
public void defaultPatch()
- Patches dimmers to channels 1-to-1.
getActions
public PatchActions getActions()
getChannelSelectionModel
public javax.swing.ListSelectionModel getChannelSelectionModel()
- Gets the channel selection model.
- Returns:
- the channel selection model
getChannelTableModel
public PatchChannelTableModel getChannelTableModel()
- Gets the channel table model.
- Returns:
- the channel table model
getDetailSelectionModel
public javax.swing.ListSelectionModel getDetailSelectionModel()
- Gets the patch detail selection model.
- Returns:
- the patch detail selection model
getDetailTableModel
public PatchDetailTableModel getDetailTableModel()
- Gets the patch detail table model.
- Returns:
- the patch detail table model
getPatcher
public Patcher getPatcher()
- Gets the patcher.
- Returns:
- the patcher
getSelectedChannels
public java.util.List<Channel> getSelectedChannels()
- Gets the channels that are currently selected.
- Returns:
- the selected channels
getSelectedPatchDetails
public java.util.List<PatchDetail> getSelectedPatchDetails()
- Gets the patch details that are currently selected.
- Returns:
- the selected patch details
getStageFollowsSelection
public Holder<java.lang.Boolean> getStageFollowsSelection()
getUpdateImmediately
public Holder<java.lang.Boolean> getUpdateImmediately()
initialize
public void initialize()
- Initializes the patcher.
isBlackout
public boolean isBlackout(boolean on)
- Indicates whether a change in
stageFollowsSelection
state would result in a blackout of all lights on stage. A blackout would be possible if the current state of stageFollowsSelection is going from true to false, and there are lights on on stage.- Parameters:
on
- new state of stageFollowsSelection- Returns:
- true if blackout possible
isUpdateLanbox
public boolean isUpdateLanbox()
- Indicates whether the Lanbox patch is updated immediately.
- Returns:
- true if the Lanbox patch is updated immediately
loadPatch
public void loadPatch()
- Loads the patch information from the lanbox.
patch
public void patch()
- Patches the selected channels to the selected dimmers.
patchDetailSelectionChanged
public void patchDetailSelectionChanged()
- Updates the stage according to the patch detail selection changes
that have been made.
savePatch
public void savePatch()
- Save the show patch information to the lanbox.
setStageFollowSelection
public void setStageFollowSelection(boolean on, boolean blackout)
- Sets the 'stageFollowsSelection' indicator.
- Parameters:
on
- the new valueblackout
- true if blackout allowed
setUpdateLanbox
public void setUpdateLanbox(boolean updateLanbox)
- Sets the 'upateLanbox' indicator.
- Parameters:
updateLanbox
- true if the Lanbox patch is updated immediately
tableChanged
public void tableChanged(javax.swing.event.TableModelEvent e)
unpatch
public void unpatch()
- Unpatches the dimmers that are currently selected.
|
Lighting Assistant 1.2 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |