Package edu.cnu.mdi.view
Class DrawingViewInfo
java.lang.Object
edu.cnu.mdi.view.AbstractViewInfo
edu.cnu.mdi.view.DrawingViewInfo
Describes the
DrawingView for the in-app help / info dialog.
Returned by DrawingView.getViewInfo() and displayed when the
user clicks the info button in the toolbar.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class edu.cnu.mdi.view.AbstractViewInfo
getAsHTML, getTextColorHex, getTitleColorHex, getUsageHtml, isPurposeHtml
-
Constructor Details
-
DrawingViewInfo
public DrawingViewInfo()
-
-
Method Details
-
getTitle
- Specified by:
getTitlein classAbstractViewInfo- Returns:
"Drawing View"
-
getPurpose
- Specified by:
getPurposein classAbstractViewInfo- Returns:
- a short description of the view's purpose
-
getUsageSteps
Usage steps (optional alternative to bullets). Each step should be plain text (not HTML). The framework will escape it.Step-by-step instructions covering the main interaction modes.
- Overrides:
getUsageStepsin classAbstractViewInfo- Returns:
- List of usage steps, or empty list if none.
-
getUsageBullets
Usage bullets (preferred). Each bullet should be plain text (not HTML). The framework will escape it.Supplementary notes about drawing and navigation behaviour.
- Overrides:
getUsageBulletsin classAbstractViewInfo- Returns:
- List of usage bullets, or empty list if none.
-
getKeyboardShortcuts
A map of Key Combo -> Action (e.g., "Ctrl+S" -> "Save"). Keys and actions are treated as plain text.Returns keyboard shortcuts in display order.
- Overrides:
getKeyboardShortcutsin classAbstractViewInfo- Returns:
- Map of keyboard shortcuts, or empty map if none.
-
getTechnicalNotes
Returns implementation notes for developers extending the view.
- Overrides:
getTechnicalNotesin classAbstractViewInfo- Returns:
- Technical notes. Plain text.
-
getAccentColorHex
Accent color used for section headers. Keep simple; Swing HTML is limited.Uses a neutral dark gray accent — appropriate for a general-purpose drawing tool with no domain-specific color associations.
- Overrides:
getAccentColorHexin classAbstractViewInfo
-