Interface GraphRenderer
- All Known Implementing Classes:
GraphStreamRenderer, JavaFXGraphRenderer, JGraphTRenderer
public interface GraphRenderer
Common interface for graph renderers.
Abstraction layer to support different rendering backends (JavaFX, GraphStream, JGraphT visualizations, etc.) while maintaining a consistent API for layout configuration and interaction.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptionGets the visual component (Canvas, Panel, etc.).voidrenderGraph(Object graphData) Renders the given graph data.voidsetRepulsion(Real repulsion) Set repulsion force constant (for force-directed layouts).voidsetSpringLength(Real length) Set desired spring length (for force-directed layouts).voidsetSpringStrength(Real strength) Set spring strength constant (for force-directed layouts).
-
Method Details
-
renderGraph
Renders the given graph data.- Parameters:
graphData- The graph object to render (typically org.episteme.core.mathematics.discrete.Graph)
-
setRepulsion
Set repulsion force constant (for force-directed layouts).- Parameters:
repulsion- Force constant
-
setSpringStrength
Set spring strength constant (for force-directed layouts).- Parameters:
strength- Spring strength
-
setSpringLength
Set desired spring length (for force-directed layouts).- Parameters:
length- Spring rest length
-
getViewComponent
Object getViewComponent()Gets the visual component (Canvas, Panel, etc.).- Returns:
- The UI component
-