Skip to content

Instantly share code, notes, and snippets.

@yassu
Last active April 4, 2017 12:02
Show Gist options
  • Save yassu/2d305d224dc0ef5e7435 to your computer and use it in GitHub Desktop.
Save yassu/2d305d224dc0ef5e7435 to your computer and use it in GitHub Desktop.
Plantuml for class diagram in [Quick reference Card](http://www.digilife.be/quickreferences/qrc/uml%20quick%20reference%20card.pdf)
@startuml
skinparam classAttributeIconSize 0
class EventQMgr{
+post(e:Event)
+suspend()
-flush()
}
note right: Active Class
class Event {
}
note right: Class
EventQMgr *--> Event: Composition
abstract Window{
+postEvent(Event)
#<i>processEvent(Event)</i>
}
Event <-[dotted]- Window: Dependency
class Frame{
+menuBar:MenuBar
+setTitle(String)
+remove(Menu)
#paramString():String
--
Responsabilities:
- Manage a MenuBar
- Process events
}
note left: Class
Window <|-- Frame: Specialization
class MenuBar
MenuBar <-- Frame: Association
class MenuItem
MenuBar <|--> MenuItem: Aggregation
interface MenuContainer
MenuContainer <|-- Frame: Interface realization
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment