Package com.structurizr.graphviz
Class GraphvizAutomaticLayout
- java.lang.Object
-
- com.structurizr.graphviz.GraphvizAutomaticLayout
-
public class GraphvizAutomaticLayout extends java.lang.ObjectApplies the graphviz automatic layout to views in a Structurizr workspace. Note: this class assumes that the "dot" command is available.
-
-
Constructor Summary
Constructors Constructor Description GraphvizAutomaticLayout()GraphvizAutomaticLayout(java.io.File path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(com.structurizr.view.ComponentView view)voidapply(com.structurizr.view.ContainerView view)voidapply(com.structurizr.view.DeploymentView view)voidapply(com.structurizr.view.DynamicView view)voidapply(com.structurizr.view.SystemContextView view)voidapply(com.structurizr.view.SystemLandscapeView view)voidapply(com.structurizr.Workspace workspace)voidsetChangePaperSize(boolean changePaperSize)voidsetLocale(java.util.Locale locale)Sets the locale used when writing DOT files.voidsetMargin(int margin)voidsetNodeSeparation(double nodeSeparation)voidsetRankDirection(RankDirection rankDirection)voidsetRankSeparation(double rankSeparation)
-
-
-
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
-
-