public interface LayerRenderer<G>
org.graphstream.ui.view.View#setForeLayoutRenderer(LayerRenderer),
org.graphstream.ui.view.View#setBackLayerRenderer(LayerRenderer)| Modifier and Type | Method and Description |
|---|---|
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.
|
void render(G graphics, GraphicGraph graph, double px2Gu, int widthPx, int heightPx, double minXGu, double minYGu, double maxXGu, double maxYGu)
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.