Interface VertexTooltipProvider<V,​E>

  • Type Parameters:
    V - the vertex type
    E - the edge type

    public interface VertexTooltipProvider<V,​E>
    Creates tooltips for a given vertex.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      javax.swing.JComponent getTooltip​(V v)
      Returns a tooltip component for the given vertex
      javax.swing.JComponent getTooltip​(V v, E e)
      Returns a tooltip component for the given vertex and edge.
      java.lang.String getTooltipText​(V v, java.awt.event.MouseEvent e)
      Returns a tooltip string for the given vertex and mouse event
    • Method Detail

      • getTooltip

        javax.swing.JComponent getTooltip​(V v)
        Returns a tooltip component for the given vertex

        This is used when the vertex is scaled too far for the user to see individual vertex subcomponents.

        Parameters:
        v - the vertex
        Returns:
        a tooltip component
      • getTooltip

        javax.swing.JComponent getTooltip​(V v,
                                          E e)
        Returns a tooltip component for the given vertex and edge. This is used to create an edge tooltip, allowing for vertex data to appear in the tip.
        Parameters:
        v - the vertex
        e - the edge for
        Returns:
        a tooltip component
      • getTooltipText

        java.lang.String getTooltipText​(V v,
                                        java.awt.event.MouseEvent e)
        Returns a tooltip string for the given vertex and mouse event
        Parameters:
        v - the vertex
        e - the mouse event
        Returns:
        the tooltip text