public abstract class MouseOverTextEvent
extends javafx.event.Event
MOUSE_OVER_TEXT_BEGIN
)
and when it moves from that position (MOUSE_OVER_TEXT_END
).Modifier and Type | Field and Description |
---|---|
static javafx.event.EventType<MouseOverTextEvent> |
ANY |
static javafx.event.EventType<MouseOverTextEvent> |
MOUSE_OVER_TEXT_BEGIN |
static javafx.event.EventType<MouseOverTextEvent> |
MOUSE_OVER_TEXT_END |
Modifier and Type | Method and Description |
---|---|
static MouseOverTextEvent |
beginAt(javafx.geometry.Point2D screenPos,
int charIdx) |
static MouseOverTextEvent |
end() |
abstract int |
getCharacterIndex()
Returns index of the character that the mouse stopped over if this event
is a
MOUSE_OVER_TEXT_BEGIN event and -1 if this event is a
MOUSE_OVER_TEXT_END . |
abstract javafx.geometry.Point2D |
getPosition()
For
MOUSE_OVER_TEXT_BEGIN events returns the position at which
the mouse is standing still, relative to the node on which the event
handler was registered. |
abstract javafx.geometry.Point2D |
getScenePosition() |
abstract javafx.geometry.Point2D |
getScreenPosition() |
public static final javafx.event.EventType<MouseOverTextEvent> ANY
public static final javafx.event.EventType<MouseOverTextEvent> MOUSE_OVER_TEXT_BEGIN
public static final javafx.event.EventType<MouseOverTextEvent> MOUSE_OVER_TEXT_END
public static final MouseOverTextEvent beginAt(javafx.geometry.Point2D screenPos, int charIdx)
public static final MouseOverTextEvent end()
public abstract javafx.geometry.Point2D getPosition()
MOUSE_OVER_TEXT_BEGIN
events returns the position at which
the mouse is standing still, relative to the node on which the event
handler was registered.
For MOUSE_OVER_TEXT_END
events returns null
public abstract javafx.geometry.Point2D getScenePosition()
public abstract javafx.geometry.Point2D getScreenPosition()
public abstract int getCharacterIndex()
MOUSE_OVER_TEXT_BEGIN
event and -1 if this event is a
MOUSE_OVER_TEXT_END
.