diff --git a/doc/diagramOffGui.md b/doc/diagramOffGui.md index 86e5b9d..c969b06 100644 --- a/doc/diagramOffGui.md +++ b/doc/diagramOffGui.md @@ -100,4 +100,93 @@ classDiagram JFrame <|-- XL Observable <|-- XLList Iterable <-- XLList -``` \ No newline at end of file +``` + +```mermaid +--- +title: gui.menu +--- +classDiagram + class ClearAllMenuItem { + +ClearAllMenuItem() + +actionPerformed(ActionEvent e) + } + class ClearMenuItem { + +ClearMenuItem() + +actionPerformed(ActionEvent e) + } + class CloseMenuItem { + -XL xl + -XLList xlList + +CloseMenuItem(XL xl, XLList, xlList) + +actionPerformed(ActionEvent event) + } + class LoadMenuItem { + +LoadMenuItem(XL xl, StatusLabel statusLabel) + #action(String path) + #openDialog(JFileChooser fileChooser) int + } + class NewMenuItem { + -XL xl + +NewMenuItem(XL xl) + +actionPerformed(ActionEvent event) + } + class OpenMenuItem { + #StatusLabel statusLabel + #XL xl + #OpenMenuItem(XL xl, StatusLabel statusLabel, String title) + #action(String path) + +actionPerformed(ActionEvent event) + #openDialog(JFileChooser fileChooser) + } + class SaveMenuItem { + +SaveMenuItem(XL xl, StatusLabel statusLabel) + #action(String path) + #openDialog(JFileChooser fileChooser) + } + class WindowMenuItem { + -XL xl + +WindowMenuItem(XL xl) + +actionPerformed(ActionEvent event) + } + class JMenuItem + class ActionListener + <> ActionListener + + + JMenuItem <|-- ClearAllMenuItem + ActionListener <-- ClearAllMenuItem + JMenuItem <|-- ClearMenuItem + ActionListener <-- ClearMenuItem + JMenuItem <|-- CloseMenuItem + ActionListener <-- CloseMenuItem + OpenMenuItem <|-- LoadMenuItem + JMenuItem <|-- NewMenuItem + ActionListener <-- NewMenuItem + JMenuItem <|-- OpenMenuItem + ActionListener <-- OpenMenuItem + OpenMenuItem <|-- SaveMenuItem + JMenuItem <|-- WindowMenuItem + ActionListener <-- WindowMenuItem + +``` + +```mermaid +classDiagram + class JMenu + class Observer + class WindowMenu { + -XLList xlList + +WindowMenu(XLList xlList) + +update(Observable observable, Object object) + } + class JMenuBar + class XLMenuBar { + +XLMenuBar(XL xl, XLList xlList, StatusLabel statusLabel) + } + <> Observer + + JMenuBar <|-- XLMenuBar + JMenu <|-- WindowMenu + Observer <-- WindowMenu +```