com.hadii.stiff.StiffDiagram Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stiff-lib Show documentation
Show all versions of stiff-lib Show documentation
stiff-lib is a java library for generating stiff diagrams.
The newest version!
package com.hadii.stiff;
import com.hadii.stiff.diagram.DiagramComponent;
import com.hadii.stiff.diagram.plantuml.PUMLDiagram;
import com.hadii.stiff.diagram.scheme.LightDiagramColorScheme;
import com.hadii.stiff.parse.DiffCodeModel;
import java.util.Set;
/**
* Represents a Striff diagram.
*/
public class StiffDiagram {
private final String svgCode;
private final Set diagramComponents;
public StiffDiagram(DiffCodeModel mergedModel, Set diagramComponentSet) throws Exception {
this.svgCode = new PUMLDiagram(mergedModel, new LightDiagramColorScheme(), diagramComponentSet).svgText();
this.diagramComponents = diagramComponentSet;
}
public String svg() {
return this.svgCode;
}
public int size() {
return this.diagramComponents.size();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy