use of org.apache.pivot.text.AttributedStringCharacterIterator in project pivot by apache.
the class TerraTextInputSkin method getCaretRectangle.
private Rectangle getCaretRectangle(TextHitInfo textCaret) {
TextInput textInput = (TextInput) getComponent();
AttributedStringCharacterIterator composedText = textInput.getComposedText();
Bounds selectionStartBounds = getCharacterBounds(textInput.getSelectionStart());
return GraphicsUtilities.getCaretRectangle(textCaret, composedText, selectionStartBounds.x, padding.top + 1);
}
Aggregations