Package org.graphstream.ui.view
Class GraphRendererBase<S,G>
java.lang.Object
org.graphstream.ui.view.GraphRendererBase<S,G>
- All Implemented Interfaces:
StyleGroupListener,GraphRenderer<S,G>
public abstract class GraphRendererBase<S,G> extends Object implements GraphRenderer<S,G>, StyleGroupListener
-
Constructor Summary
Constructors Constructor Description GraphRendererBase() -
Method Summary
Modifier and Type Method Description voidbeginSelectionAt(double x1, double y1)Called by the mouse manager to specify where a node and sprite selection started.voidclose()voidendSelectionAt(double x2, double y2)Called by the mouse manager to specify where a node and spite selection stopped.SgetRenderingSurface()voidopen(GraphicGraph graph, S renderingSurface)voidselectionGrowsAt(double x, double y)The selection already started grows toward position (x, y).Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.graphstream.ui.view.GraphRenderer
allGraphicElementsIn, createDefaultView, findGraphicElementAt, getCamera, moveElementAtPx, render, screenshot, setBackLayerRenderer, setForeLayoutRendererMethods inherited from interface org.graphstream.ui.graphicGraph.StyleGroupListener
elementStyleChanged
-
Constructor Details
-
GraphRendererBase
public GraphRendererBase()
-
-
Method Details
-
open
- Specified by:
openin interfaceGraphRenderer<S,G>
-
close
public void close()- Specified by:
closein interfaceGraphRenderer<S,G>
-
getRenderingSurface
-
beginSelectionAt
public void beginSelectionAt(double x1, double y1)Description copied from interface:GraphRendererCalled by the mouse manager to specify where a node and sprite selection started.- Specified by:
beginSelectionAtin interfaceGraphRenderer<S,G>- Parameters:
x1- The selection start abscissa.y1- The selection start ordinate.
-
selectionGrowsAt
public void selectionGrowsAt(double x, double y)Description copied from interface:GraphRendererThe selection already started grows toward position (x, y).- Specified by:
selectionGrowsAtin interfaceGraphRenderer<S,G>- Parameters:
x- The new end selection abscissa.y- The new end selection ordinate.
-
endSelectionAt
public void endSelectionAt(double x2, double y2)Description copied from interface:GraphRendererCalled by the mouse manager to specify where a node and spite selection stopped.- Specified by:
endSelectionAtin interfaceGraphRenderer<S,G>- Parameters:
x2- The selection stop abscissa.y2- The selection stop ordinate.
-