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 TypeMethodDescriptionadd(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.Methods inherited from class com.structurizr.view.View
add, add, 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, 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
-
addDefaultElements
public void addDefaultElements()Adds the default set of elements to this view. -
addAllCustomElements
public void addAllCustomElements()Adds all custom elements to this view.
-