Package org.fxmisc.richtext.event
Class MouseOverTextEvent
- java.lang.Object
-
- java.util.EventObject
-
- javafx.event.Event
-
- org.fxmisc.richtext.event.MouseOverTextEvent
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public abstract class MouseOverTextEvent extends javafx.event.EventDefines 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 javafx.event.EventType<MouseOverTextEvent>ANYstatic javafx.event.EventType<MouseOverTextEvent>MOUSE_OVER_TEXT_BEGINstatic javafx.event.EventType<MouseOverTextEvent>MOUSE_OVER_TEXT_END
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static MouseOverTextEventbeginAt(javafx.geometry.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 javafx.geometry.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 javafx.geometry.Point2DgetScenePosition()abstract javafx.geometry.Point2DgetScreenPosition()
-
-
-
Field Detail
-
ANY
public static final javafx.event.EventType<MouseOverTextEvent> ANY
-
MOUSE_OVER_TEXT_BEGIN
public static final javafx.event.EventType<MouseOverTextEvent> MOUSE_OVER_TEXT_BEGIN
-
MOUSE_OVER_TEXT_END
public static final javafx.event.EventType<MouseOverTextEvent> MOUSE_OVER_TEXT_END
-
-
Method Detail
-
beginAt
public static final MouseOverTextEvent beginAt(javafx.geometry.Point2D screenPos, int charIdx)
-
end
public static final MouseOverTextEvent end()
-
getPosition
public abstract javafx.geometry.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 javafx.geometry.Point2D getScenePosition()
-
getScreenPosition
public abstract javafx.geometry.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.
-
-