public class ActivityEvent extends InputEvent
GraphicsBase
control.
GanttChart gantt = new GanttChart(); GraphicsView graphics = gantt.getGraphics(); graphics.setOnActivityChanged(evt -> handleChange(evt));
GanttChart gantt = new GanttChart(); GraphicsView graphics = gantt.getGraphics(); graphics.addEventHandler(ActivityEvent.ACTIVITY_CHANGED, evt -> handleChange(evt));
GraphicsBase.setOnActivityChange(javafx.event.EventHandler)
,
Serialized FormModifier and Type | Field and Description |
---|---|
static EventType<ActivityEvent> |
ACTIVITY_CHANGE
The parent event type of all other activity event types.
|
static EventType<ActivityEvent> |
ACTIVITY_CHANGE_FINISHED
The parent event type of all FINISHED activity event types.
|
static EventType<ActivityEvent> |
ACTIVITY_CHANGE_ONGOING
The parent event type of all ONGOING activity event types.
|
static EventType<ActivityEvent> |
ACTIVITY_CHANGE_STARTED
The parent event type of all STARTED activity event types.
|
static EventType<ActivityEvent> |
ACTIVITY_DELETED
An event type used when the user pressed the delete shortcut to delete an
activity.
|
static EventType<ActivityEvent> |
CHART_HIGH_VALUE_CHANGE_FINISHED
An event type being used when the user has finished changing the chart
high value of a
MutableHighLowChartActivity . |
static EventType<ActivityEvent> |
CHART_HIGH_VALUE_CHANGE_ONGOING
An event type being used when the user is in the process of changing the
chart high value of a
MutableHighLowChartActivity . |
static EventType<ActivityEvent> |
CHART_HIGH_VALUE_CHANGE_STARTED
An event type being used when the user has started changing the chart
high value of a
MutableHighLowChartActivity . |
static EventType<ActivityEvent> |
CHART_LOW_VALUE_CHANGE_FINISHED
An event type being used when the user has finished changing the chart
low value of a
MutableHighLowChartActivity . |
static EventType<ActivityEvent> |
CHART_LOW_VALUE_CHANGE_ONGOING
An event type being used when the user is in the process of changing the
chart low value of a
MutableHighLowChartActivity . |
static EventType<ActivityEvent> |
CHART_LOW_VALUE_CHANGE_STARTED
An event type being used when the user has started changing the chart low
value of a
MutableHighLowChartActivity . |
static EventType<ActivityEvent> |
CHART_VALUE_CHANGE_FINISHED
An event type being used when the user has finished changing the chart
value of a
MutableChartActivity . |
static EventType<ActivityEvent> |
CHART_VALUE_CHANGE_ONGOING
An event type being used when the user is in the process of changing the
chart value of a
MutableChartActivity . |
static EventType<ActivityEvent> |
CHART_VALUE_CHANGE_STARTED
An event type being used when the user has started changing the chart
value of a
MutableChartActivity . |
static EventType<ActivityEvent> |
DRAG_FINISHED
An event type being used when the user has finished dragging an activity
from one row to another and changing its start time at the same time
(diagonal drag).
|
static EventType<ActivityEvent> |
DRAG_ONGOING
An event type being used when the user is in the process of dragging an
activity from one row to another and changing its start time at the same
time (diagonal drag).
|
static EventType<ActivityEvent> |
DRAG_STARTED
An event type being used when the user has started dragging an activity
from one row to another and changing its start time at the same time
(diagonal drag).
|
static EventType<ActivityEvent> |
END_TIME_CHANGE_FINISHED
An event type used when the end time of an activity has finished
changing.
|
static EventType<ActivityEvent> |
END_TIME_CHANGE_ONGOING
An event type used when the end time of an activity is currently being
changed.
|
static EventType<ActivityEvent> |
END_TIME_CHANGE_STARTED
An event type used when the user starts changing the end time of an
activity.
|
static EventType<ActivityEvent> |
HORIZONTAL_DRAG_FINISHED
An event type being used when the user has finished dragging an activity
within its row, which means that the start and end time have both changed
at the same time.
|
static EventType<ActivityEvent> |
HORIZONTAL_DRAG_ONGOING
An event type that gets used when the user is in the process of dragging
the activity within its row, changing the start and end time at the same
time.
|
static EventType<ActivityEvent> |
HORIZONTAL_DRAG_STARTED
An event type being used when the user has started dragging an activity
within its row, which means that the start and end time will both change
at the same time.
|
static EventType<ActivityEvent> |
PERCENTAGE_CHANGE_FINISHED
An event type being used when the user has finished changing the
percentage complete value of a
MutableCompletableActivity . |
static EventType<ActivityEvent> |
PERCENTAGE_CHANGE_ONGOING
An event type being used when the user is in the process of changing the
percentage complete value of a
MutableCompletableActivity . |
static EventType<ActivityEvent> |
PERCENTAGE_CHANGE_STARTED
An event type being used when the user has started changing the
percentage complete value of a
MutableCompletableActivity . |
static EventType<ActivityEvent> |
START_TIME_CHANGE_FINISHED
An event type used when the start time of an activity has finished
changing.
|
static EventType<ActivityEvent> |
START_TIME_CHANGE_ONGOING
An event type used when the start time of an activity is currently being
changed.
|
static EventType<ActivityEvent> |
START_TIME_CHANGE_STARTED
An event type used when the user is about to change the start time of an
activity.
|
static EventType<ActivityEvent> |
VERTICAL_DRAG_FINISHED
An event type being used when the user has finished dragging an activity
from one row to another while preserving the start and end time of the
activity.
|
static EventType<ActivityEvent> |
VERTICAL_DRAG_ONGOING
An event type that gets used when the user is in the process of dragging
the activity from one row to another while preserving the start and end
time of the activity.
|
static EventType<ActivityEvent> |
VERTICAL_DRAG_STARTED
An event type being used when the user has started dragging an activity
from one row to another while preserving the start and end time of the
activity.
|
ANY
consumed, eventType, NULL_SOURCE_TARGET, target
source
Constructor and Description |
---|
ActivityEvent(ActivityRef<?> activity,
EventTarget target,
EventType<? extends ActivityEvent> eventType) |
ActivityEvent(ActivityRef<?> activity,
EventTarget target,
EventType<? extends ActivityEvent> eventType,
double oldValue) |
ActivityEvent(ActivityRef<?> activity,
EventTarget target,
EventType<? extends ActivityEvent> eventType,
Instant newTime) |
ActivityEvent(ActivityRef<?> activity,
EventTarget target,
EventType<? extends ActivityEvent> eventType,
Row<?,?,?> newRow,
TimeInterval newTimeInterval) |
ActivityEvent(ActivityRef<?> activity,
EventTarget target,
EventType<? extends ActivityEvent> eventType,
TimeInterval newInterval) |
Modifier and Type | Method and Description |
---|---|
ActivityRef<?> |
getActivityRef() |
Row<?,?,?> |
getOldRow()
Returns the parent row of an activity before the user performed a change
on it (e. g. a vertical drag).
|
Instant |
getOldTime()
Returns the end / start time of an activity before the user performed a
change on it.
|
TimeInterval |
getOldTimeInterval()
Returns the time interval of an activity before the user performed a
change on it.
|
double |
getOldValue()
Returns the value of an activity before the user performed a change on
it.
|
String |
toString() |
getEventType
clone, consume, copyFor, fireEvent, getTarget, isConsumed
getSource
public static final EventType<ActivityEvent> ACTIVITY_CHANGE
public static final EventType<ActivityEvent> ACTIVITY_CHANGE_STARTED
public static final EventType<ActivityEvent> ACTIVITY_CHANGE_ONGOING
public static final EventType<ActivityEvent> ACTIVITY_CHANGE_FINISHED
public static final EventType<ActivityEvent> ACTIVITY_DELETED
public static final EventType<ActivityEvent> START_TIME_CHANGE_STARTED
public static final EventType<ActivityEvent> START_TIME_CHANGE_FINISHED
public static final EventType<ActivityEvent> START_TIME_CHANGE_ONGOING
public static final EventType<ActivityEvent> END_TIME_CHANGE_STARTED
public static final EventType<ActivityEvent> END_TIME_CHANGE_FINISHED
public static final EventType<ActivityEvent> END_TIME_CHANGE_ONGOING
public static final EventType<ActivityEvent> HORIZONTAL_DRAG_STARTED
public static final EventType<ActivityEvent> HORIZONTAL_DRAG_ONGOING
public static final EventType<ActivityEvent> HORIZONTAL_DRAG_FINISHED
public static final EventType<ActivityEvent> VERTICAL_DRAG_STARTED
public static final EventType<ActivityEvent> VERTICAL_DRAG_ONGOING
public static final EventType<ActivityEvent> VERTICAL_DRAG_FINISHED
public static final EventType<ActivityEvent> DRAG_STARTED
public static final EventType<ActivityEvent> DRAG_ONGOING
public static final EventType<ActivityEvent> DRAG_FINISHED
public static final EventType<ActivityEvent> PERCENTAGE_CHANGE_STARTED
MutableCompletableActivity
.public static final EventType<ActivityEvent> PERCENTAGE_CHANGE_FINISHED
MutableCompletableActivity
.public static final EventType<ActivityEvent> PERCENTAGE_CHANGE_ONGOING
MutableCompletableActivity
.public static final EventType<ActivityEvent> CHART_VALUE_CHANGE_STARTED
MutableChartActivity
.public static final EventType<ActivityEvent> CHART_VALUE_CHANGE_FINISHED
MutableChartActivity
.public static final EventType<ActivityEvent> CHART_VALUE_CHANGE_ONGOING
MutableChartActivity
.public static final EventType<ActivityEvent> CHART_HIGH_VALUE_CHANGE_STARTED
MutableHighLowChartActivity
.public static final EventType<ActivityEvent> CHART_HIGH_VALUE_CHANGE_FINISHED
MutableHighLowChartActivity
.public static final EventType<ActivityEvent> CHART_HIGH_VALUE_CHANGE_ONGOING
MutableHighLowChartActivity
.public static final EventType<ActivityEvent> CHART_LOW_VALUE_CHANGE_STARTED
MutableHighLowChartActivity
.public static final EventType<ActivityEvent> CHART_LOW_VALUE_CHANGE_FINISHED
MutableHighLowChartActivity
.public static final EventType<ActivityEvent> CHART_LOW_VALUE_CHANGE_ONGOING
MutableHighLowChartActivity
.public ActivityEvent(ActivityRef<?> activity, EventTarget target, EventType<? extends ActivityEvent> eventType)
public ActivityEvent(ActivityRef<?> activity, EventTarget target, EventType<? extends ActivityEvent> eventType, Instant newTime)
public ActivityEvent(ActivityRef<?> activity, EventTarget target, EventType<? extends ActivityEvent> eventType, TimeInterval newInterval)
public ActivityEvent(ActivityRef<?> activity, EventTarget target, EventType<? extends ActivityEvent> eventType, Row<?,?,?> newRow, TimeInterval newTimeInterval)
public ActivityEvent(ActivityRef<?> activity, EventTarget target, EventType<? extends ActivityEvent> eventType, double oldValue)
public final ActivityRef<?> getActivityRef()
public final Instant getOldTime()
public final TimeInterval getOldTimeInterval()
public final Row<?,?,?> getOldRow()
public final double getOldValue()
public final String toString()
toString
in class EventObject
Copyright © 2014 Dirk Lemmermann Software & Consulting. All rights reserved.