src/main/java/com/spinyowl/legui/component/misc/listener/component/TooltipCursorEnterListener.java
@Override
  public void process(CursorEnterEvent event) {
    Component component = event.getTargetComponent();
    Tooltip tooltip = component.getTooltip();
    if (tooltip != null) {
      if (event.isEntered()) {
        event.getFrame().getTooltipLayer().add(tooltip);
      } else {
        event.getFrame().getTooltipLayer().remove(tooltip);
      }
    }
  }
/**
   * Used to process {@link CursorEnterEvent}.
   *
   * @param event event to process.
   */
Used to process  CursorEnterEvent.
@param event event to process.
Used to process CursorEnterEvent . @param event event to process .
@Override
  public void process(CursorEnterEvent event) {
    Component component = event.getTargetComponent();
    Tooltip tooltip = component.getTooltip();
    if (tooltip != null) {
      if (event.isEntered()) {
        event.getFrame().getTooltipLayer().add(tooltip);
      } else {
        event.getFrame().getTooltipLayer().remove(tooltip);
      }
    }
  }
@ Override public void process ( CursorEnterEvent event ) { Component component = event . getTargetComponent ( ) ; Tooltip tooltip = component . getTooltip ( ) ; if ( tooltip != null ) { if ( event . isEntered ( ) ) { event . getFrame ( ) . getTooltipLayer ( ) . add ( tooltip ) ; } else { event . getFrame ( ) . getTooltipLayer ( ) . remove ( tooltip ) ; } } }
Used to process {@link CursorEnterEvent}.
Used to process { @link CursorEnterEvent } .