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 Type
    Method
    Description
    Gets the visual component (Canvas, Panel, etc.).
    void
    renderGraph(Object graphData)
    Renders the given graph data.
    void
    setRepulsion(Real repulsion)
    Set repulsion force constant (for force-directed layouts).
    void
    Set desired spring length (for force-directed layouts).
    void
    Set spring strength constant (for force-directed layouts).
  • Method Details

    • renderGraph

      void renderGraph(Object graphData)
      Renders the given graph data.
      Parameters:
      graphData - The graph object to render (typically org.episteme.core.mathematics.discrete.Graph)
    • setRepulsion

      void setRepulsion(Real repulsion)
      Set repulsion force constant (for force-directed layouts).
      Parameters:
      repulsion - Force constant
    • setSpringStrength

      void setSpringStrength(Real strength)
      Set spring strength constant (for force-directed layouts).
      Parameters:
      strength - Spring strength
    • setSpringLength

      void setSpringLength(Real length)
      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