public class TextPositionSupport
extends java.lang.Object
| Constructor and Description |
|---|
TextPositionSupport(javafx.scene.layout.Region control,
StyledTextArea textArea)
Create a new position support
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
computeCursorOffset(javafx.scene.input.MouseEvent event)
computes the text offset under the mouse cursor.
|
protected void |
install()
Install the position trackers
|
static TextPositionSupport |
install(javafx.scene.layout.Region control,
StyledTextArea textArea)
Install the text position support
|
public TextPositionSupport(javafx.scene.layout.Region control,
StyledTextArea textArea)
control - the controltextArea - the text areaprotected void install()
public static TextPositionSupport install(javafx.scene.layout.Region control, StyledTextArea textArea)
control - the controltextArea - the text areaprotected int computeCursorOffset(javafx.scene.input.MouseEvent event)
event -