Package | Description |
---|---|
com.yworks.yfiles.view |
Contains the main UI classes, interfaces, default implementations and support classes that can be used to display
IGraph instances. |
Modifier and Type | Field and Description |
---|---|
static EventType<Mouse2DEvent> |
Mouse2DEvent.ANY
Any Mouse2DEvent.
|
static EventType<Mouse2DEvent> |
Mouse2DEvent.CLICKED
A mouse click has been recognized.
|
static EventType<Mouse2DEvent> |
Mouse2DEvent.DRAGGED
The mouse has been dragged, i.e. it has been moved while at least one button has been pressed.
|
static EventType<Mouse2DEvent> |
Mouse2DEvent.ENTERED
The mouse has entered the control's bounds.
|
static EventType<Mouse2DEvent> |
Mouse2DEvent.EXITED
The mouse has exited the control's bounds.
|
static EventType<Mouse2DEvent> |
Mouse2DEvent.MOVED
The mouse has been moved.
|
static EventType<Mouse2DEvent> |
Mouse2DEvent.NONE
Not a mouse event.
|
static EventType<Mouse2DEvent> |
Mouse2DEvent.PRESSED
A button has been pressed.
|
static EventType<Mouse2DEvent> |
Mouse2DEvent.RELEASED
A button has been released.
|
static EventType<Mouse2DEvent> |
Mouse2DEvent.WHEEL_TURNED
The mouse wheel has been turned.
|
Modifier and Type | Method and Description |
---|---|
Mouse2DEvent |
CanvasControl.getLastMouse2DEvent()
Gets the last
mouse event triggered by this instance. |
Modifier and Type | Method and Description |
---|---|
EventType<Mouse2DEvent> |
Mouse2DEvent.getEventType()
Gets the type of this event.
|
EventHandler<? super Mouse2DEvent> |
CanvasControl.getOnMouse2DClicked()
Returns the value of the property onMouse2DClicked.
|
EventHandler<? super Mouse2DEvent> |
CanvasControl.getOnMouse2DDragged()
Returns the value of the property onMouse2DDragged.
|
EventHandler<? super Mouse2DEvent> |
CanvasControl.getOnMouse2DEntered()
Returns the value of the property onMouse2DEntered.
|
EventHandler<? super Mouse2DEvent> |
CanvasControl.getOnMouse2DExited()
Returns the value of the property onMouse2DExited.
|
EventHandler<? super Mouse2DEvent> |
CanvasControl.getOnMouse2DMoved()
Returns the value of the property onMouse2DMoved.
|
EventHandler<? super Mouse2DEvent> |
CanvasControl.getOnMouse2DPressed()
Returns the value of the property onMouse2DPressed.
|
EventHandler<? super Mouse2DEvent> |
CanvasControl.getOnMouse2DReleased()
Returns the value of the property onMouse2DReleased.
|
EventHandler<? super Mouse2DEvent> |
CanvasControl.getOnMouse2DWheelTurned()
Returns the value of the property onMouse2DWheelTurned.
|
ObjectProperty<EventHandler<? super Mouse2DEvent>> |
CanvasControl.onMouse2DClickedProperty()
Defines a function to be called when the user has
clicked on the CanvasControl
with the mouse. |
ObjectProperty<EventHandler<? super Mouse2DEvent>> |
CanvasControl.onMouse2DDraggedProperty()
Defines a function to be called when the mouse has been
dragged over the
CanvasControl , i.e. the mouse is being moved while at least one of the mouse buttons is pressed. |
ObjectProperty<EventHandler<? super Mouse2DEvent>> |
CanvasControl.onMouse2DEnteredProperty()
Defines a function to be called when the mouse has
entered the CanvasControl . |
ObjectProperty<EventHandler<? super Mouse2DEvent>> |
CanvasControl.onMouse2DExitedProperty()
Defines a function to be called when the mouse has
exited the CanvasControl . |
ObjectProperty<EventHandler<? super Mouse2DEvent>> |
CanvasControl.onMouse2DMovedProperty()
Defines a function to be called when the mouse has been
moved in the CanvasControl . |
ObjectProperty<EventHandler<? super Mouse2DEvent>> |
CanvasControl.onMouse2DPressedProperty()
Defines a function to be called when the mouse has been
pressed in the CanvasControl . |
ObjectProperty<EventHandler<? super Mouse2DEvent>> |
CanvasControl.onMouse2DReleasedProperty()
Defines a function to be called when the mouse has been
released on the CanvasControl . |
ObjectProperty<EventHandler<? super Mouse2DEvent>> |
CanvasControl.onMouse2DWheelTurnedProperty()
Defines a function to be called when the mouse wheel has
turned over the CanvasControl . |
Modifier and Type | Method and Description |
---|---|
protected void |
CanvasControl.mouseWheelScroll(Mouse2DEvent e)
This method will be called by the
CanvasControl.onMouse2DWheelTurned(Mouse2DEvent) method, if the MouseWheelBehavior
property is set to MouseWheelBehaviors.SCROLL . |
protected void |
CanvasControl.mouseWheelZoom(Mouse2DEvent e)
This method will be called by the
CanvasControl.onMouse2DWheelTurned(Mouse2DEvent) method, if the MouseWheelBehavior
property is set to MouseWheelBehaviors.ZOOM . |
protected void |
CanvasControl.onMouse2DClicked(Mouse2DEvent e)
Callback method that is called when the mouse has been clicked.
|
protected void |
CanvasControl.onMouse2DDragged(Mouse2DEvent e)
Callback method that is called when the mouse gets dragged.
|
protected void |
CanvasControl.onMouse2DEntered(Mouse2DEvent e)
Callback method that is called when the mouse enters the control.
|
protected void |
CanvasControl.onMouse2DExited(Mouse2DEvent e)
Callback method that is called when the mouse exits the control.
|
protected void |
CanvasControl.onMouse2DMoved(Mouse2DEvent e)
Callback method that is called when the mouse has been moved and no button has been pressed.
|
protected void |
CanvasControl.onMouse2DPressed(Mouse2DEvent e)
Callback method that is called when a mouse button has been pressed.
|
protected void |
CanvasControl.onMouse2DReleased(Mouse2DEvent e)
Callback method that is called when a mouse button has been released.
|
protected void |
CanvasControl.onMouse2DWheelTurned(Mouse2DEvent e)
Callback method that is called when the mouse wheel has been turned.
|
Modifier and Type | Method and Description |
---|---|
void |
CanvasControl.setOnMouse2DClicked(EventHandler<? super Mouse2DEvent> value)
Sets the value of the property onMouse2DClicked.
|
void |
CanvasControl.setOnMouse2DDragged(EventHandler<? super Mouse2DEvent> value)
Sets the value of the property onMouse2DDragged.
|
void |
CanvasControl.setOnMouse2DEntered(EventHandler<? super Mouse2DEvent> value)
Sets the value of the property onMouse2DEntered.
|
void |
CanvasControl.setOnMouse2DExited(EventHandler<? super Mouse2DEvent> value)
Sets the value of the property onMouse2DExited.
|
void |
CanvasControl.setOnMouse2DMoved(EventHandler<? super Mouse2DEvent> value)
Sets the value of the property onMouse2DMoved.
|
void |
CanvasControl.setOnMouse2DPressed(EventHandler<? super Mouse2DEvent> value)
Sets the value of the property onMouse2DPressed.
|
void |
CanvasControl.setOnMouse2DReleased(EventHandler<? super Mouse2DEvent> value)
Sets the value of the property onMouse2DReleased.
|
void |
CanvasControl.setOnMouse2DWheelTurned(EventHandler<? super Mouse2DEvent> value)
Sets the value of the property onMouse2DWheelTurned.
|
Constructor and Description |
---|
Mouse2DEvent(Object source,
EventType<Mouse2DEvent> eventType,
PointD location,
MouseButtons changedButtons,
ModifierKeys changedModifiers,
MouseButtons buttons,
ModifierKeys modifiers)
Constructs a new mouse event argument.
|
Mouse2DEvent(Object source,
EventType<Mouse2DEvent> eventType,
PointD location,
MouseButtons changedButtons,
ModifierKeys changedModifiers,
MouseButtons buttons,
ModifierKeys modifiers,
int mouseWheelDelta,
ScrollType scrollType,
int scrollAmount,
int clickCount)
Constructs a new mouse event argument.
|