Represents the link between a JComponent and a GraphicElement.
Association between Swing components and graph elements.
Association between Swing components and graph elements.
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.
The rendering back-end.
The camera.
The element to render.
Called at the end of the rendering pass.
Called at the end of the rendering pass.
The rendering back-end.
The camera.
true if we are in the shadow rendering pass.
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.
True if some event is taking place actually.
True if some event is taking place actually.
The size in PX of components.
The size in PX of components.
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.
The rendering back-end.
The camera.
The graphic element concerned by the dynamic style change.
Called before the rendering of bulk and event elements.
Called before the rendering of bulk and event elements.
The rendering back-end.
The camera.
true if we are in the shadow rendering pass.
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()).
Render all the (visible) elements of the group.
Render all the (visible) elements of the group.
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.
The rendering back-end.
The camera.
The element to render.
Render the shadow of the element.
Render the shadow of the element.
The rendering back-end.
The camera.
The element to render.
Render the shadow of all (visible) elements of the group.
Render the shadow of all (visible) elements of the group.
Called before the whole rendering pass for all elements.
Called before the whole rendering pass for all elements.
The rendering back-end.
The camera.
true if we are in the shadow rendering pass.
The potential shadow.
The potential shadow.
The size of components.
The size of components.
The size in PX of components.
The size in PX of components.
Renderer for nodes and sprites represented as Swing components.