Class CachingEdgeRenderer<V,​E>

    • Field Detail

      • edgeShapeMap

        protected java.util.Map<E,​java.awt.Shape> edgeShapeMap
      • dirtyEdges

        protected java.util.Set<E> dirtyEdges
    • Method Detail

      • drawSimpleEdge

        protected void drawSimpleEdge​(RenderContext<V,​E> rc,
                                      Layout<V,​E> layout,
                                      E e)
        Draws the edge e, whose endpoints are at (x1,y1) and (x2,y2), on the graphics context g. The Shape provided by the EdgeShapeFunction instance is scaled in the x-direction so that its width is equal to the distance between (x1,y1) and (x2,y2).
        Overrides:
        drawSimpleEdge in class BasicEdgeRenderer<V,​E>
        Parameters:
        rc - the render context used for rendering the edge
        layout - the layout instance which provides the edge's endpoints' coordinates
        e - the edge to be drawn
      • stateChanged

        public void stateChanged​(javax.swing.event.ChangeEvent evt)
        Specified by:
        stateChanged in interface javax.swing.event.ChangeListener