Package com.structurizr.export
Class AbstractDiagramExporter
java.lang.Object
com.structurizr.export.AbstractExporter
com.structurizr.export.AbstractDiagramExporter
- All Implemented Interfaces:
DiagramExporter,Exporter
- Direct Known Subclasses:
AbstractPlantUMLExporter,DOTExporter,MermaidDiagramExporter,WebSequenceDiagramsExporter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract DiagramcreateDiagram(com.structurizr.view.View view, String definition) protected LegendcreateLegend(com.structurizr.view.View view) protected abstract voidendContainerBoundary(com.structurizr.view.View view, IndentingWriter writer) protected abstract voidendDeploymentNodeBoundary(com.structurizr.view.View view, IndentingWriter writer) protected abstract voidendEnterpriseBoundary(com.structurizr.view.View view, IndentingWriter writer) protected abstract voidendGroupBoundary(com.structurizr.view.View view, IndentingWriter writer) protected abstract voidendSoftwareSystemBoundary(com.structurizr.view.View view, IndentingWriter writer) export(com.structurizr.view.ComponentView view) export(com.structurizr.view.ContainerView view) export(com.structurizr.view.CustomView view) export(com.structurizr.view.DeploymentView view) export(com.structurizr.view.DynamicView view) export(com.structurizr.view.SystemContextView view) export(com.structurizr.view.SystemLandscapeView view) final Collection<Diagram>export(com.structurizr.Workspace workspace) Exports all views in the workspace.protected List<com.structurizr.model.Container>getBoundaryContainers(com.structurizr.view.View view) protected List<com.structurizr.model.SoftwareSystem>getBoundarySoftwareSystems(com.structurizr.view.View view) protected StringgetViewOrViewSetProperty(com.structurizr.view.View view, String name, String defaultValue) protected booleanisAnimationSupported(com.structurizr.view.View view) protected booleanisVisible(com.structurizr.view.View view, com.structurizr.model.Element element) protected booleanisVisible(com.structurizr.view.View view, com.structurizr.view.RelationshipView relationshipView) protected abstract voidstartContainerBoundary(com.structurizr.view.View view, com.structurizr.model.Container container, IndentingWriter writer) protected abstract voidstartDeploymentNodeBoundary(com.structurizr.view.DeploymentView view, com.structurizr.model.DeploymentNode deploymentNode, IndentingWriter writer) protected abstract voidstartEnterpriseBoundary(com.structurizr.view.View view, String enterpriseName, IndentingWriter writer) protected abstract voidstartGroupBoundary(com.structurizr.view.View view, String group, IndentingWriter writer) protected abstract voidstartSoftwareSystemBoundary(com.structurizr.view.View view, com.structurizr.model.SoftwareSystem softwareSystem, IndentingWriter writer) protected abstract voidwriteElement(com.structurizr.view.View view, com.structurizr.model.Element element, IndentingWriter writer) protected voidwriteElements(com.structurizr.view.View view, List<com.structurizr.model.GroupableElement> elements, IndentingWriter writer) protected abstract voidwriteFooter(com.structurizr.view.View view, IndentingWriter writer) protected abstract voidwriteHeader(com.structurizr.view.View view, IndentingWriter writer) protected abstract voidwriteRelationship(com.structurizr.view.View view, com.structurizr.view.RelationshipView relationshipView, IndentingWriter writer) protected voidwriteRelationships(com.structurizr.view.View view, IndentingWriter writer) Methods inherited from class com.structurizr.export.AbstractExporter
breakText, findElementStyle, findRelationshipStyle, hasValue, typeOf, typeOf
-
Constructor Details
-
AbstractDiagramExporter
public AbstractDiagramExporter()
-
-
Method Details
-
export
Exports all views in the workspace.- Specified by:
exportin interfaceDiagramExporter- Parameters:
workspace- the workspace containing the views to be written- Returns:
- a collection of diagram definitions, one per view
-
export
-
export
-
export
-
export
-
export
-
getBoundarySoftwareSystems
protected List<com.structurizr.model.SoftwareSystem> getBoundarySoftwareSystems(com.structurizr.view.View view) -
export
-
export
-
getBoundaryContainers
protected List<com.structurizr.model.Container> getBoundaryContainers(com.structurizr.view.View view) -
export
-
export
-
export
-
export
-
writeElements
protected void writeElements(com.structurizr.view.View view, List<com.structurizr.model.GroupableElement> elements, IndentingWriter writer) -
writeRelationships
-
writeHeader
-
startEnterpriseBoundary
protected abstract void startEnterpriseBoundary(com.structurizr.view.View view, String enterpriseName, IndentingWriter writer) -
endEnterpriseBoundary
protected abstract void endEnterpriseBoundary(com.structurizr.view.View view, IndentingWriter writer) -
startGroupBoundary
protected abstract void startGroupBoundary(com.structurizr.view.View view, String group, IndentingWriter writer) -
endGroupBoundary
-
startSoftwareSystemBoundary
protected abstract void startSoftwareSystemBoundary(com.structurizr.view.View view, com.structurizr.model.SoftwareSystem softwareSystem, IndentingWriter writer) -
endSoftwareSystemBoundary
protected abstract void endSoftwareSystemBoundary(com.structurizr.view.View view, IndentingWriter writer) -
startContainerBoundary
protected abstract void startContainerBoundary(com.structurizr.view.View view, com.structurizr.model.Container container, IndentingWriter writer) -
endContainerBoundary
protected abstract void endContainerBoundary(com.structurizr.view.View view, IndentingWriter writer) -
startDeploymentNodeBoundary
protected abstract void startDeploymentNodeBoundary(com.structurizr.view.DeploymentView view, com.structurizr.model.DeploymentNode deploymentNode, IndentingWriter writer) -
endDeploymentNodeBoundary
protected abstract void endDeploymentNodeBoundary(com.structurizr.view.View view, IndentingWriter writer) -
writeElement
protected abstract void writeElement(com.structurizr.view.View view, com.structurizr.model.Element element, IndentingWriter writer) -
writeRelationship
protected abstract void writeRelationship(com.structurizr.view.View view, com.structurizr.view.RelationshipView relationshipView, IndentingWriter writer) -
isAnimationSupported
protected boolean isAnimationSupported(com.structurizr.view.View view) -
isVisible
protected boolean isVisible(com.structurizr.view.View view, com.structurizr.model.Element element) -
isVisible
protected boolean isVisible(com.structurizr.view.View view, com.structurizr.view.RelationshipView relationshipView) -
createDiagram
-
createLegend
-
getViewOrViewSetProperty
-