org.graphstream.ui.j2dviewer.renderer

NodeRenderer

class NodeRenderer extends StyleRenderer

Renderer for nodes. This is a completely generic part, all is done in the various shapes.

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

Instance Constructors

  1. new NodeRenderer(styleGroup: StyleGroup)

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def elementInvisible(bck: Backend, camera: Camera, element: GraphicElement): Unit

    Called during rendering in place of #renderElement(Graphics2D, Camera, GraphicElement) to signal that the given element is not inside the view.

    Called during rendering in place of #renderElement(Graphics2D, Camera, 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.

    bck

    The rendering back-end.

    camera

    The camera.

    element

    The element to render.

    Attributes
    protected
    Definition Classes
    NodeRendererStyleRenderer
  9. def endRenderingPass(bck: Backend, camera: Camera, forShadow: Boolean): Unit

    Called at the end of the rendering pass.

    Called at the end of the rendering pass.

    bck

    The rendering back-end.

    camera

    The camera.

    forShadow

    true if we are in the shadow rendering pass.

    Attributes
    protected
    Definition Classes
    StyleRenderer
  10. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def getOrSetAreaSkeleton(element: GraphicElement): AreaSkeleton

    Retrieve the area shared informations stored on the given node element.

    Retrieve the area shared informations stored on the given node element. If such information is not yet present, add it to the element.

    element

    The element to look for.

    returns

    The node information.

    Attributes
    protected
    Exceptions thrown
    RuntimeException

    if the element is not a node.

  15. val group: StyleGroup

    Definition Classes
    StyleRenderer
  16. var hadEvents: Boolean

    True if some event is taking place actually.

    True if some event is taking place actually.

    Attributes
    protected
    Definition Classes
    StyleRenderer
  17. def hashCode(): Int

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

    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  22. def pushDynStyle(bck: Backend, camera: Camera, element: GraphicElement): Unit

    Called before the rendering of elements on dynamic styles.

    Called before the rendering of elements on dynamic styles. This must only change the style properties that can change dynamically.

    bck

    The rendering back-end.

    camera

    The camera.

    element

    The graphic element concerned by the dynamic style change.

    Attributes
    protected
    Definition Classes
    NodeRendererStyleRenderer
  23. def pushStyle(bck: Backend, camera: Camera, forShadow: Boolean): Unit

    Called before the rendering of bulk and event elements.

    Called before the rendering of bulk and event elements.

    bck

    The rendering back-end.

    camera

    The camera.

    forShadow

    true if we are in the shadow rendering pass.

    Attributes
    protected
    Definition Classes
    NodeRendererStyleRenderer
  24. def render(bck: Backend, camera: Camera, shadow: Boolean, render: (Backend, Camera, GraphicElement) ⇒ Unit): Unit

    Main rendering method.

    Main rendering method.

    This works in three phases: - draw all "bulk" elements using renderElement() - draw all "dynamic" elements using renderElement(). - draw all "event" elements using renderElement().

    Before drawing, the setupRenderingPass() and pushStyle() methods are called. The phase 1 is run. Then for each dynamic element in phase 2, before calling renderElement, for each element the pushDynStyle() method is called. Then for each element modified by an event, in phase 3, the before drawing the element, the event is enabled, then pushStyle() is called, then the element is drawn, and finally the event is disabled.

    This rendering pass is made both for shadows and for regular drawing. The shadow and render arguments allow to specify that we are rendering for shadow, and what element rendering method to use (renderElement() or renderShadow()).

    Attributes
    protected
    Definition Classes
    StyleRenderer
  25. def render(bck: Backend, camera: Camera): Unit

    Render all the (visible) elements of the group.

    Render all the (visible) elements of the group.

    Definition Classes
    StyleRenderer
  26. def renderElement(bck: Backend, camera: Camera, element: GraphicElement): Unit

    Render a single element knowing the style is already prepared.

    Render a single element knowing the style is already prepared. Elements that are not visible are not drawn.

    bck

    The rendering back-end.

    camera

    The camera.

    element

    The element to render.

    Attributes
    protected
    Definition Classes
    NodeRendererStyleRenderer
  27. def renderShadow(bck: Backend, camera: Camera, element: GraphicElement): Unit

    Render the shadow of the element.

    Render the shadow of the element.

    bck

    The rendering back-end.

    camera

    The camera.

    element

    The element to render.

    Attributes
    protected
    Definition Classes
    NodeRendererStyleRenderer
  28. def renderShadow(bck: Backend, camera: Camera): Unit

    Render the shadow of all (visible) elements of the group.

    Render the shadow of all (visible) elements of the group.

    Definition Classes
    StyleRenderer
  29. def setupRenderingPass(bck: Backend, camera: Camera, forShadow: Boolean): Unit

    Called before the whole rendering pass for all elements.

    Called before the whole rendering pass for all elements.

    bck

    The rendering back-end.

    camera

    The camera.

    forShadow

    true if we are in the shadow rendering pass.

    Attributes
    protected
    Definition Classes
    NodeRendererStyleRenderer
  30. var shape: Shape

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

    Definition Classes
    AnyRef
  32. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from StyleRenderer

Inherited from SwingElementRenderer

Inherited from AnyRef

Inherited from Any

Ungrouped