Class EdgeRenderer

java.lang.Object
org.graphstream.ui.swing.renderer.StyleRenderer
org.graphstream.ui.swing.renderer.EdgeRenderer
All Implemented Interfaces:
org.graphstream.ui.graphicGraph.GraphicElement.SwingElementRenderer

public class EdgeRenderer
extends StyleRenderer
  • Constructor Summary

    Constructors 
    Constructor Description
    EdgeRenderer​(org.graphstream.ui.graphicGraph.StyleGroup styleGroup)  
    EdgeRenderer​(org.graphstream.ui.graphicGraph.StyleGroup styleGroup, SwingGraphRenderer mainRenderer)  
  • Method Summary

    Modifier and Type Method Description
    void elementInvisible​(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element)
    Called during rendering in place of #renderElement(Graphics2D, DefaultCamera2D, GraphicElement) to signal that the given element is not inside the view.
    void endRenderingPass​(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, boolean forShadow)
    Called at the end of the rendering pass.
    void pushDynStyle​(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element)
    Called before the rendering of elements on dynamic styles.
    void pushStyle​(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, boolean forShadow)
    Called before the rendering of bulk and event elements.
    void renderElement​(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element)
    Render a single element knowing the style is already prepared.
    void renderShadow​(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element)
    Render the shadow of the element.
    void setupRenderingPass​(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, boolean forShadow)
    Called before the whole rendering pass for all elements.

    Methods inherited from class org.graphstream.ui.swing.renderer.StyleRenderer

    apply, render, render, renderShadow

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EdgeRenderer

      public EdgeRenderer​(org.graphstream.ui.graphicGraph.StyleGroup styleGroup)
    • EdgeRenderer

      public EdgeRenderer​(org.graphstream.ui.graphicGraph.StyleGroup styleGroup, SwingGraphRenderer mainRenderer)
  • Method Details

    • setupRenderingPass

      public void setupRenderingPass​(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, boolean forShadow)
      Description copied from class: StyleRenderer
      Called before the whole rendering pass for all elements.
      Specified by:
      setupRenderingPass in class StyleRenderer
      Parameters:
      bck - The rendering back-end.
      camera - The camera.
      forShadow - true if we are in the shadow rendering pass.
    • pushStyle

      public void pushStyle​(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, boolean forShadow)
      Description copied from class: StyleRenderer
      Called before the rendering of bulk and event elements.
      Specified by:
      pushStyle in class StyleRenderer
      Parameters:
      bck - The rendering back-end.
      camera - The camera.
      forShadow - true if we are in the shadow rendering pass.
    • pushDynStyle

      public void pushDynStyle​(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element)
      Description copied from class: StyleRenderer
      Called before the rendering of elements on dynamic styles. This must only change the style properties that can change dynamically.
      Specified by:
      pushDynStyle in class StyleRenderer
      Parameters:
      bck - The rendering back-end.
      camera - The camera.
      element - The graphic element concerned by the dynamic style change.
    • renderElement

      public void renderElement​(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element)
      Description copied from class: StyleRenderer
      Render a single element knowing the style is already prepared. Elements that are not visible are not drawn.
      Specified by:
      renderElement in class StyleRenderer
      Parameters:
      bck - The rendering back-end.
      camera - The camera.
      element - The element to render.
    • renderShadow

      public void renderShadow​(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element)
      Description copied from class: StyleRenderer
      Render the shadow of the element.
      Specified by:
      renderShadow in class StyleRenderer
      Parameters:
      bck - The rendering back-end.
      camera - The camera.
      element - The element to render.
    • elementInvisible

      public void elementInvisible​(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element)
      Description copied from class: StyleRenderer
      Called during rendering in place of #renderElement(Graphics2D, DefaultCamera2D, GraphicElement) to signal that the given element is not inside the view. The renderElement() method will be called as soon as the element becomes visible anew.
      Specified by:
      elementInvisible in class StyleRenderer
      Parameters:
      bck - The rendering back-end.
      camera - The camera.
      element - The element to render.
    • endRenderingPass

      public void endRenderingPass​(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, boolean forShadow)
      Description copied from class: StyleRenderer
      Called at the end of the rendering pass.
      Specified by:
      endRenderingPass in class StyleRenderer
      Parameters:
      bck - The rendering back-end.
      camera - The camera.
      forShadow - true if we are in the shadow rendering pass.