org.graphstream.ui.j2dviewer.renderer

SpriteRenderer

class SpriteRenderer extends StyleRenderer

Linear Supertypes
StyleRenderer, SwingElementRenderer, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. SpriteRenderer
  2. StyleRenderer
  3. SwingElementRenderer
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SpriteRenderer (styleGroup: StyleGroup)

Value Members

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

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

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

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

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

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def clone (): AnyRef

    Attributes
    protected[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
    SpriteRendererStyleRenderer
  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. def eq (arg0: AnyRef): Boolean

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  14. def getOrSetSpriteInfo (element: GraphicElement): NodeInfo

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

    Retrieve the node 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
  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. def isInstanceOf [T0] : Boolean

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

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

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

    Attributes
    final
    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
    SpriteRendererStyleRenderer
  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
    SpriteRendererStyleRenderer
  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
    SpriteRendererStyleRenderer
  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
    SpriteRendererStyleRenderer
  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
    SpriteRendererStyleRenderer
  30. var shape : Shape

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

    Attributes
    final
    Definition Classes
    AnyRef
  32. def toString (): String

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from StyleRenderer

Inherited from SwingElementRenderer

Inherited from AnyRef

Inherited from Any