public class EdgeRenderer extends ElementRenderer
Modifier and Type | Field and Description |
---|---|
protected double |
arrowLength |
protected double |
arrowWidth |
protected Line2D |
shape |
protected double |
width |
hadEvents, textColor, textFont, textSize
Constructor and Description |
---|
EdgeRenderer() |
Modifier and Type | Method and Description |
---|---|
protected void |
elementInvisible(StyleGroup group,
Graphics2D g,
Camera camera,
GraphicElement element)
Called during rendering in place of
ElementRenderer.renderElement(StyleGroup, Graphics2D, Camera, GraphicElement)
to signal that the given element is not inside the view. |
protected double |
evalEllipseRadius(GraphicEdge edge,
GraphicNode node0,
GraphicNode node1,
Camera camera) |
protected void |
pushDynStyle(StyleGroup group,
Graphics2D g,
Camera camera,
GraphicElement element)
Called before the rendering of elements on dynamic styles.
|
protected void |
pushStyle(StyleGroup group,
Graphics2D g,
Camera camera)
Called before the rendering of bulk and event elements.
|
protected void |
renderArrow(StyleGroup group,
Graphics2D g,
Camera camera,
GraphicEdge edge) |
protected void |
renderElement(StyleGroup group,
Graphics2D g,
Camera camera,
GraphicElement element)
Render a single element knowing the style is already prepared.
|
protected void |
setupRenderingPass(StyleGroup group,
Graphics2D g,
Camera camera)
Called before the whole rendering pass for all elements.
|
configureText, interpolateColor, render, renderText
protected double width
protected double arrowLength
protected double arrowWidth
public EdgeRenderer()
protected void setupRenderingPass(StyleGroup group, Graphics2D g, Camera camera)
ElementRenderer
setupRenderingPass
in class ElementRenderer
g
- The Swing graphics.camera
- The camera.protected void pushDynStyle(StyleGroup group, Graphics2D g, Camera camera, GraphicElement element)
ElementRenderer
pushDynStyle
in class ElementRenderer
g
- The Swing graphics.camera
- The camera.element
- The graphic element concerned by the dynamic style change.protected void pushStyle(StyleGroup group, Graphics2D g, Camera camera)
ElementRenderer
pushStyle
in class ElementRenderer
g
- The Swing graphics.camera
- The camera.protected void elementInvisible(StyleGroup group, Graphics2D g, Camera camera, GraphicElement element)
ElementRenderer
ElementRenderer.renderElement(StyleGroup, 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.elementInvisible
in class ElementRenderer
g
- The Swing graphics.camera
- The camera.element
- The element to render.protected void renderElement(StyleGroup group, Graphics2D g, Camera camera, GraphicElement element)
ElementRenderer
renderElement
in class ElementRenderer
g
- The Swing graphics.camera
- The camera.element
- The element to render.protected void renderArrow(StyleGroup group, Graphics2D g, Camera camera, GraphicEdge edge)
protected double evalEllipseRadius(GraphicEdge edge, GraphicNode node0, GraphicNode node1, Camera camera)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses