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 Details

  • Method Details

    • open

      public void open​(GraphicGraph graph, S renderingSurface)
      Specified by:
      open in interface GraphRenderer<S,​G>
    • close

      public void close()
      Specified by:
      close in interface GraphRenderer<S,​G>
    • getRenderingSurface

      public S 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<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: GraphRenderer
      The selection already started grows toward position (x, y).
      Specified by:
      selectionGrowsAt in interface GraphRenderer<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: GraphRenderer
      Called by the mouse manager to specify where a node and spite selection stopped.
      Specified by:
      endSelectionAt in interface GraphRenderer<S,​G>
      Parameters:
      x2 - The selection stop abscissa.
      y2 - The selection stop ordinate.