org.graphstream.ui.swingViewer
Interface LayerRenderer


public interface LayerRenderer

A specific rendering class that can be plugged in any view and is called to draw under or above the graph.

See Also:
View.setForeLayoutRenderer(LayerRenderer), View.setBackLayerRenderer(LayerRenderer)

Method Summary
 void render(Graphics2D 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 Detail

render

void render(Graphics2D 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 Swing graphics.
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.


Copyright © 2013. All Rights Reserved.