Package com.structurizr.view
Class CustomView
java.lang.Object
com.structurizr.view.View
com.structurizr.view.CustomView
Represents a custom view, containing custom elements.
-
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.add(Relationship relationship) Adds a specific relationship to this view.voidAdds all custom elements to this view.voidaddAnimation(CustomElement... elements) Adds an animation step, with the specified elements.voidAdds the default set of elements to this view.protected booleancanBeRemoved(Element element) protected voidcheckElementCanBeAdded(Element element) getModel()Gets the model that this view belongs to.getName()Gets the (computed) name of this view.voidremove(CustomElement customElement) Removes the given custom element from this view.Methods inherited from class com.structurizr.view.View
addElement, addNearestNeighbours, addRelationship, disableAutomaticLayout, enableAutomaticLayout, enableAutomaticLayout, enableAutomaticLayout, enableAutomaticLayout, getAutomaticLayout, getDescription, getDimensions, getElements, getElementView, getKey, getMergeFromRemote, getOrder, getPaperSize, getRelationships, getRelationshipView, getSoftwareSystem, getSoftwareSystemId, getTitle, getViewSet, isElementInView, remove, removeElement, removeElementsWithNoRelationships, removeRelationshipsNotConnectedToElement, setDescription, setDimensions, setLayoutMergeStrategy, setMergeFromRemote, setPaperSize, setTitle
-
Method Details
-
getName
Gets the (computed) name of this view. -
getModel
Gets the model that this view belongs to. -
checkElementCanBeAdded
- Specified by:
checkElementCanBeAddedin classView
-
canBeRemoved
- Specified by:
canBeRemovedin classView
-
add
Adds a specific relationship to this view.- Parameters:
relationship- the Relationship to be added- Returns:
- a RelationshipView object representing the relationship added
-
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
-
addDefaultElements
public void addDefaultElements()Adds the default set of elements to this view. -
addAllCustomElements
public void addAllCustomElements()Adds all custom elements to this view.
-