org.graphstream.ui.j2dviewer.renderer

JComponentRenderer

class JComponentRenderer extends StyleRenderer

Renderer for nodes and sprites represented as Swing components.

Linear Supertypes
StyleRenderer, SwingElementRenderer, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JComponentRenderer
  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 JComponentRenderer(styleGroup: StyleGroup, mainRenderer: J2DGraphRenderer)

Type Members

  1. class ButtonComponentElement extends ComponentElement with ActionListener

  2. abstract class ComponentElement extends JPanel

    Represents the link between a JComponent and a GraphicElement.

  3. class TextFieldComponentElement extends ComponentElement with ActionListener

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. var antialiasSetting: AnyRef

    Attributes
    protected
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def checkStyle(camera: Camera, ce: ComponentElement, force: Boolean): Unit

    Attributes
    protected
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. val compToElement: HashMap[JComponent, ComponentElement]

    Association between Swing components and graph elements.

    Association between Swing components and graph elements.

    Attributes
    protected
  11. 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
    JComponentRendererStyleRenderer
  12. 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
    JComponentRendererStyleRenderer
  13. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  17. def getOrEquipWithJComponent(element: GraphicElement): ComponentElement

    Get the pair (swing component, graph element) corresponding to the given element.

    Get the pair (swing component, graph element) corresponding to the given element. If the element is not yet associated with a Swing component, the binding is done.

    Attributes
    protected
  18. val group: StyleGroup

    Definition Classes
    StyleRenderer
  19. var hadEvents: Boolean

    True if some event is taking place actually.

    True if some event is taking place actually.

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

    Definition Classes
    AnyRef → Any
  21. var height: Int

    The size in PX of components.

    The size in PX of components.

    Attributes
    protected
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. val mainRenderer: J2DGraphRenderer

  24. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  27. 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
    JComponentRendererStyleRenderer
  28. 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
    JComponentRendererStyleRenderer
  29. 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
  30. 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
  31. 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
    JComponentRendererStyleRenderer
  32. 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
    JComponentRendererStyleRenderer
  33. 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
  34. 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
    JComponentRendererStyleRenderer
  35. var shadow: SquareShape

    The potential shadow.

    The potential shadow.

    Attributes
    protected
  36. var size: Values

    The size of components.

    The size of components.

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

    Definition Classes
    AnyRef
  38. def toString(): String

    Definition Classes
    AnyRef → Any
  39. def unequipElement(element: GraphicElement): Unit

  40. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  43. var width: Int

    The size in PX of components.

    The size in PX of components.

    Attributes
    protected

Inherited from StyleRenderer

Inherited from SwingElementRenderer

Inherited from AnyRef

Inherited from Any

Ungrouped