Package org.graphstream.ui.view
Interface LayerRenderer<G>
public interface LayerRenderer<G>
A specific rendering class that can be plugged in any view and is called to
draw under or above the graph.
- See Also:
org.graphstream.ui.view.View#setForeLayoutRenderer(LayerRenderer),org.graphstream.ui.view.View#setBackLayerRenderer(LayerRenderer)
-
Method Summary
Modifier and Type Method Description voidrender(G graphics, GraphicGraph graph, double px2Gu, int widthPx, int heightPx, double minXGu, double minYGu, double maxXGu, double maxYGu)Render something under or above the graph.
-
Method Details
-
render
void render(G graphics, GraphicGraph graph, double px2Gu, int widthPx, int heightPx, double minXGu, double minYGu, double maxXGu, double maxYGu)Render something under or above the graph.- Parameters:
graphics- The graphics module used to draw (Graphics2D for example, when using Swing).graph- The graphic representation of the graph.px2Gu- The ratio to pass from pixels to graph units.widthPx- The width in pixels of the view port.heightPx- The height in pixels of the view port.minXGu- The minimum visible point abscissa of the graph in graph units.minYGu- The minimum visible point ordinate of the graph in graph units.maxXGu- The maximum visible point abscissa of the graph in graph units.maxYGu- The maximum visible point ordinate of the graph in graph units.
-