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

    Modifier and Type
    Method
    Description
    Returns a tooltip component for the given vertex
    getTooltip(V v, E e)
    Returns a tooltip component for the given vertex and edge.
    Returns a tooltip string for the given vertex and mouse event
  • Method Details

    • getTooltip

      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

      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

      String getTooltipText(V v, 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