Class SwingTreeMapToolTip<N,​Row,​Column>

  • Type Parameters:
    N -
    All Implemented Interfaces:
    TreeMapToolTip<N,​Row,​Column,​java.awt.Color,​java.awt.Font>

    public class SwingTreeMapToolTip<N,​Row,​Column>
    extends AbstractTreeMapToolTip<N,​Row,​Column,​javax.swing.JComponent,​java.awt.Color,​java.awt.Font>
    Default implementation of a tooltip using JidePopup as a container.
    • Constructor Detail

      • SwingTreeMapToolTip

        public SwingTreeMapToolTip​(TreeMapView<javax.swing.JComponent,​N,​Row,​Column,​java.awt.Color,​java.awt.Font> view)
    • Method Detail

      • setRedispatchMouseEvent

        public void setRedispatchMouseEvent​(boolean redispatchMouseEvent)
        Controls whether the mouse event on the tooltip should be redispatched to the TreeMapView.
        Parameters:
        redispatchMouseEvent - true to redispatch all the mouse events, false otherwise.
      • setBorder

        public void setBorder​(javax.swing.border.Border border)
      • setVisible

        public void setVisible​(boolean visible)
      • setSize

        public void setSize​(java.awt.Dimension d)
      • getWidth

        public int getWidth()
      • getHeight

        public int getHeight()
      • getNativeComponent

        public javax.swing.JComponent getNativeComponent()
      • getPreferredLocation

        public java.awt.Point getPreferredLocation()
        Gets the preferred location of the tooltip relative to the TreeMapView.
        Returns:
        the preferred location
      • setType

        public void setType​(TreeMapToolTip.ToolTipType type)
        Sets the type of the tooltip.
        Parameters:
        type - the tooltip type.
      • showNode

        public void showNode​(N node)
        Description copied from interface: TreeMapToolTip
        Shows the current node that the tooltip should display information about.
        Specified by:
        showNode in interface TreeMapToolTip<N,​Row,​Column,​java.awt.Color,​java.awt.Font>
        Overrides:
        showNode in class AbstractTreeMapToolTip<N,​Row,​Column,​javax.swing.JComponent,​java.awt.Color,​java.awt.Font>
        Parameters:
        node - the node to dislay information about.