if (actionType == ActionType.MOUSE_PRESSED) {
component.mousePressed(modifiers, position);
} else if (actionType == ActionType.MOUSE_RELEASED) {
component.mouseReleased(modifiers, position);
} else if (numberOfClicks == 0 || actionType == ActionType.HOVER)
component.hover(hoverDelay);
else
component.click(numberOfClicks, modifiers, position);
}
public int getClickCount() {