org.brains2b.thex.gui
Class PseudoHighlighter.BinaryHighlight

java.lang.Object
  extended by org.brains2b.thex.gui.PseudoHighlighter.BinaryHighlight
All Implemented Interfaces:
java.lang.Comparable<PseudoHighlighter.BinaryHighlight>, javax.swing.text.Highlighter.Highlight
Enclosing class:
PseudoHighlighter

public static class PseudoHighlighter.BinaryHighlight
extends java.lang.Object
implements javax.swing.text.Highlighter.Highlight, java.lang.Comparable<PseudoHighlighter.BinaryHighlight>

Highlight that defines the start, end of a selected area.

Painter is not implemented while this is assumed to come from PseudoHighlighter

Version:
$Revision: 1.2 $ $Date: 2010/01/15 03:53:05 $
Author:
dennis@brains2b.nl

Constructor Summary
PseudoHighlighter.BinaryHighlight(int start, int end)
          Constructor
 
Method Summary
 int compareTo(PseudoHighlighter.BinaryHighlight o)
          
 int getEndOffset()
          get the the end of the selected area
 javax.swing.text.Highlighter.HighlightPainter getPainter()
          get the Painter for this Highlight.
 int getStartOffset()
          get the start of the selected area
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PseudoHighlighter.BinaryHighlight

public PseudoHighlighter.BinaryHighlight(int start,
                                         int end)
Constructor

Parameters:
start - int the start of the selected area
end - int the end of the selected area
Method Detail

getEndOffset

public int getEndOffset()
get the the end of the selected area

Specified by:
getEndOffset in interface javax.swing.text.Highlighter.Highlight
Returns:
int the end of the selected area

getPainter

public javax.swing.text.Highlighter.HighlightPainter getPainter()
get the Painter for this Highlight. Always returns null

Specified by:
getPainter in interface javax.swing.text.Highlighter.Highlight
Returns:
HighlightPainter

getStartOffset

public int getStartOffset()
get the start of the selected area

Specified by:
getStartOffset in interface javax.swing.text.Highlighter.Highlight
Returns:
int the start of the selected area

compareTo

public int compareTo(PseudoHighlighter.BinaryHighlight o)

Specified by:
compareTo in interface java.lang.Comparable<PseudoHighlighter.BinaryHighlight>