public class ActivityEvent
extends javafx.scene.input.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 javafx.event.EventType<ActivityEvent> |
ACTIVITY_CHANGE
The parent event type of all other activity event types.
|
static javafx.event.EventType<ActivityEvent> |
ACTIVITY_CHANGE_FINISHED
The parent event type of all FINISHED activity event types.
|
static javafx.event.EventType<ActivityEvent> |
ACTIVITY_CHANGE_ONGOING
The parent event type of all ONGOING activity event types.
|
static javafx.event.EventType<ActivityEvent> |
ACTIVITY_CHANGE_STARTED
The parent event type of all STARTED activity event types.
|
static javafx.event.EventType<ActivityEvent> |
ACTIVITY_DELETED
An event type used when the user pressed the delete shortcut to delete an
activity.
|
static javafx.event.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 javafx.event.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 javafx.event.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 javafx.event.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 javafx.event.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 javafx.event.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 javafx.event.EventType<ActivityEvent> |
CHART_VALUE_CHANGE_FINISHED
An event type being used when the user has finished changing the chart
value of a
MutableChartActivity . |
static javafx.event.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 javafx.event.EventType<ActivityEvent> |
CHART_VALUE_CHANGE_STARTED
An event type being used when the user has started changing the chart
value of a
MutableChartActivity . |
static javafx.event.EventType<ActivityEvent> |
DRAG_DONE
An event type being used when the user has finished dragging an activity.
|
static javafx.event.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 javafx.event.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 javafx.event.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 javafx.event.EventType<ActivityEvent> |
END_TIME_CHANGE_FINISHED
An event type used when the end time of an activity has finished
changing.
|
static javafx.event.EventType<ActivityEvent> |
END_TIME_CHANGE_ONGOING
An event type used when the end time of an activity is currently being
changed.
|
static javafx.event.EventType<ActivityEvent> |
END_TIME_CHANGE_STARTED
An event type used when the user starts changing the end time of an
activity.
|
static javafx.event.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 javafx.event.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 javafx.event.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 javafx.event.EventType<ActivityEvent> |
PERCENTAGE_CHANGE_FINISHED
An event type being used when the user has finished changing the
percentage complete value of a
MutableCompletableActivity . |
static javafx.event.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 javafx.event.EventType<ActivityEvent> |
PERCENTAGE_CHANGE_STARTED
An event type being used when the user has started changing the
percentage complete value of a
MutableCompletableActivity . |
static javafx.event.EventType<ActivityEvent> |
START_TIME_CHANGE_FINISHED
An event type used when the start time of an activity has finished
changing.
|
static javafx.event.EventType<ActivityEvent> |
START_TIME_CHANGE_ONGOING
An event type used when the start time of an activity is currently being
changed.
|
static javafx.event.EventType<ActivityEvent> |
START_TIME_CHANGE_STARTED
An event type used when the user is about to change the start time of an
activity.
|
static javafx.event.EventType<ActivityEvent> |
VERTICAL_DRAG_DONE
An event type being used when the user has finished dragging an activity.
|
static javafx.event.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 javafx.event.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 javafx.event.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.
|
source
Constructor and Description |
---|
ActivityEvent(ActivityRef<?> activity,
javafx.event.EventTarget target,
javafx.event.EventType<? extends ActivityEvent> eventType) |
ActivityEvent(ActivityRef<?> activity,
javafx.event.EventTarget target,
javafx.event.EventType<? extends ActivityEvent> eventType,
double oldValue) |
ActivityEvent(ActivityRef<?> activity,
javafx.event.EventTarget target,
javafx.event.EventType<? extends ActivityEvent> eventType,
Instant oldTime) |
ActivityEvent(ActivityRef<?> activity,
javafx.event.EventTarget target,
javafx.event.EventType<? extends ActivityEvent> eventType,
Row<?,?,?> oldRow,
Row<?,?,?> newRow,
TimeInterval oldTimeInterval) |
ActivityEvent(ActivityRef<?> activity,
javafx.event.EventTarget target,
javafx.event.EventType<? extends ActivityEvent> eventType,
TimeInterval oldInterval) |
Modifier and Type | Method and Description |
---|---|
ActivityRef<?> |
getActivityRef() |
TimeInterval |
getAffectedTimeInterval()
Returns the entire affected time interval of the change.
|
Row<?,?,?> |
getNewRow()
Returns the parent row of an activity after the user performed a change
on it (e.
|
Row<?,?,?> |
getOldRow()
Returns the parent row of an activity before the user performed a change
on it (e.
|
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.
|
boolean |
isPotentialEndTimeChange()
Determines if the event represents a change of the activity's end time.
|
boolean |
isPotentialStartTimeChange()
Determines if the event represents a change of the activity's start time.
|
boolean |
isPotentialTimeIntervalChange()
Determines if the event represents a change of the activity's time
interval (start and / or end time).
|
String |
toString() |
clone, consume, copyFor, fireEvent, getTarget, isConsumed
getSource
public static final javafx.event.EventType<ActivityEvent> ACTIVITY_CHANGE
public static final javafx.event.EventType<ActivityEvent> ACTIVITY_CHANGE_STARTED
public static final javafx.event.EventType<ActivityEvent> ACTIVITY_CHANGE_ONGOING
public static final javafx.event.EventType<ActivityEvent> ACTIVITY_CHANGE_FINISHED
public static final javafx.event.EventType<ActivityEvent> ACTIVITY_DELETED
public static final javafx.event.EventType<ActivityEvent> START_TIME_CHANGE_STARTED
public static final javafx.event.EventType<ActivityEvent> START_TIME_CHANGE_FINISHED
public static final javafx.event.EventType<ActivityEvent> START_TIME_CHANGE_ONGOING
public static final javafx.event.EventType<ActivityEvent> END_TIME_CHANGE_STARTED
public static final javafx.event.EventType<ActivityEvent> END_TIME_CHANGE_FINISHED
public static final javafx.event.EventType<ActivityEvent> END_TIME_CHANGE_ONGOING
public static final javafx.event.EventType<ActivityEvent> HORIZONTAL_DRAG_STARTED
public static final javafx.event.EventType<ActivityEvent> HORIZONTAL_DRAG_ONGOING
public static final javafx.event.EventType<ActivityEvent> HORIZONTAL_DRAG_FINISHED
public static final javafx.event.EventType<ActivityEvent> VERTICAL_DRAG_STARTED
public static final javafx.event.EventType<ActivityEvent> VERTICAL_DRAG_ONGOING
public static final javafx.event.EventType<ActivityEvent> VERTICAL_DRAG_FINISHED
public static final javafx.event.EventType<ActivityEvent> VERTICAL_DRAG_DONE
public static final javafx.event.EventType<ActivityEvent> DRAG_STARTED
public static final javafx.event.EventType<ActivityEvent> DRAG_ONGOING
public static final javafx.event.EventType<ActivityEvent> DRAG_FINISHED
public static final javafx.event.EventType<ActivityEvent> DRAG_DONE
public static final javafx.event.EventType<ActivityEvent> PERCENTAGE_CHANGE_STARTED
MutableCompletableActivity
.public static final javafx.event.EventType<ActivityEvent> PERCENTAGE_CHANGE_FINISHED
MutableCompletableActivity
.public static final javafx.event.EventType<ActivityEvent> PERCENTAGE_CHANGE_ONGOING
MutableCompletableActivity
.public static final javafx.event.EventType<ActivityEvent> CHART_VALUE_CHANGE_STARTED
MutableChartActivity
.public static final javafx.event.EventType<ActivityEvent> CHART_VALUE_CHANGE_FINISHED
MutableChartActivity
.public static final javafx.event.EventType<ActivityEvent> CHART_VALUE_CHANGE_ONGOING
MutableChartActivity
.public static final javafx.event.EventType<ActivityEvent> CHART_HIGH_VALUE_CHANGE_STARTED
MutableHighLowChartActivity
.public static final javafx.event.EventType<ActivityEvent> CHART_HIGH_VALUE_CHANGE_FINISHED
MutableHighLowChartActivity
.public static final javafx.event.EventType<ActivityEvent> CHART_HIGH_VALUE_CHANGE_ONGOING
MutableHighLowChartActivity
.public static final javafx.event.EventType<ActivityEvent> CHART_LOW_VALUE_CHANGE_STARTED
MutableHighLowChartActivity
.public static final javafx.event.EventType<ActivityEvent> CHART_LOW_VALUE_CHANGE_FINISHED
MutableHighLowChartActivity
.public static final javafx.event.EventType<ActivityEvent> CHART_LOW_VALUE_CHANGE_ONGOING
MutableHighLowChartActivity
.public ActivityEvent(ActivityRef<?> activity, javafx.event.EventTarget target, javafx.event.EventType<? extends ActivityEvent> eventType)
public ActivityEvent(ActivityRef<?> activity, javafx.event.EventTarget target, javafx.event.EventType<? extends ActivityEvent> eventType, Instant oldTime)
public ActivityEvent(ActivityRef<?> activity, javafx.event.EventTarget target, javafx.event.EventType<? extends ActivityEvent> eventType, TimeInterval oldInterval)
public ActivityEvent(ActivityRef<?> activity, javafx.event.EventTarget target, javafx.event.EventType<? extends ActivityEvent> eventType, Row<?,?,?> oldRow, Row<?,?,?> newRow, TimeInterval oldTimeInterval)
public ActivityEvent(ActivityRef<?> activity, javafx.event.EventTarget target, javafx.event.EventType<? extends ActivityEvent> eventType, double oldValue)
public final ActivityRef<?> getActivityRef()
public final Instant getOldTime()
public final TimeInterval getOldTimeInterval()
public final Row<?,?,?> getNewRow()
public final Row<?,?,?> getOldRow()
public final double getOldValue()
public final TimeInterval getAffectedTimeInterval()
public final boolean isPotentialEndTimeChange()
END_TIME_CHANGE_STARTED
,
END_TIME_CHANGE_ONGOING
, and END_TIME_CHANGE_FINISHED
.public final boolean isPotentialStartTimeChange()
START_TIME_CHANGE_STARTED
,
START_TIME_CHANGE_ONGOING
, and
START_TIME_CHANGE_FINISHED
.public final boolean isPotentialTimeIntervalChange()
HORIZONTAL_DRAG_STARTED
, HORIZONTAL_DRAG_ONGOING
,
HORIZONTAL_DRAG_FINISHED
, DRAG_STARTED
,
DRAG_ONGOING
, DRAG_FINISHED
.public final String toString()
toString
in class EventObject
Copyright © 2020 Dirk Lemmermann Software & Consulting. All rights reserved.