Package net.automatalib.visualization
Interface VisualizationProvider
-
- All Known Implementing Classes:
DummyVP
public interface VisualizationProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleancheckUsable()Checks whether the provider is supported on the current platform.default StringgetDescription()Returns a description of the provider.StringgetId()Returns the id of the visualization provider.default intgetPriority()Returns the priority of the provider.<N,E>
voidvisualize(Graph<N,E> graph, List<VisualizationHelper<N,? super E>> additionalHelpers, boolean modal, Map<String,String> visOptions)Visualizes the given graph by means of executing the visualization implementation.
-
-
-
Method Detail
-
getId
String getId()
Returns the id of the visualization provider. This value is used and matched against theAutomataLibProperty.VISUALIZATION_PROVIDERproperty to select the chosen visualization provider.- Returns:
- the id of the provider
-
getDescription
default String getDescription()
Returns a description of the provider.- Returns:
- the description of the provider
-
getPriority
default int getPriority()
Returns the priority of the provider. If no provider is selected via theAutomataLibProperty.VISUALIZATION_PROVIDERproperty, the provider with the highest priority is chosen.- Returns:
- the priority of the provider
-
checkUsable
boolean checkUsable()
Checks whether the provider is supported on the current platform.- Returns:
trueif the provider is able to visualiza,falseotherwise- See Also:
visualize(Graph, List, boolean, Map)
-
visualize
<N,E> void visualize(Graph<N,E> graph, List<VisualizationHelper<N,? super E>> additionalHelpers, boolean modal, Map<String,String> visOptions)
Visualizes the given graph by means of executing the visualization implementation.- Type Parameters:
N- the node type of the graph modelE- the edge type of the graph model- Parameters:
graph- the graph model to visualizeadditionalHelpers- additional helpers to influence the visualizationmodal- a flag, whether the visualized graph should be displayed in a modal dialog (halting the current program execution) or not.visOptions- additional options for the provider
-
-