org.graphstream.ui.swingViewer
Class GraphRendererBase

java.lang.Object
  extended by org.graphstream.ui.swingViewer.GraphRendererBase
All Implemented Interfaces:
StyleGroupListener, GraphRenderer
Direct Known Subclasses:
SwingBasicGraphRenderer

public abstract class GraphRendererBase
extends Object
implements GraphRenderer, StyleGroupListener


Constructor Summary
GraphRendererBase()
           
 
Method Summary
 void beginSelectionAt(double x1, double y1)
          Called by the mouse manager to specify where a node and sprite selection started.
 void close()
           
 void endSelectionAt(double x2, double y2)
          Called by the mouse manager to specify where a node and spite selection stopped.
 Container getRenderingSurface()
           
 void open(GraphicGraph graph, Container renderingSurface)
           
 void selectionGrowsAt(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, wait
 
Methods inherited from interface org.graphstream.ui.swingViewer.GraphRenderer
allNodesOrSpritesIn, findNodeOrSpriteAt, getCamera, moveElementAtPx, render, screenshot, setBackLayerRenderer, setForeLayoutRenderer
 
Methods inherited from interface org.graphstream.ui.graphicGraph.StyleGroupListener
elementStyleChanged
 

Constructor Detail

GraphRendererBase

public GraphRendererBase()
Method Detail

open

public void open(GraphicGraph graph,
                 Container renderingSurface)
Specified by:
open in interface GraphRenderer

close

public void close()
Specified by:
close in interface GraphRenderer

getRenderingSurface

public Container getRenderingSurface()

beginSelectionAt

public void beginSelectionAt(double x1,
                             double y1)
Description copied from interface: GraphRenderer
Called by the mouse manager to specify where a node and sprite selection started.

Specified by:
beginSelectionAt in interface GraphRenderer
Parameters:
x1 - The selection start abscissa.
y1 - The selection start ordinate.

selectionGrowsAt

public void selectionGrowsAt(double x,
                             double y)
Description copied from interface: GraphRenderer
The selection already started grows toward position (x, y).

Specified by:
selectionGrowsAt in interface GraphRenderer
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: GraphRenderer
Called by the mouse manager to specify where a node and spite selection stopped.

Specified by:
endSelectionAt in interface GraphRenderer
Parameters:
x2 - The selection stop abscissa.
y2 - The selection stop ordinate.


Copyright © 2012. All Rights Reserved.