Class BasicVertexRenderer<V,​E>

    • Constructor Detail

      • BasicVertexRenderer

        public BasicVertexRenderer()
    • Method Detail

      • prepareFinalVertexShape

        protected java.awt.Shape prepareFinalVertexShape​(RenderContext<V,​E> rc,
                                                         V v,
                                                         Layout<V,​E> layout,
                                                         int[] coords)
        Returns the vertex shape in view coordinates.
        Parameters:
        rc - the render context used for rendering the vertex
        v - the vertex whose shape is to be returned
        layout - the layout algorithm that provides coordinates for the vertex
        coords - the x and y view coordinates
        Returns:
        the vertex shape in view coordinates
      • paintIconForVertex

        protected void paintIconForVertex​(RenderContext<V,​E> rc,
                                          V v,
                                          Layout<V,​E> layout)
        Paint v's icon on g at (x,y).
        Parameters:
        rc - the render context used for rendering the vertex
        v - the vertex to be painted
        layout - the layout algorithm that provides coordinates for the vertex
      • vertexHit

        protected boolean vertexHit​(RenderContext<V,​E> rc,
                                    java.awt.Shape s)
      • paintShapeForVertex

        protected void paintShapeForVertex​(RenderContext<V,​E> rc,
                                           V v,
                                           java.awt.Shape shape)