Class CodeLineHighlight
A band of whole lines painted behind the text of a CodeEditor: the lines a change
touched, the body of a method being inspected, the lines a search found.
Lines are 1-based and the range is inclusive. The color is 0xRRGGBB, painted at
the given opacity so the syntax colors stay readable on top of it. Where two bands
overlap, the one given later is painted over the earlier one.
-
Constructor Summary
ConstructorsConstructorDescriptionCodeLineHighlight(int startLine, int endLine, int color) A band fromstartLinetoendLine, inclusive, at the default opacity.CodeLineHighlight(int startLine, int endLine, int color, int alpha) A band with an explicit opacity. -
Method Summary
-
Constructor Details
-
CodeLineHighlight
public CodeLineHighlight(int startLine, int endLine, int color) A band from
startLinetoendLine, inclusive, at the default opacity.Parameters
-
startLine: the first 1-based line -
endLine: the last 1-based line; a value belowstartLinepaintsstartLinealone -
color: the band's color,0xRRGGBB
-
-
CodeLineHighlight
public CodeLineHighlight(int startLine, int endLine, int color, int alpha) A band with an explicit opacity.
Parameters
-
startLine: the first 1-based line -
endLine: the last 1-based line -
color: the band's color,0xRRGGBB -
alpha: the opacity, 0 (invisible) to 255 (opaque)
-
-
-
Method Details
-
getStartLine
public int getStartLine()The first 1-based line. -
getEndLine
public int getEndLine()The last 1-based line, inclusive. -
getColor
public int getColor()The color,0xRRGGBB. -
getAlpha
public int getAlpha()The opacity, 0 to 255.
-