Class TspDemoViewInfo

java.lang.Object
edu.cnu.mdi.view.AbstractViewInfo
edu.cnu.mdi.sim.simanneal.tspdemo.TspDemoViewInfo

public class TspDemoViewInfo extends AbstractViewInfo
Describes the TspDemoView for the in-app help / info dialog.

Returned by TspDemoView.getViewInfo() and displayed when the user clicks the info button in the view's title bar.

  • Constructor Details

    • TspDemoViewInfo

      public TspDemoViewInfo()
  • Method Details

    • getTitle

      public String getTitle()
      Specified by:
      getTitle in class AbstractViewInfo
      Returns:
      "TSP Simulated Annealing Demo"
    • getPurpose

      public String getPurpose()
      Specified by:
      getPurpose in class AbstractViewInfo
      Returns:
      a short description of the demo's purpose
    • getUsageSteps

      public List<String> getUsageSteps()
      Usage steps (optional alternative to bullets). Each step should be plain text (not HTML). The framework will escape it.

      Step-by-step instructions for running and experimenting with the demo.

      Overrides:
      getUsageSteps in class AbstractViewInfo
      Returns:
      List of usage steps, or empty list if none.
    • getUsageBullets

      public List<String> getUsageBullets()
      Usage bullets (preferred). Each bullet should be plain text (not HTML). The framework will escape it.

      Additional notes about the demo's visual elements and algorithm.

      Overrides:
      getUsageBullets in class AbstractViewInfo
      Returns:
      List of usage bullets, or empty list if none.
    • getKeyboardShortcuts

      public Map<String,String> getKeyboardShortcuts()
      A map of Key Combo -> Action (e.g., "Ctrl+S" -> "Save"). Keys and actions are treated as plain text.

      Returns media-control keyboard shortcuts in display order.

      Overrides:
      getKeyboardShortcuts in class AbstractViewInfo
      Returns:
      Map of keyboard shortcuts, or empty map if none.
    • getTechnicalNotes

      public String getTechnicalNotes()

      Returns implementation notes for developers extending or studying the demo.

      Overrides:
      getTechnicalNotes in class AbstractViewInfo
      Returns:
      Technical notes. Plain text.
    • getAccentColorHex

      protected String getAccentColorHex()
      Accent color used for section headers. Keep simple; Swing HTML is limited.

      Uses a warm red accent to echo the tour color used on the canvas.

      Overrides:
      getAccentColorHex in class AbstractViewInfo
    • getFooter

      public String getFooter()
      Overrides:
      getFooter in class AbstractViewInfo
      Returns:
      "TSP Simulated Annealing Demo — MDI Framework"