public class LassoEvent extends 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 |
Modifier and Type | Field and Description |
---|---|
static EventType<LassoEvent> |
ALL
The parent event type of all other lasso event types.
|
static EventType<LassoEvent> |
SELECTION_FINISHED
An event type used when the user finishes a selection with the lasso.
|
static EventType<LassoEvent> |
SELECTION_ONGOING
An event type used while the user is using the lasso to perform a
selection.
|
static EventType<LassoEvent> |
SELECTION_STARTED
An event type used when the user starts a selection with the lasso.
|
ANY
consumed, eventType, NULL_SOURCE_TARGET, target
source
Constructor and Description |
---|
LassoEvent(GraphicsBase<?> target,
EventType<? extends LassoEvent> eventType,
LassoEvent.LassoInfo info) |
Modifier and Type | Method and Description |
---|---|
LassoEvent.LassoInfo |
getInfo() |
String |
toString() |
getEventType
clone, consume, copyFor, fireEvent, getTarget, isConsumed
getSource
public static final EventType<LassoEvent> ALL
public static final EventType<LassoEvent> SELECTION_STARTED
public static final EventType<LassoEvent> SELECTION_FINISHED
public static final EventType<LassoEvent> SELECTION_ONGOING
public LassoEvent(GraphicsBase<?> target, EventType<? extends LassoEvent> eventType, LassoEvent.LassoInfo info)
public final LassoEvent.LassoInfo getInfo()
public String toString()
toString
in class EventObject
Copyright © 2014 Dirk Lemmermann Software & Consulting. All rights reserved.