forked from nus-cs2103-AY1920S1/addressbook-level3
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
631 additions
and
117 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//@@author LeonardTay748 | ||
@startuml | ||
start | ||
:User executes help command; | ||
:Gets image of command summary; | ||
:Displays image ; | ||
|
||
stop | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
//@@author LeonardTay748 | ||
@startuml | ||
!include style.puml | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":HelpCommand" as HelpCommand LOGIC_COLOR | ||
participant ":logic" as Logic LOGIC_COLOR | ||
end box | ||
|
||
box UI UI_COLOR_T1 | ||
participant ":MainWindow" as MainWindow UI_COLOR | ||
participant ":HelpWindow" as HelpWindow UI_COLOR | ||
end box | ||
|
||
box JavaFx EXTERNAL_LIBRARY_COLOR_T1 | ||
participant ":Image" as Image EXTERNAL_LIBRARY_COLOR | ||
participant ":ImageView" as ImageView EXTERNAL_LIBRARY_COLOR | ||
participant ":Stage" as Stage EXTERNAL_LIBRARY_COLOR | ||
end box | ||
|
||
[-> LogicManager : parseCommand(stats) | ||
activate LogicManager | ||
|
||
LogicManager -> HelpCommand : execute(model) | ||
activate HelpCommand | ||
LogicManager <-- HelpCommand : CommandResult | ||
deactivate HelpCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
|
||
[-> MainWindow : executeCommand(stats) | ||
activate MainWindow | ||
|
||
|
||
MainWindow -> MainWindow : handleHelp() | ||
activate MainWindow | ||
|
||
MainWindow -> HelpWindow : isShowing() | ||
activate HelpWindow | ||
MainWindow <-- HelpWindow : result | ||
deactivate HelpWindow | ||
|
||
alt result = false | ||
|
||
MainWindow -> HelpWindow : show() | ||
ref over HelpWindow, Stage : show help | ||
MainWindow <-- HelpWindow : | ||
MainWindow <-- MainWindow : | ||
|
||
deactivate MainWindow | ||
[<-- MainWindow : | ||
deactivate MainWindow | ||
|
||
end | ||
|
||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
//@@author LeonardTay748 | ||
@startuml | ||
!include style.puml | ||
|
||
box UI UI_COLOR_T1 | ||
participant ":HelpWindow" as HelpWindow UI_COLOR | ||
end box | ||
|
||
box JavaFx EXTERNAL_LIBRARY_COLOR_T1 | ||
participant ":Image" as Image EXTERNAL_LIBRARY_COLOR | ||
participant ":ImageView" as ImageView EXTERNAL_LIBRARY_COLOR | ||
participant ":Stage" as Stage EXTERNAL_LIBRARY_COLOR | ||
end box | ||
|
||
group sd show help | ||
-> HelpWindow : show() | ||
|
||
HelpWindow -> Image : Image() | ||
activate Image | ||
HelpWindow <-- Image : image | ||
deactivate Image | ||
|
||
HelpWindow -> ImageView : setImage(image) | ||
activate ImageView | ||
HelpWindow <-- ImageView : | ||
deactivate ImageView | ||
|
||
HelpWindow -> Stage : getRoot() | ||
activate Stage | ||
HelpWindow <-- Stage : root | ||
deactivate Stage | ||
|
||
HelpWindow -> Stage : show() | ||
activate Stage | ||
HelpWindow <-- Stage : | ||
deactivate Stage | ||
|
||
<-- HelpWindow : | ||
deactivate HelpWindow | ||
|
||
end | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.