Package heronarts.lx.midi.surface
Class FocusedDevice
java.lang.Object
heronarts.lx.midi.surface.FocusedDevice
Utility class for a control surface to subscribe to notifications about which
 device is focused in the UI. This needs to be registered and unregistered as
 appropriate to enable/disable notifications. And the listener interface is invoked
 whenever there is a device focus change.
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructorsConstructorDescriptionFocusedDevice(LX lx, FocusedDevice.Listener listener) FocusedDevice(LX lx, LXMidiSurface surface, FocusedDevice.Listener listener) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddispose()Returns the device presently focused, if anyReturns the currently focused busbooleanisAux()booleanvoidvoidShift focus to the next device on the channel, if there is onevoidvoidShift focus to the previous device on the channel, if there is onevoidregister()Register the focused device listener, which will result in a listener callback to the presently focused device.setAux(boolean isAux) setAuxSticky(boolean isAuxSticky) voidUnregister the focus listener.void
- 
Constructor Details- 
FocusedDevice
- 
FocusedDevice
 
- 
- 
Method Details- 
isAuxpublic boolean isAux()
- 
toggleAux
- 
setAux
- 
setAuxSticky
- 
registerpublic void register()Register the focused device listener, which will result in a listener callback to the presently focused device.
- 
unregisterpublic void unregister()Unregister the focus listener. Will clear the focused device and alert the listener to null focus before clearing all internal listeners.
- 
getFocusedChannelReturns the currently focused bus- Returns:
- Current bus focus
 
- 
isAuxActivepublic boolean isAuxActive()
- 
getFocusedChannelTarget
- 
previousChannelpublic void previousChannel()
- 
nextChannelpublic void nextChannel()
- 
previousDevicepublic void previousDevice()Shift focus to the previous device on the channel, if there is one
- 
nextDevicepublic void nextDevice()Shift focus to the next device on the channel, if there is one
- 
getDeviceReturns the device presently focused, if any- Returns:
- Focused device, or null
 
- 
updateRemoteControlFocuspublic void updateRemoteControlFocus()
- 
disposepublic void dispose()
 
-