Class VisualGraphEdgeSatelliteRenderer<V extends VisualVertex,​E extends VisualEdge<V>>

  • All Implemented Interfaces:
    edu.uci.ics.jung.visualization.renderers.Renderer.Edge<V,​E>

    public class VisualGraphEdgeSatelliteRenderer<V extends VisualVertex,​E extends VisualEdge<V>>
    extends VisualEdgeRenderer<V,​E>
    A renderer designed to override default edge rendering to NOT paint emphasizing effects. We do this because space is limited in the satellite and because this rendering can take excess processing time.
    • Constructor Detail

      • VisualGraphEdgeSatelliteRenderer

        public VisualGraphEdgeSatelliteRenderer​(VisualEdgeRenderer<V,​E> delegate)
    • Method Detail

      • getEdgeShape

        public java.awt.Shape getEdgeShape​(edu.uci.ics.jung.visualization.RenderContext<V,​E> rc,
                                           edu.uci.ics.jung.graph.Graph<V,​E> graph,
                                           E e,
                                           float x1,
                                           float y1,
                                           float x2,
                                           float y2,
                                           boolean isLoop,
                                           java.awt.Shape vertexShape)
        Description copied from class: VisualEdgeRenderer
        Returns the edge shape for the given points
        Specified by:
        getEdgeShape in class VisualEdgeRenderer<V extends VisualVertex,​E extends VisualEdge<V>>
        Parameters:
        rc - the render context for the graph
        graph - the graph
        e - the edge to shape
        x1 - the start vertex point x
        y1 - the start vertex point y
        x2 - the end vertex point x
        y2 - the end vertex point y
        isLoop - true if the start == end, which is a self-loop
        vertexShape - the vertex shape (used in the case of a loop to draw a circle from the shape to itself)
        Returns:
        the edge shape