- java.lang.Object
-
- org.logicng.io.graphical.generators.GraphicalGenerator<Formula>
-
- org.logicng.io.graphical.generators.FormulaAstGraphicalGenerator
-
public class FormulaAstGraphicalGenerator extends GraphicalGenerator<Formula>
The graphical generator for representations of ASTs (abstract syntax trees) of a formula.- Since:
- 2.4.0
- Version:
- 2.4.0
-
-
Field Summary
-
Fields inherited from class org.logicng.io.graphical.generators.GraphicalGenerator
alignTerminals, backgroundColor, defaultEdgeStyle, defaultNodeStyle, ID
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GraphicalGeneratorBuilder<FormulaAstGraphicalGenerator,Formula>builder()Returns the builder for this generator.GraphicalRepresentationtranslate(Formula formula)Translates a given formula's AST into its graphical representation.-
Methods inherited from class org.logicng.io.graphical.generators.GraphicalGenerator
edgeStyle, labelOrDefault, nodeStyle
-
-
-
-
Method Detail
-
builder
public static GraphicalGeneratorBuilder<FormulaAstGraphicalGenerator,Formula> builder()
Returns the builder for this generator.- Returns:
- the builder
-
translate
public GraphicalRepresentation translate(Formula formula)
Translates a given formula's AST into its graphical representation.- Parameters:
formula- the formula- Returns:
- the graphical representation
-
-