Interface Backend

All Superinterfaces:
org.graphstream.ui.view.camera.Backend
All Known Implementing Classes:
BackendJ2D

public interface Backend
extends org.graphstream.ui.view.camera.Backend
  • Method Summary

    Modifier and Type Method Description
    Shape chooseEdgeArrowShape​(Shape oldShape, org.graphstream.ui.graphicGraph.StyleGroup group)  
    Shape chooseEdgeShape​(Shape oldShape, org.graphstream.ui.graphicGraph.StyleGroup group)  
    GraphBackgroundRenderer chooseGraphBackgroundRenderer()  
    Shape chooseNodeShape​(Shape oldShape, org.graphstream.ui.graphicGraph.StyleGroup group)  
    Shape chooseSpriteShape​(Shape oldShape, org.graphstream.ui.graphicGraph.StyleGroup group)  
    void close()
    Called after finished using this object.
    javafx.scene.layout.Pane drawingSurface()
    The drawing surface.
    javafx.scene.canvas.GraphicsContext graphics2D()
    The Java2D graphics.
    void open​(javafx.scene.layout.Pane drawingSurface)
    Called before any prior use of this back-end.
    void prepareNewFrame​(javafx.scene.canvas.GraphicsContext g2)
    Setup the back-end for a new rendering session.

    Methods inherited from interface org.graphstream.ui.view.camera.Backend

    beginTransform, endTransform, inverseTransform, inverseTransform, popTransform, pushTransform, rotate, scale, setAntialias, setIdentity, setQuality, transform, transform, translate
  • Method Details

    • open

      void open​(javafx.scene.layout.Pane drawingSurface)
      Called before any prior use of this back-end.
    • close

      void close()
      Called after finished using this object.
    • prepareNewFrame

      void prepareNewFrame​(javafx.scene.canvas.GraphicsContext g2)
      Setup the back-end for a new rendering session.
    • graphics2D

      javafx.scene.canvas.GraphicsContext graphics2D()
      The Java2D graphics.
    • chooseNodeShape

      Shape chooseNodeShape​(Shape oldShape, org.graphstream.ui.graphicGraph.StyleGroup group)
    • chooseEdgeShape

      Shape chooseEdgeShape​(Shape oldShape, org.graphstream.ui.graphicGraph.StyleGroup group)
    • chooseEdgeArrowShape

      Shape chooseEdgeArrowShape​(Shape oldShape, org.graphstream.ui.graphicGraph.StyleGroup group)
    • chooseSpriteShape

      Shape chooseSpriteShape​(Shape oldShape, org.graphstream.ui.graphicGraph.StyleGroup group)
    • chooseGraphBackgroundRenderer

      GraphBackgroundRenderer chooseGraphBackgroundRenderer()
    • drawingSurface

      javafx.scene.layout.Pane drawingSurface()
      The drawing surface. The drawing surface may be different than the one passed as argument to open(), the back-end is free to create a new surface as it sees fit.