MAIDR Documentation - v3.65.0
    Preparing search index...

    Class MoveToTraceContextCommand

    Command to move into the trace context from the current subplot.

    Architectural note: this command holds references to BrailleService and DisplayService (not just Context) as a deliberate exception to the usual pattern where commands only interact with the model layer. This is needed because the model's notifyStateUpdate() cannot be used here without triggering unwanted side effects (e.g. audio on entry). Do not copy this pattern without similar justification.

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Executes the move operation to enter the subplot trace context. If braille was previously enabled, directly updates the braille service with the new trace's data, then restores braille display focus.

      Note: we update the braille service directly rather than calling notifyStateUpdate() on the trace, because notifying all observers would also trigger AudioService (playing a tone on entry) and other services. Only the braille display needs to be refreshed here.

      Returns void