javax.swing.text
Class DefaultHighlighter.LayeredHighlightInfo

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

class DefaultHighlighter.LayeredHighlightInfo
extends DefaultHighlighter.HighlightInfo

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

x

int x

y

int y

width

int width

height

int height

p0

Position p0

p1

Position p1

painter

Highlighter.HighlightPainter painter
Constructor Detail

DefaultHighlighter.LayeredHighlightInfo

DefaultHighlighter.LayeredHighlightInfo()
Method Detail

union

void union(Shape bounds)

paintLayeredHighlights

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.


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