Package com.structurizr.view
Class ContainerView
java.lang.Object
com.structurizr.view.View
com.structurizr.view.StaticView
com.structurizr.view.ContainerView
public final class ContainerView extends StaticView
Represents a Container view from the C4 model, showing the containers within a given software system.
-
Method Summary
Modifier and Type Method Description voidadd(Container container)Adds an individual container (belonging to any software system) to this view, including relationships to/from that container.voidadd(Container container, boolean addRelationships)Adds an individual container (belonging to any software system) to this view.voidadd(SoftwareSystem softwareSystem)Adds a software system to this view, including relationships to/from that software system.voidadd(SoftwareSystem softwareSystem, boolean addRelationships)Adds a software system to this view.voidaddAllContainers()Adds all containers within the software system in scope to this view.voidaddAllContainersAndInfluencers()Adds allContainers of the givenContainerViewas well as all external influencers, that is all persons and all other software systems with incoming or outgoing dependencies.voidaddAllElements()Adds all people, software systems and containers that belong to the software system in scope.voidaddAllInfluencers()Adds allContainers of the givenContainerViewas well as all external influencers, that is all persons and all other software systems with incoming or outgoing dependencies.voidaddDependentSoftwareSystems()voidaddNearestNeighbours(Element element)Adds all people, software systems and containers that are directly connected to the specified element.protected booleancanBeRemoved(Element element)booleangetExternalSoftwareSystemBoundariesVisible()Determines whether software system boundaries should be visible for "external" containers (those outside the software system in scope).java.lang.StringgetName()Gets the (computed) name of this view.voidremove(Container container)Removes an individual container from this view.voidsetExternalSoftwareSystemBoundariesVisible(boolean externalSoftwareSystemBoundariesVisible)Sets whether software system boundaries should be visible for "external" containers (those outside the software system in scope).Methods inherited from class com.structurizr.view.StaticView
add, add, add, addAllPeople, addAllSoftwareSystems, addAnimation, addNearestNeighbours, getAnimations, remove, remove, removeElementsThatAreUnreachableFrom, removeElementsWithTag, removeRelationshipsWithTagMethods inherited from class com.structurizr.view.View
addElement, addRelationship, addRelationship, disableAutomaticLayout, enableAutomaticLayout, enableAutomaticLayout, getAutomaticLayout, getDescription, getElements, getElementView, getKey, getModel, getPaperSize, getRelationships, getRelationshipView, getSoftwareSystem, getSoftwareSystemId, getTitle, getViewSet, isElementInView, remove, removeElement, removeElementsWithNoRelationships, removeRelationshipsNotConnectedToElement, setDescription, setLayoutMergeStrategy, setPaperSize, setTitle
-
Method Details
-
add
Adds a software system to this view, including relationships to/from that software system. Please note that you cannot add the software system that is the scope of this view.- Overrides:
addin classStaticView- Parameters:
softwareSystem- the SoftwareSystem to add
-
add
Adds a software system to this view. Please note that you cannot add the software system that is the scope of this view.- Overrides:
addin classStaticView- Parameters:
softwareSystem- the SoftwareSystem to addaddRelationships- whether to add relationships to/from the software system
-
addAllContainers
public void addAllContainers()Adds all containers within the software system in scope to this view. -
add
Adds an individual container (belonging to any software system) to this view, including relationships to/from that container.- Parameters:
container- the Container to add
-
add
Adds an individual container (belonging to any software system) to this view.- Parameters:
container- the Container to addaddRelationships- whether to add relationships to/from the container
-
remove
Removes an individual container from this view.- Parameters:
container- the Container to remove
-
getName
public java.lang.String getName()Gets the (computed) name of this view. -
addAllElements
public void addAllElements()Adds all people, software systems and containers that belong to the software system in scope.- Specified by:
addAllElementsin classStaticView
-
addNearestNeighbours
Adds all people, software systems and containers that are directly connected to the specified element.- Specified by:
addNearestNeighboursin classStaticView- Parameters:
element- an Element
-
addAllInfluencers
public final void addAllInfluencers()Adds all
Containers of the givenContainerViewas well as all external influencers, that is all persons and all other software systems with incoming or outgoing dependencies.Additionally, all relationships of external dependencies are omitted to keep the diagram clean
-
addAllContainersAndInfluencers
public final void addAllContainersAndInfluencers()Adds all
Containers of the givenContainerViewas well as all external influencers, that is all persons and all other software systems with incoming or outgoing dependencies.Additionally, all relationships of external dependencies are omitted to keep the diagram clean
-
addDependentSoftwareSystems
public final void addDependentSoftwareSystems() -
canBeRemoved
- Specified by:
canBeRemovedin classView
-
getExternalSoftwareSystemBoundariesVisible
public boolean getExternalSoftwareSystemBoundariesVisible()Determines whether software system boundaries should be visible for "external" containers (those outside the software system in scope).- Returns:
- true if external software system boundaries are visible, false otherwise
-
setExternalSoftwareSystemBoundariesVisible
public void setExternalSoftwareSystemBoundariesVisible(boolean externalSoftwareSystemBoundariesVisible)Sets whether software system boundaries should be visible for "external" containers (those outside the software system in scope).- Parameters:
externalSoftwareSystemBoundariesVisible- true if external software system boundaries should be visible, false otherwise
-