Package com.structurizr.view
Class StaticView
java.lang.Object
com.structurizr.view.View
com.structurizr.view.ModelView
com.structurizr.view.StaticView
- All Implemented Interfaces:
PropertyHolder
- Direct Known Subclasses:
ComponentView,ContainerView,SystemContextView,SystemLandscapeView
The superclass for all static views (system landscape, system context, container and component views).
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(CustomElement customElement) Adds the given custom element to this view, including relationships to/from that custom element.voidadd(CustomElement customElement, boolean addRelationships) Adds the given custom element to this view.voidAdds the given person to this view, including relationships to/from that person.voidAdds the given person to this view.add(Relationship relationship) Adds a specific relationship to this view.voidadd(SoftwareSystem softwareSystem) Adds the given software system to this view, including relationships to/from that software system.voidadd(SoftwareSystem softwareSystem, boolean addRelationships) Adds the given software system to this view.abstract voidAdds all of the permitted elements to this view.voidAdds all people in the model to this view.voidAdds all software systems in the model to this view.voidaddAnimation(Element... elements) Adds an animation step, with the specified elements.abstract voidAdds the default set of elements to this view.abstract voidaddNearestNeighbours(Element element) Adds all of the permitted elements, which are directly connected to the specified element, to this view.voidremove(CustomElement customElement) Removes the given custom element from this view.voidRemoves the given person from this view.voidremove(SoftwareSystem softwareSystem) Removes the given software system from this view.voidRemoves all elements that cannot be reached by traversing the graph of relationships starting with the specified element.final voidRemoves allElements that have the given tag from this view.final voidRemoves allRelationships that have the given tag from this view.Methods inherited from class com.structurizr.view.ModelView
addElement, addNearestNeighbours, addRelationship, canBeRemoved, checkElementCanBeAdded, disableAutomaticLayout, enableAutomaticLayout, enableAutomaticLayout, enableAutomaticLayout, enableAutomaticLayout, getAutomaticLayout, getDimensions, getElements, getElementView, getMergeFromRemote, getModel, getPaperSize, getRelationships, getRelationshipView, getSoftwareSystem, getSoftwareSystemId, getViewSet, isElementInView, remove, removeElement, removeElementsWithNoRelationships, removeRelationshipsNotConnectedToElement, setDimensions, setLayoutMergeStrategy, setMergeFromRemote, setPaperSizeMethods inherited from class com.structurizr.view.View
addProperty, getDescription, getKey, getName, getOrder, getProperties, getTitle, setDescription, setTitle
-
Method Details
-
addDefaultElements
public abstract void addDefaultElements()Adds the default set of elements to this view. -
addAllSoftwareSystems
public void addAllSoftwareSystems()Adds all software systems in the model to this view. -
add
Adds the given software system to this view, including relationships to/from that software system.- Parameters:
softwareSystem- the SoftwareSystem to add
-
add
Adds the given software system to this view.- Parameters:
softwareSystem- the SoftwareSystem to addaddRelationships- whether to add relationships to/from the software system
-
remove
Removes the given software system from this view.- Parameters:
softwareSystem- the SoftwareSystem to remove
-
addAllPeople
public void addAllPeople()Adds all people in the model to this view. -
add
Adds the given person to this view, including relationships to/from that person.- Parameters:
person- the Person to add
-
add
Adds the given person to this view.- Parameters:
person- the Person to addaddRelationships- whether to add relationships to/from the person
-
remove
Removes the given person from this view.- Parameters:
person- the Person to add
-
add
Adds a specific relationship to this view.- Parameters:
relationship- the Relationship to be added- Returns:
- a RelationshipView object representing the relationship added
-
addAllElements
public abstract void addAllElements()Adds all of the permitted elements to this view. -
addNearestNeighbours
Adds all of the permitted elements, which are directly connected to the specified element, to this view.- Parameters:
element- an Element
-
removeElementsThatAreUnreachableFrom
Removes all elements that cannot be reached by traversing the graph of relationships starting with the specified element.- Parameters:
element- the starting element
-
removeElementsWithTag
Removes allElements that have the given tag from this view.- Parameters:
tag- a tag
-
removeRelationshipsWithTag
Removes allRelationships that have the given tag from this view.- Parameters:
tag- a tag
-
addAnimation
Adds an animation step, with the specified elements.- Parameters:
elements- the elements that should be shown in the animation step
-
getAnimations
-
add
Adds the given custom element to this view, including relationships to/from that custom element.- Parameters:
customElement- the CustomElement to add
-
add
Adds the given custom element to this view.- Parameters:
customElement- the CustomElement to addaddRelationships- whether to add relationships to/from the custom element
-
remove
Removes the given custom element from this view.- Parameters:
customElement- the CustomElement to add
-