Class Highlight
java.lang.Object
docking.widgets.fieldpanel.support.Highlight
-
Constructor Summary
Constructors -
Method Summary
ChangeModifier and TypeMethodDescriptiongetColor()Returns the color to use as the background highlight color..intgetEnd()Returns the ending position (inclusive) of the highlight.intgetStart()Returns the starting position of the highlight.NEWintlength()Returns the number of characters in the match..voidsetOffset(int newOffset) Sets the offset of this highlights start and end values.NEWtoString()
-
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.- Returns:
- the starting position of the highlight
-
getEnd
public int getEnd()Returns the ending position (inclusive) of the highlight.- Returns:
- the ending position (inclusive) of the highlight
-
length NEW
public int length()Returns the number of characters in the match..- Returns:
- the number of characters in the match.
-
getColor
Returns the color to use as the background highlight color..- 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.This useful when highlights are using offsets for widgets that embedded inside of composite containers. the parent container turn these relative values into absolute values that work when all sub-parts are combined.
- Parameters:
newOffset- The new offset into this highlight.
-
toString NEW
-