Package org.graphstream.ui.swing
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 ShapechooseEdgeArrowShape(Shape oldShape, org.graphstream.ui.graphicGraph.StyleGroup group)ShapechooseEdgeShape(Shape oldShape, org.graphstream.ui.graphicGraph.StyleGroup group)GraphBackgroundRendererchooseGraphBackgroundRenderer()ShapechooseNodeShape(Shape oldShape, org.graphstream.ui.graphicGraph.StyleGroup group)ShapechooseSpriteShape(Shape oldShape, org.graphstream.ui.graphicGraph.StyleGroup group)voidclose()Called after finished using this object.java.awt.ContainerdrawingSurface()The drawing surface.java.awt.Graphics2Dgraphics2D()The Java2D graphics.voidopen(java.awt.Container drawingSurface)Called before any prior use of this back-end.voidprepareNewFrame(java.awt.Graphics2D g2)Setup the back-end for a new rendering session.
-
Method Details
-
open
void open(java.awt.Container drawingSurface)Called before any prior use of this back-end. -
close
void close()Called after finished using this object. -
prepareNewFrame
void prepareNewFrame(java.awt.Graphics2D g2)Setup the back-end for a new rendering session. -
graphics2D
java.awt.Graphics2D graphics2D()The Java2D graphics. -
chooseNodeShape
-
chooseEdgeShape
-
chooseEdgeArrowShape
-
chooseSpriteShape
-
chooseGraphBackgroundRenderer
GraphBackgroundRenderer chooseGraphBackgroundRenderer() -
drawingSurface
java.awt.Container 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.
-