org.graphstream.ui.j2dviewer

J2DGraphRenderer

class J2DGraphRenderer extends GraphRenderer with StyleGroupListener

2D renderer.

The role of this class is to equip each style group with a specific renderer and to call these renderer to redraw the graph when needed. The renderers then equip each node, edge and sprite with a skeleton that gives is main geometry, then selects a shape according to the group style. The shape will be "applied" to each element to draw in the group. The shape will be moved and scaled according to the skeleton.

A render pass begins by using the camera instance to set up the projection (allows to pass from graph units to pixels, make a rotation a zoom or a translation) and render each style group once for the shadows, and once for the real rendering in Z order.

This class also handles a "selection" object that represents the current selection and renders it.

The renderer uses a backend so that it can adapt to multiple rendering targets (here Swing and OpenGL). As the shapes are finally responsible for drawing the graph, the backend is also responsible for the shape creation.

Linear Supertypes
StyleGroupListener, GraphRenderer, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. J2DGraphRenderer
  2. StyleGroupListener
  3. GraphRenderer
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new J2DGraphRenderer()

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def allNodesOrSpritesIn(x1: Double, y1: Double, x2: Double, y2: Double): ArrayList[GraphicElement]

    Definition Classes
    J2DGraphRenderer → GraphRenderer
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. var backRenderer: LayerRenderer

    The layer renderer for the background (under the graph), can be null.

    The layer renderer for the background (under the graph), can be null.

    Attributes
    protected
  9. var backend: Backend

    The rendering backend.

    The rendering backend.

    Attributes
    protected
  10. def beginSelectionAt(x: Double, y: Double): Unit

    Definition Classes
    J2DGraphRenderer → GraphRenderer
  11. var camera: Camera

    Set the view on the view port defined by the metrics.

    Set the view on the view port defined by the metrics.

    Attributes
    protected
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def close(): Unit

    Definition Classes
    J2DGraphRenderer → GraphRenderer
  14. def elementStyleChanged(element: Element, oldStyle: StyleGroup, style: StyleGroup): Unit

    Definition Classes
    J2DGraphRenderer → StyleGroupListener
  15. def endFrame(): Unit

    Attributes
    protected
  16. def endSelectionAt(x: Double, y: Double): Unit

    Definition Classes
    J2DGraphRenderer → GraphRenderer
  17. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  20. def findNodeOrSpriteAt(x: Double, y: Double): GraphicElement

    Definition Classes
    J2DGraphRenderer → GraphRenderer
  21. var foreRenderer: LayerRenderer

    The layer renderer for the foreground (above the graph), can be null.

    The layer renderer for the foreground (above the graph), can be null.

    Attributes
    protected
  22. var fpsLogger: FPSLogger

    Attributes
    protected
  23. def getCamera(): swingViewer.util.Camera

    Definition Classes
    J2DGraphRenderer → GraphRenderer
  24. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  25. def getStyleRenderer(element: GraphicElement): StyleRenderer

    Get (and assign if needed) the style renderer associated with the style group of the element.

    Get (and assign if needed) the style renderer associated with the style group of the element.

    Attributes
    protected
  26. def getStyleRenderer(style: StyleGroup): StyleRenderer

    Get (and assign if needed) a style renderer to a style group.

    Get (and assign if needed) a style renderer to a style group. The renderer will be reused then.

    Attributes
    protected
  27. def getStyleRenderer(graph: GraphicGraph): GraphBackgroundRenderer

    Get (and assign if needed) a style renderer to the graphic graph.

    Get (and assign if needed) a style renderer to the graphic graph. The renderer will be reused then.

    Attributes
    protected
  28. var graph: GraphicGraph

    The graph to render.

    The graph to render.

    Attributes
    protected
  29. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  30. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  31. def moveElementAtPx(element: GraphicElement, x: Double, y: Double): Unit

    Definition Classes
    J2DGraphRenderer → GraphRenderer
  32. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  35. def open(graph: GraphicGraph, drawingSurface: Container): Unit

    Definition Classes
    J2DGraphRenderer → GraphRenderer
  36. def removeRenderers(): Unit

    Remove all the registered renderers from the graphic graph.

    Remove all the registered renderers from the graphic graph.

    Attributes
    protected
  37. def render(g: Graphics2D, x: Int, y: Int, width: Int, height: Int): Unit

    Definition Classes
    J2DGraphRenderer → GraphRenderer
  38. def renderBackLayer(): Unit

    Attributes
    protected
  39. def renderForeLayer(): Unit

    Attributes
    protected
  40. def renderLayer(renderer: LayerRenderer): Unit

    Render a back or from layer.

    Render a back or from layer.

    Attributes
    protected
  41. def renderingSurface: Container

  42. def screenshot(filename: String, width: Int, height: Int): Unit

    Definition Classes
    J2DGraphRenderer → GraphRenderer
  43. val selection: Selection

    The current selection.

    The current selection.

    Attributes
    protected
  44. def selectionGrowsAt(x: Double, y: Double): Unit

    Definition Classes
    J2DGraphRenderer → GraphRenderer
  45. def setBackLayerRenderer(renderer: LayerRenderer): Unit

    Definition Classes
    J2DGraphRenderer → GraphRenderer
  46. def setForeLayoutRenderer(renderer: LayerRenderer): Unit

    Definition Classes
    J2DGraphRenderer → GraphRenderer
  47. def setupGraphics(): Unit

    Setup the graphic pipeline before drawing.

    Setup the graphic pipeline before drawing.

    Attributes
    protected
  48. def startFrame(): Unit

    Attributes
    protected
  49. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  50. def toString(): String

    Definition Classes
    AnyRef → Any
  51. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  52. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  53. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from StyleGroupListener

Inherited from GraphRenderer

Inherited from AnyRef

Inherited from Any

Ungrouped