public class TextHoverEvent
extends javafx.scene.input.MouseEvent
This is an experimental component provided as a preview we'll improve and fix problems in up coming releases
| Modifier and Type | Field and Description |
|---|---|
static javafx.event.EventType<TextHoverEvent> |
HOVER
Hover event type
|
| Constructor and Description |
|---|
TextHoverEvent(javafx.scene.input.MouseEvent event,
int offsetTokenStart,
int offsetTokenEnd,
int offset,
java.lang.String tokenText)
Create a new hover event from the original mouse event
|
TextHoverEvent(javafx.scene.input.MouseEvent source,
java.util.List<HoverTarget> hoverTargets) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<HoverTarget> |
getHoverTargets() |
int |
getOffset() |
int |
getOffsetTokenEnd() |
int |
getOffsetTokenStart() |
java.lang.String |
getTokenText() |
int |
hashCode() |
copyFor, copyFor, copyForMouseDragEvent, getButton, getClickCount, getEventType, getPickResult, getSceneX, getSceneY, getScreenX, getScreenY, getX, getY, getZ, isAltDown, isControlDown, isDragDetect, isMetaDown, isMiddleButtonDown, isPopupTrigger, isPrimaryButtonDown, isSecondaryButtonDown, isShiftDown, isShortcutDown, isStillSincePress, isSynthesized, setDragDetect, toStringpublic static final javafx.event.EventType<TextHoverEvent> HOVER
public TextHoverEvent(javafx.scene.input.MouseEvent source,
java.util.List<HoverTarget> hoverTargets)
public TextHoverEvent(javafx.scene.input.MouseEvent event,
int offsetTokenStart,
int offsetTokenEnd,
int offset,
java.lang.String tokenText)
event - the eventoffsetTokenStart - the start offset from the token hovering (might be -1 to
indicate no valid region was found)offsetTokenEnd - the end offset from the token hovering (might be -1 to
indicate no valid region was found)offset - the offset in the text (might be -1 to indicate no valid
region was found)tokenText - the token textpublic java.util.List<HoverTarget> getHoverTargets()
public int getOffsetTokenStart()
public int getOffsetTokenEnd()
public java.lang.String getTokenText()
public int getOffset()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object