Class Highlight
java.lang.Object
docking.widgets.fieldpanel.support.Highlight
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetColor()
Returns the color to use as the background highlight color.int
getEnd()
Returns the ending position (inclusive) of the highlight.int
getStart()
Returns the starting position of the highlight.void
setOffset
(int newOffset) Sets the offset of this highlights start and end values.
-
Constructor Details
-
Highlight
Constructs a new Highlight that indicates where to highlight text in the listing fields.- Parameters:
start
- the starting character position to highlightend
- the ending character position (inclusive) to highlightcolor
- the color to use for highlighting.
-
-
Method Details
-
getStart
public int getStart()Returns the starting position of the highlight. -
getEnd
public int getEnd()Returns the ending position (inclusive) of the highlight. -
getColor
Returns the color to use as the background highlight color. -
setOffset
public void setOffset(int newOffset) Sets the offset of this highlights start and end values. The effect of the offset is that calls togetStart()
andgetEnd()
will return their values with the offset added.- Parameters:
newOffset
- The new offset into this highlight.
-