Package com.structurizr.view
Class Styles
java.lang.Object
com.structurizr.view.Styles
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(ElementStyle elementStyle) void
add
(RelationshipStyle relationshipStyle) addElementStyle
(String tag) void
Removes all element styles.void
Removes all relationship styles.findElementStyle
(Element element) findElementStyle
(String tag) Finds the element style for the given tag.findRelationshipStyle
(Relationship relationship) Finds the relationship style for the given tag.
-
Constructor Details
-
Styles
public Styles()
-
-
Method Details
-
getElements
-
add
-
addElementStyle
-
clearElementStyles
public void clearElementStyles()Removes all element styles. -
clearRelationshipStyles
public void clearRelationshipStyles()Removes all relationship styles. -
getRelationships
-
add
-
addRelationshipStyle
-
findElementStyle
Finds the element style for the given tag. This method creates an empty style, and copies properties from any element styles (from the workspace and any themes) for the given tag.- Parameters:
tag
- the tag (a String)- Returns:
- an ElementStyle instance
-
findRelationshipStyle
Finds the relationship style for the given tag. This method creates an empty style, and copies properties from any relationship styles (from the workspace and any themes) for the given tag.- Parameters:
tag
- the tag (a String)- Returns:
- a RelationshipStyle instance
-
findElementStyle
-
findRelationshipStyle
-