Package com.structurizr.view
Class Styles
java.lang.Object
com.structurizr.view.Styles
public final class Styles
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Styles() -
Method Summary
Modifier and Type Method Description voidadd(ElementStyle elementStyle)voidadd(RelationshipStyle relationshipStyle)ElementStyleaddElementStyle(java.lang.String tag)RelationshipStyleaddRelationshipStyle(java.lang.String tag)voidclearElementStyles()Removes all element styles.voidclearRelationshipStyles()Removes all relationship styles.ElementStylefindElementStyle(Element element)ElementStylefindElementStyle(java.lang.String tag)Finds the element style for the given tag.RelationshipStylefindRelationshipStyle(Relationship relationship)RelationshipStylefindRelationshipStyle(java.lang.String tag)Finds the relationship style for the given tag.java.util.Collection<ElementStyle>getElements()java.util.Collection<RelationshipStyle>getRelationships()
-
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
-