Class Styles

java.lang.Object
com.structurizr.view.Styles

public final class Styles extends Object
  • Constructor Details

    • Styles

      public Styles()
  • Method Details

    • getElements

      public Collection<ElementStyle> getElements()
    • add

      public void add(ElementStyle elementStyle)
    • addElementStyle

      public ElementStyle addElementStyle(String tag)
    • clearElementStyles

      public void clearElementStyles()
      Removes all element styles.
    • clearRelationshipStyles

      public void clearRelationshipStyles()
      Removes all relationship styles.
    • getRelationships

      public Collection<RelationshipStyle> getRelationships()
    • add

      public void add(RelationshipStyle relationshipStyle)
    • addRelationshipStyle

      public RelationshipStyle addRelationshipStyle(String tag)
    • findElementStyle

      public ElementStyle findElementStyle(String tag)
      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

      public RelationshipStyle findRelationshipStyle(String tag)
      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

      public ElementStyle findElementStyle(Element element)
    • findRelationshipStyle

      public RelationshipStyle findRelationshipStyle(Relationship relationship)