Class GraphvizAutomaticLayout


  • public class GraphvizAutomaticLayout
    extends java.lang.Object
    Applies the graphviz automatic layout to views in a Structurizr workspace. Note: this class assumes that the "dot" command is available.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void apply​(com.structurizr.view.ComponentView view)  
      void apply​(com.structurizr.view.ContainerView view)  
      void apply​(com.structurizr.view.DeploymentView view)  
      void apply​(com.structurizr.view.DynamicView view)  
      void apply​(com.structurizr.view.SystemContextView view)  
      void apply​(com.structurizr.view.SystemLandscapeView view)  
      void apply​(com.structurizr.Workspace workspace)  
      void setChangePaperSize​(boolean changePaperSize)  
      void setLocale​(java.util.Locale locale)
      Sets the locale used when writing DOT files.
      void setMargin​(int margin)  
      void setNodeSeparation​(double nodeSeparation)  
      void setRankDirection​(RankDirection rankDirection)  
      void setRankSeparation​(double rankSeparation)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GraphvizAutomaticLayout

        public GraphvizAutomaticLayout()
      • GraphvizAutomaticLayout

        public GraphvizAutomaticLayout​(java.io.File path)
    • Method Detail

      • setRankDirection

        public void setRankDirection​(RankDirection rankDirection)
      • setRankSeparation

        public void setRankSeparation​(double rankSeparation)
      • setNodeSeparation

        public void setNodeSeparation​(double nodeSeparation)
      • setMargin

        public void setMargin​(int margin)
      • setChangePaperSize

        public void setChangePaperSize​(boolean changePaperSize)
      • setLocale

        public void setLocale​(java.util.Locale locale)
        Sets the locale used when writing DOT files.
        Parameters:
        locale - a Locale instance
      • apply

        public void apply​(com.structurizr.view.SystemLandscapeView view)
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • apply

        public void apply​(com.structurizr.view.SystemContextView view)
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • apply

        public void apply​(com.structurizr.view.ContainerView view)
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • apply

        public void apply​(com.structurizr.view.ComponentView view)
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • apply

        public void apply​(com.structurizr.view.DynamicView view)
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • apply

        public void apply​(com.structurizr.view.DeploymentView view)
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • apply

        public void apply​(com.structurizr.Workspace workspace)
                   throws java.lang.Exception
        Throws:
        java.lang.Exception