public class LassoEvent
extends javafx.scene.input.InputEvent
GanttChart gantt = new GanttChart(); GraphicsView graphics = gantt.getGraphics(); graphics.setOnLassoSelectionStarted(evt -> handleChange(evt));
GanttChart gantt = new GanttChart(); GraphicsView graphics = gantt.getGraphics(); graphics.addEventHandler(LassoEvent.SELECTION_STARTED, evt -> handleChange(evt));
GraphicsBase.setOnLassoSelectionStarted(javafx.event.EventHandler)
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
LassoEvent.LassoInfo
Stores information about the last lasso operation performed by the user.
|
Modifier and Type | Field and Description |
---|---|
static javafx.event.EventType<LassoEvent> |
ALL
The parent event type of all other lasso event types.
|
static javafx.event.EventType<LassoEvent> |
SELECTION_FINISHED
An event type used when the user finishes a selection with the lasso.
|
static javafx.event.EventType<LassoEvent> |
SELECTION_ONGOING
An event type used while the user is using the lasso to perform a
selection.
|
static javafx.event.EventType<LassoEvent> |
SELECTION_STARTED
An event type used when the user starts a selection with the lasso.
|
source
Constructor and Description |
---|
LassoEvent(GraphicsBase<?> target,
javafx.event.EventType<? extends LassoEvent> eventType,
LassoEvent.LassoInfo info)
Constructs a new event object.
|
Modifier and Type | Method and Description |
---|---|
LassoEvent.LassoInfo |
getInfo()
Returns the detailed information about the lasso operation (selected
rows, selected time interval, etc...).
|
String |
toString() |
clone, consume, copyFor, fireEvent, getTarget, isConsumed
getSource
public static final javafx.event.EventType<LassoEvent> ALL
public static final javafx.event.EventType<LassoEvent> SELECTION_STARTED
public static final javafx.event.EventType<LassoEvent> SELECTION_FINISHED
public static final javafx.event.EventType<LassoEvent> SELECTION_ONGOING
public LassoEvent(GraphicsBase<?> target, javafx.event.EventType<? extends LassoEvent> eventType, LassoEvent.LassoInfo info)
target
- the graphics control where the event originatedeventType
- the type of the eventinfo
- detailed information about the lasso operation (selected rows,
selected time interval, etc...)public final LassoEvent.LassoInfo getInfo()
public String toString()
toString
in class EventObject
Copyright © 2020 Dirk Lemmermann Software & Consulting. All rights reserved.