Class GraphBackgroundRenderer
java.lang.Object
org.graphstream.ui.swing.renderer.GraphBackgroundRenderer
- All Implemented Interfaces:
org.graphstream.ui.graphicGraph.GraphicElement.SwingElementRenderer
public class GraphBackgroundRenderer
extends Object
implements org.graphstream.ui.graphicGraph.GraphicElement.SwingElementRenderer
Renderer for the graph background.
This class is not a StyleRenderer because the graph is not a GraphicElement.
TODO XXX make this class an abstract one, and create several distinct back-ends.
-
Constructor Summary
ConstructorsConstructorDescriptionGraphBackgroundRenderer(org.graphstream.ui.graphicGraph.GraphicGraph graph, org.graphstream.ui.graphicGraph.StyleGroup style) -
Method Summary
Modifier and TypeMethodDescriptionvoiddisplayNothingToDo(Backend bck, int w, int h) Render a background indicating there is nothing to draw.protected voidfillGradient(Graphics2D g, org.graphstream.ui.view.camera.DefaultCamera2D camera) void
-
Constructor Details
-
GraphBackgroundRenderer
public GraphBackgroundRenderer(org.graphstream.ui.graphicGraph.GraphicGraph graph, org.graphstream.ui.graphicGraph.StyleGroup style)
-
-
Method Details
-
displayNothingToDo
Render a background indicating there is nothing to draw. -
render
public void render(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, int w, int h) -
fillGradient
-