public class StyledTextSkin extends javafx.scene.control.SkinBase<StyledTextArea>
| Constructor and Description |
|---|
StyledTextSkin(StyledTextArea styledText)
Create a new skin
|
StyledTextSkin(StyledTextArea styledText,
StyledTextBehavior behavior)
Create a new skin
|
| Modifier and Type | Method and Description |
|---|---|
protected double |
computeMinHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
protected double |
computeMinWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
<T> java.util.Optional<T> |
fastQuery(java.lang.String label,
java.lang.String fieldText,
java.util.function.Function<java.lang.String,T> converter) |
java.util.Optional<TextNode> |
findTextNode(javafx.geometry.Point2D screenLocation) |
StyledTextBehavior |
getBehavior() |
javafx.geometry.Point2D |
getCaretLocation(int caretPosition,
StyledTextArea.LineLocation locationHint)
Get the point for the caret position
|
javafx.geometry.Bounds |
getContentBounds() |
double |
getLineHeight(int caretPosition)
The line height at the care position
|
int |
getOffsetAtPosition(double x,
double y)
Find the offset at a specific position
|
int |
getVisibleLineCount() |
void |
refreshStyles(int start,
int length) |
void |
scrollLineDown()
Scroll down a line
|
void |
scrollLineIntoView(int lineIndex) |
void |
scrollLineUp()
Scroll up a line
|
void |
scrollOffsetIntoView(int offset,
int verticalOffset,
int horizontalOffset) |
void |
updateInsertionMarkerIndex(int offset) |
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computePrefHeight, computePrefWidth, consumeMouseEvents, dispose, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutChildren, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpacepublic StyledTextSkin(StyledTextArea styledText)
styledText - the controlpublic StyledTextSkin(StyledTextArea styledText, StyledTextBehavior behavior)
styledText - the styled textbehavior - the behaviorpublic java.util.Optional<TextNode> findTextNode(javafx.geometry.Point2D screenLocation)
public <T> java.util.Optional<T> fastQuery(java.lang.String label,
java.lang.String fieldText,
java.util.function.Function<java.lang.String,T> converter)
public void scrollLineIntoView(int lineIndex)
public void scrollOffsetIntoView(int offset,
int verticalOffset,
int horizontalOffset)
public StyledTextBehavior getBehavior()
public double getLineHeight(int caretPosition)
caretPosition - the positionpublic javafx.geometry.Point2D getCaretLocation(int caretPosition,
StyledTextArea.LineLocation locationHint)
caretPosition - the positionprotected double computeMinWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
computeMinWidth in class javafx.scene.control.SkinBase<StyledTextArea>protected double computeMinHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
computeMinHeight in class javafx.scene.control.SkinBase<StyledTextArea>public void scrollLineUp()
public void scrollLineDown()
public int getOffsetAtPosition(double x,
double y)
x - the x coordinatey - the y coordinatepublic void refreshStyles(int start,
int length)
public void updateInsertionMarkerIndex(int offset)
public int getVisibleLineCount()
public javafx.geometry.Bounds getContentBounds()