// ModelEditor - definitions of custom shapes // // Language syntax and commands: // // Icon // Title: // Elements: // Stereotype: // Display: // Width: // Height: // MinWidth: // MinHeight: // LockSize: // TextAlignment: // BaseColor: // Begin // Line , , , // Rect , , , // RoundedRect , , , , // Circle , , // Ellipse , , , // Arc , , , , , // MoveTo , // LineTo , // ArcMoveTo , , , , // ArcTo , , , , , // Close // End // // Toolbar // Priority: // Begin // Tool , <element type>[, <stereotype>] // Separator // End // // ************* // ** Classes ** // ************* Icon Interface Elements: class Stereotype: 'interface' Display: icon Width: 20.0 Height: 20.0 LockSize: ratio Begin Circle 10.0, 10.0, 10.0 End Icon Boundary Stereotype: 'boundary' Width: 24.0 Height: 20.0 LockSize: ratio Begin Circle 14.0, 10.0, 10.0 Line 0.0, 0.0, 0.0, 20.0 Line 0.0, 10.0, 4.0, 10.0 End Icon Control Stereotype: 'control' Width: 20.0 Height: 20.0 LockSize: ratio Begin Circle 10.0, 10.0, 10.0 Line 10.0, 0.0, 14.0, -2.0 Line 10.0, 0.0, 14.0, 4.0 End Icon Entity Stereotype: 'entity' Width: 20.0 Height: 20.0 LockSize: ratio Begin Circle 10.0, 10.0, 10.0 Line 0.0, 20.0, 20.0, 20.0 End // **************** // ** Components ** // **************** Icon Database Stereotype: 'database' Display: icon Width: 20.0 Height: 20.0 Begin MoveTo 0.0, 3.0 LineTo 0.0, 17.0 ArcTo 10.0, 17.0, 10.0, 3.0, 180.0, 180.0 LineTo 20.0, 3.0 ArcTo 10.0, 3.0, 10.0, 3.0, 0.0, -180.0 Close Arc 10.0, 3.0, 10.0, 3.0, 0.0, 180.0 End // experimental replacement of default shape with custom shape Icon Component Elements: component, package, diagram Stereotype: 'component' Display: decoration Width: 20.0 Height: 16.0 TextAlignment: center Begin Rect 0, 0, 20.0, 16.0 Rect -4.0, 2.5, 8, 4 Rect -4.0, 9.5, 8, 4 End // *************** // ** Use Cases ** // *************** Icon UseCase Title: "Use-Case" Elements: item Stereotype: 'usecase' Display: icon Width: 40 Height: 20 BaseColor: #5fb4f0 Begin Ellipse 20, 10, 20, 10 End Icon Actor Elements: item Stereotype: 'actor' Display: icon Width: 20 Height: 40 LockSize: ratio BaseColor: #5fb4f0 Begin Circle 10, 5, 5 Line 0, 15, 20, 15 Line 10, 10, 10, 25 Line 10, 25, 3, 40 Line 10, 25, 17, 40 End // **************** // ** Activities ** // **************** Icon Start Elements: item Stereotype: 'start' Display: icon Width: 20 Height: 20 LockSize: ratio BaseColor: #81d657 Begin Circle 10, 10, 7 End Icon Activity Elements: item Stereotype: 'activity' Display: icon Width: 40 Height: 20 BaseColor: #81d657 Begin RoundedRect 0, 0, 40, 20, 10 End Icon Condition Elements: item Stereotype: 'condition' Display: icon Width: 20 Height: 20 LockSize: ratio BaseColor: #81d657 Begin MoveTo 10, 0 LineTo 20, 10 LineTo 10, 20 LineTo 0, 10 Close End Icon HorizontalBar Title: "Horizontal Bar" Elements: item Stereotype: 'horizontalbar' Display: icon Width: 20 Height: 5 MinWidth: 20 MinHeight: 5 LockSize: height BaseColor: #000000 Begin RoundedRect 0, 0, 20, 5, 1 End Icon VerticalBar Title: "Vertical Bar" Elements: item Stereotype: 'verticalbar' Display: icon Width: 5 Height: 20 MinWidth: 5 MinHeight: 20 LockSize: width BaseColor: #000000 Begin RoundedRect 0, 0, 5, 20, 1 End Icon Termination Elements: item Stereotype: 'termination' Display: icon Width: 20 Height: 20 LockSize: ratio BaseColor: #81d657 Begin Circle 10, 10, 10 Circle 10, 10, 7 End // ************** // ** Toolbars ** // ************** Toolbar Classes Begin Tool "Package", package Tool "Class", class Tool "Interface", class, "interface" Tool "Control", class, "control" Tool "Entity", class, "entity" Tool "Boundary", class, "boundary" Separator Tool "Annotation", annotation Tool "Boundary", boundary End Toolbar Components Begin Tool "Package", package Tool "Component", component Tool "Database", component, "database" Separator Tool "Annotation", annotation Tool "Boundary", boundary End Toolbar UseCases Begin Tool "Package", package Tool "UseCase", item, "usecase" Tool "Actor", item, "actor" Separator Tool "Annotation", annotation Tool "Boundary", boundary End Toolbar Activities Begin Tool "Start", item, "start" Tool "Activity", item, "activity" Tool "Condition", item, "condition" Tool "Horiz. Bar", item, "horizontalbar" Tool "Vert. Bar", item, "verticalbar" Tool "Termination", item, "termination" Separator Tool "Annotation", annotation Tool "Boundary", boundary End