Class GraphvizShapeConfig

java.lang.Object
org.testingisdocumenting.znai.diagrams.graphviz.meta.GraphvizShapeConfig

public class GraphvizShapeConfig extends Object
We can assign a node style by adding an extra information to label
     node [label="text [a database]"];
 
In the example above two styles are set. A style can change a color scheme. Also style can change a shape. Graphviz has predefined shapes that can be specified explicitly. Instead of doing it explicitly though, we will specify it during preprocessing and at the final rendering will replace that shape with a custom svg. So 'database' style may be auto rendered as a SVG showing a data storage. And in order to make all the lines connect properly a shape must be of a proper height, width and if possible, shape.
  • Constructor Details

    • GraphvizShapeConfig

      public GraphvizShapeConfig(String json)
    • GraphvizShapeConfig

      public GraphvizShapeConfig(Map<String,?> config)
  • Method Details