ice.pilots.html4
Class HighlightRange

java.lang.Object
  extended byice.pilots.html4.HighlightRange

public class HighlightRange
extends Object

This class holds the information for highlighted text in a bundle. Highlights can be either selection ranges, or multiple highlight areas within a text passage.


Constructor Summary
HighlightRange(int chrStart, int chrEnd)
           
 
Method Summary
 int getHighlightEnd()
          Retrieve the zero based ending character index of the highlighted range.
 int getHighlightStart()
          Retrieve the zero based starting character index of the highlighted range.
 void setHighlightEnd(int highlightEnd)
          Set the zero based ending character index of the highlighted range.
 void setHighlightStart(int highlightStart)
          Set the zero based starting character index of the highlighted range.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HighlightRange

public HighlightRange(int chrStart,
                      int chrEnd)
Method Detail

setHighlightStart

public void setHighlightStart(int highlightStart)
Set the zero based starting character index of the highlighted range.

Parameters:
highlightStart - first character to be highlighted in this passage

setHighlightEnd

public void setHighlightEnd(int highlightEnd)
Set the zero based ending character index of the highlighted range.

Parameters:
highlightEnd - last character to be highlighted in this passage

getHighlightStart

public int getHighlightStart()
Retrieve the zero based starting character index of the highlighted range.

Returns:
The first index to be highlighted in this passage

getHighlightEnd

public int getHighlightEnd()
Retrieve the zero based ending character index of the highlighted range.

Returns:
The last character to be highlighted in this passage