Packages & Organization
Packages help organize classes into logical groups, making large diagrams more manageable and reflecting the structure of your codebase.
Basic Packages
Define packages using the package keyword followed by the package name. Classes inside curly braces belong to that package.
Package Stereotypes
Add stereotypes to packages to indicate their purpose or layer in your architecture.
Nested Packages
Create nested packages to represent hierarchical package structures.
Relationships Between Packages
Show relationships between packages to illustrate dependencies and architecture.
Package Colors
Apply colors to packages for visual distinction and better organization.
Namespace
Use namespaces to organize classes without creating visual package boxes. Classes are prefixed with their namespace.
Organizing Large Diagrams
When working with large systems, use packages to group related classes and improve diagram readability.