Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.71 KB

views.md

File metadata and controls

24 lines (16 loc) · 1.71 KB

Views

Once you've added elements to a model, you can create one or more views to visualise parts of the model, which can subsequently be rendered as diagrams by a number of different tools.

Structurizr for Java supports all of the view types described in the C4 model, and the Java classes implementing these views can be found in the com.structurizr.view package as follows:

Creating views

All views are associated with a ViewSet, which is created for you when you create a workspace.

Workspace workspace = new Workspace("Getting Started", "This is a model of my software system.");
ViewSet views = workspace.getViews();

Use the various create*View methods on the ViewSet class to create views.