JavaScript is disabled on your browser.
This specification is not final and is subject to change. Use is subject to
license terms
.
Skip navigation links
Overview
Class
Use
Tree
Preview
New
Deprecated
Index
Search
Help
Java SE 23 & JDK 23
DRAFT 23-internal-2024-04-16-1247301.vklang...
java.desktop
javax.swing.text
Highlighter.Highlight
Contents
Hide sidebar
❮
❯
Show sidebar
Description
Method Summary
Method Details
getStartOffset()
getEndOffset()
getPainter()
Interface Highlighter.Highlight
Enclosing interface:
Highlighter
public static interface
Highlighter.Highlight
A highlight.
Method Summary
All Methods
Instance Methods
Abstract Methods
Modifier and Type
Method
Description
int
getEndOffset
()
Gets the ending model offset for the highlight.
Highlighter.HighlightPainter
getPainter
()
Gets the painter for the highlighter.
int
getStartOffset
()
Gets the starting model offset for the highlight.
Method Details
getStartOffset
int
getStartOffset
()
Gets the starting model offset for the highlight.
Returns:
the starting offset >= 0
getEndOffset
int
getEndOffset
()
Gets the ending model offset for the highlight.
Returns:
the ending offset >= 0
getPainter
Highlighter.HighlightPainter
getPainter
()
Gets the painter for the highlighter.
Returns:
the painter