javax.swing.text
Class DefaultHighlighter.HighlightInfo

java.lang.Object
  extended byjavax.swing.text.DefaultHighlighter.HighlightInfo
All Implemented Interfaces:
Highlighter.Highlight
Direct Known Subclasses:
DefaultHighlighter.LayeredHighlightInfo
Enclosing class:
DefaultHighlighter

class DefaultHighlighter.HighlightInfo
extends Object
implements Highlighter.Highlight


Field Summary
(package private)  Position p0
           
(package private)  Position p1
           
(package private)  Highlighter.HighlightPainter painter
           
 
Constructor Summary
(package private) DefaultHighlighter.HighlightInfo()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

p0

Position p0

p1

Position p1

painter

Highlighter.HighlightPainter painter
Constructor Detail

DefaultHighlighter.HighlightInfo

DefaultHighlighter.HighlightInfo()
Method Detail

getStartOffset

public int getStartOffset()
Description copied from interface: Highlighter.Highlight
Gets the starting model offset for the highlight.

Specified by:
getStartOffset in interface Highlighter.Highlight
Returns:
the starting offset >= 0

getEndOffset

public int getEndOffset()
Description copied from interface: Highlighter.Highlight
Gets the ending model offset for the highlight.

Specified by:
getEndOffset in interface Highlighter.Highlight
Returns:
the ending offset >= 0

getPainter

public Highlighter.HighlightPainter getPainter()
Description copied from interface: Highlighter.Highlight
Gets the painter for the highlighter.

Specified by:
getPainter in interface Highlighter.Highlight
Returns:
the painter