Search in sources :

Example 26 with EventType

use of javafx.event.EventType in project Board-Instrumentation-Framework by intel.

the class RadialMenu method fireMenuEvent.

public void fireMenuEvent(final MenuEvent EVENT) {
    fireEvent(EVENT);
    final EventType TYPE = EVENT.getEventType();
    final EventHandler<MenuEvent> HANDLER;
    if (MenuEvent.MENU_OPEN_STARTED == TYPE) {
        HANDLER = getOnMenuOpenStarted();
    } else if (MenuEvent.MENU_OPEN_FINISHED == TYPE) {
        HANDLER = getOnMenuOpenFinished();
    } else if (MenuEvent.MENU_CLOSE_STARTED == TYPE) {
        HANDLER = getOnMenuCloseStarted();
    } else if (MenuEvent.MENU_CLOSE_FINISHED == TYPE) {
        HANDLER = getOnMenuCloseFinished();
    } else {
        HANDLER = null;
    }
    if (HANDLER != null) {
        HANDLER.handle(EVENT);
    }
}
Also used : EventType(javafx.event.EventType)

Aggregations

EventType (javafx.event.EventType)26 Point2D (javafx.geometry.Point2D)7 Marker (eu.hansolo.enzo.common.Marker)4 Label (javafx.scene.control.Label)4 Text (javafx.scene.text.Text)4 EventHandler (javafx.event.EventHandler)3 Circle (javafx.scene.shape.Circle)3 Rectangle (javafx.scene.shape.Rectangle)3 TextFlow (javafx.scene.text.TextFlow)3 Timeline (javafx.animation.Timeline)2 Node (javafx.scene.Node)2 UnmodifiableListSet (com.sun.javafx.collections.UnmodifiableListSet)1 Direction (com.sun.javafx.scene.traversal.Direction)1 ArrayDeque (java.util.ArrayDeque)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 Locale (java.util.Locale)1 Queue (java.util.Queue)1 Set (java.util.Set)1 BiConsumer (java.util.function.BiConsumer)1