public class StyledTextSkin extends com.sun.javafx.scene.control.skin.BehaviorSkinBase<StyledTextArea,StyledTextBehavior>
| Modifier and Type | Class and Description |
|---|---|
class |
StyledTextSkin.Line
The line domain object
|
class |
StyledTextSkin.LineCell
A line cell
|
| Constructor and Description |
|---|
StyledTextSkin(StyledTextArea styledText)
Create a new skin
|
| Modifier and Type | Method and Description |
|---|---|
protected double |
computeMinHeight(double width)
Compute the min height
|
protected double |
computeMinWidth(double height)
Compute the min width
|
javafx.geometry.Point2D |
getCaretLocation(int caretPosition)
Get the point for the caret position
|
double |
getLineHeight(int caretPosition)
The line height at the care position
|
void |
recalculateItems()
recalculate the line items
|
void |
redraw()
Redraw the lines
|
void |
refreshLineRuler()
Refresh the line ruler
|
dispose, getBehavior, handleControlPropertyChanged, registerChangeListenercomputeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, consumeMouseEvents, 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 void refreshLineRuler()
public double getLineHeight(int caretPosition)
caretPosition - the positionpublic javafx.geometry.Point2D getCaretLocation(int caretPosition)
caretPosition - the positionprotected double computeMinHeight(double width)
width - the width that should be used if minimum height depends on itprotected double computeMinWidth(double height)
height - the height that should be used if minimum width depends on itpublic void recalculateItems()
public void redraw()