org.graphstream.ui.j2dviewer.renderer

StyleRenderer

abstract class StyleRenderer extends SwingElementRenderer

Base class for style renderers.

The main rendering loop is defined here.

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

Instance Constructors

  1. new StyleRenderer(group: StyleGroup)

Abstract Value Members

  1. abstract 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
  2. abstract 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
  3. abstract 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
  4. abstract 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
  5. abstract 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
  6. abstract 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

Concrete 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 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
  9. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  13. val group: StyleGroup

  14. var hadEvents: Boolean

    True if some event is taking place actually.

    True if some event is taking place actually.

    Attributes
    protected
  15. def hashCode(): Int

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

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

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

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

    Definition Classes
    AnyRef
  20. 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
  21. def render(bck: Backend, camera: Camera): Unit

    Render all the (visible) elements of the group.

  22. def renderShadow(bck: Backend, camera: Camera): Unit

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

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from SwingElementRenderer

Inherited from AnyRef

Inherited from Any

Ungrouped