Class PopupRegulator<V,​E>

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

    public class PopupRegulator<V,​E>
    extends java.lang.Object
    A class to control popups for graph clients, bypassing Java's default tool tip mechanism
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isPopupShowing()
      Returns true if this class's popup is showing
      void setPopupDelay​(int delayMs)
      Sets the time between mouse movements to wait before showing this class's popup
      void setPopupsVisible​(boolean visible)
      Sets the enablement of this class's popup
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PopupRegulator

        public PopupRegulator​(PopupSource<V,​E> popupSupplier)
    • Method Detail

      • isPopupShowing

        public boolean isPopupShowing()
        Returns true if this class's popup is showing
        Returns:
        true if this class's popup is showing
      • setPopupDelay

        public void setPopupDelay​(int delayMs)
        Sets the time between mouse movements to wait before showing this class's popup
        Parameters:
        delayMs - the delay
      • setPopupsVisible

        public void setPopupsVisible​(boolean visible)
        Sets the enablement of this class's popup
        Parameters:
        visible - true to have popups enabled