Package org.fxmisc.richtext.event
Class MouseOverTextEvent
- java.lang.Object
-
- java.util.EventObject
-
- javafx.event.Event
-
- org.fxmisc.richtext.event.MouseOverTextEvent
-
- All Implemented Interfaces:
Serializable,Cloneable
public abstract class MouseOverTextEvent extends Event
Defines an event where the mouse becomes stationary over some part of an area (MOUSE_OVER_TEXT_BEGIN) and when it moves from that position (MOUSE_OVER_TEXT_END).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static EventType<MouseOverTextEvent>ANYstatic EventType<MouseOverTextEvent>MOUSE_OVER_TEXT_BEGINstatic EventType<MouseOverTextEvent>MOUSE_OVER_TEXT_END-
Fields inherited from class javafx.event.Event
consumed, eventType, NULL_SOURCE_TARGET, target
-
Fields inherited from class java.util.EventObject
source
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static MouseOverTextEventbeginAt(Point2D screenPos, int charIdx)static MouseOverTextEventend()abstract intgetCharacterIndex()Returns index of the character that the mouse stopped over if this event is aMOUSE_OVER_TEXT_BEGINevent and -1 if this event is aMOUSE_OVER_TEXT_END.abstract Point2DgetPosition()ForMOUSE_OVER_TEXT_BEGINevents returns the position at which the mouse is standing still, relative to the node on which the event handler was registered.abstract Point2DgetScenePosition()abstract Point2DgetScreenPosition()-
Methods inherited from class javafx.event.Event
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumed
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Field Detail
-
ANY
public static final EventType<MouseOverTextEvent> ANY
-
MOUSE_OVER_TEXT_BEGIN
public static final EventType<MouseOverTextEvent> MOUSE_OVER_TEXT_BEGIN
-
MOUSE_OVER_TEXT_END
public static final EventType<MouseOverTextEvent> MOUSE_OVER_TEXT_END
-
-
Method Detail
-
beginAt
public static final MouseOverTextEvent beginAt(Point2D screenPos, int charIdx)
-
end
public static final MouseOverTextEvent end()
-
getPosition
public abstract Point2D getPosition()
ForMOUSE_OVER_TEXT_BEGINevents 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_ENDevents returnsnull
-
getScenePosition
public abstract Point2D getScenePosition()
-
getScreenPosition
public abstract Point2D getScreenPosition()
-
getCharacterIndex
public abstract int getCharacterIndex()
Returns index of the character that the mouse stopped over if this event is aMOUSE_OVER_TEXT_BEGINevent and -1 if this event is aMOUSE_OVER_TEXT_END.
-
-