Class ActivityEvent

All Implemented Interfaces:
Serializable, Cloneable

public class ActivityEvent
extends InputEvent
Activity events are being fired whenever the user makes a change to an activity in the graphics view. Event handlers for the event types listed in this class can be registered on the GraphicsBase control.

Code Example 1

 GanttChart gantt = new GanttChart();
 GraphicsView graphics = gantt.getGraphics();
 graphics.setOnActivityChanged(evt -> handleChange(evt));
 

Code Example 2

 GanttChart gantt = new GanttChart();
 GraphicsView graphics = gantt.getGraphics();
 graphics.addEventHandler(ActivityEvent.ACTIVITY_CHANGED,
                evt -> handleChange(evt));
 
Since:
1.0
See Also:
GraphicsBase.setOnActivityChange(javafx.event.EventHandler), Serialized Form