|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.text.DefaultHighlighter.HighlightInfo javax.swing.text.DefaultHighlighter.LayeredHighlightInfo
LayeredHighlightPainter is used when a drawsLayeredHighlights is true. It maintains a rectangle of the region to paint.
Field Summary | |
(package private) int |
height
|
(package private) Position |
p0
|
(package private) Position |
p1
|
(package private) Highlighter.HighlightPainter |
painter
|
(package private) int |
width
|
(package private) int |
x
|
(package private) int |
y
|
Constructor Summary | |
(package private) |
DefaultHighlighter.LayeredHighlightInfo()
|
Method Summary | |
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. |
(package private) void |
paintLayeredHighlights(Graphics g,
int p0,
int p1,
Shape viewBounds,
JTextComponent editor,
View view)
Restricts the region based on the receivers offsets and messages the painter to paint the region. |
(package private) void |
union(Shape bounds)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
int x
int y
int width
int height
Position p0
Position p1
Highlighter.HighlightPainter painter
Constructor Detail |
DefaultHighlighter.LayeredHighlightInfo()
Method Detail |
void union(Shape bounds)
void paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
public int getStartOffset()
Highlighter.Highlight
getStartOffset
in interface Highlighter.Highlight
public int getEndOffset()
Highlighter.Highlight
getEndOffset
in interface Highlighter.Highlight
public Highlighter.HighlightPainter getPainter()
Highlighter.Highlight
getPainter
in interface Highlighter.Highlight
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |