-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sw_concepts: replace command example
- Loading branch information
Showing
5 changed files
with
80 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@startuml | ||
|
||
skinparam defaultFontSize 25 | ||
|
||
together { | ||
abstract class DarkThemeButton | ||
|
||
class DarkDarkThemeButton | ||
|
||
class LightDarkThemeButton | ||
|
||
abstract class LightThemeButton | ||
|
||
class DarkLightThemeButton | ||
|
||
class LightLightThemeButton | ||
|
||
DarkThemeButton <|.. DarkDarkThemeButton | ||
DarkThemeButton <|.. LightDarkThemeButton | ||
|
||
LightThemeButton <|.. DarkLightThemeButton | ||
LightThemeButton <|.. LightLightThemeButton | ||
} | ||
|
||
class ThemeObservable { | ||
} | ||
|
||
DarkDarkThemeButton ---> ThemeObservable | ||
LightDarkThemeButton ---> ThemeObservable | ||
DarkLightThemeButton ---> ThemeObservable | ||
LightLightThemeButton ---> ThemeObservable | ||
|
||
@enduml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@startuml | ||
|
||
skinparam defaultFontSize 25 | ||
|
||
together { | ||
class DarkButton { | ||
void setCommand(Command command) | ||
} | ||
|
||
class LightButton { | ||
void setCommand(Command command) | ||
} | ||
} | ||
|
||
together { | ||
interface Command | ||
|
||
class SetDarkThemeCommand | ||
|
||
class SetLightThemeCommand | ||
|
||
Command <|.. SetDarkThemeCommand | ||
Command <|.. SetLightThemeCommand | ||
} | ||
|
||
class ThemeObservable | ||
|
||
DarkButton --> Command | ||
LightButton --> Command | ||
|
||
SetDarkThemeCommand ---> ThemeObservable | ||
SetLightThemeCommand ---> ThemeObservable | ||
|
||
@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