Class SerialisationGraphPlotter
java.lang.Object
org.tweetyproject.graphs.util.GraphPlotter<SerialisationState, Edge<SerialisationState>>
org.tweetyproject.arg.dung.serialisability.util.SerialisationGraphPlotter
public class SerialisationGraphPlotter
extends GraphPlotter<SerialisationState, Edge<SerialisationState>>
This class represents a specialization of the
The class defines the layout specifications of the visualization:
GraphPlotter used
to visualize the serialisation process of extensions,
as realised in SerialisedExtensionReasoner.
The class defines the layout specifications of the visualization:
- label of a node
- label of an edge
- size of a node
- style and font-size of a node
- spacing between nodes
- Author:
- Julian Sander
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSerialisationGraphPlotter(Plotter plotter, SerialisationGraph graph) Constructs a SerialisationGraphPlotter with the specified plotter and serialisation graph. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateGraph(boolean isVertical) Parse the elements of the graph to visual elements and align them in a hierarchical layout in a specified orientationgetStyle(SerialisationState node) static voidplotGraph(SerialisationGraph graph, int width, int height, String title) Plots the specified graph in a new created frame.static voidplotGraph(SerialisationGraph graph, Plotter groundPlotter, String title) Plots the specified graph in the frame of the specified plotterMethods inherited from class org.tweetyproject.graphs.util.GraphPlotter
addLabels, createGraph
-
Constructor Details
-
SerialisationGraphPlotter
Constructs a SerialisationGraphPlotter with the specified plotter and serialisation graph. This constructor initializes the plotter and associates it with a specific serialisation graph, which represents the graph of a generation process of serialisable extensions.- Parameters:
plotter- The plotter to be used for visualizing the graph. This component handles the graphical rendering.graph- The serialisation graph that represents the structure and data of a serialisable extension generation process.
-
-
Method Details
-
plotGraph
Plots the specified graph in a new created frame.- Parameters:
graph- Graph of a generation process of serialisable extensionswidth- Width of the new frame created.height- Height of the new frame created.title- Title of the Graph to plot.
-
plotGraph
Plots the specified graph in the frame of the specified plotter- Parameters:
graph- Graph of a generation process of serialisable extensionsgroundPlotter- Plotter, which creates the frametitle- Title of the Graph to plot.
-
createGraph
public void createGraph(boolean isVertical) Description copied from class:GraphPlotterParse the elements of the graph to visual elements and align them in a hierarchical layout in a specified orientation- Overrides:
createGraphin classGraphPlotter<SerialisationState, Edge<SerialisationState>>- Parameters:
isVertical- If TRUE layout of graph is "top-to-bottom", if FALSE, layout is "left-to-right"
-
getStyle
-