public class DiffLineSeparatorRenderer extends java.lang.Object implements LineMarkerRendererEx, LineSeparatorRenderer
LineMarkerRendererEx.Position| Modifier and Type | Field and Description |
|---|---|
static ColorKey |
BACKGROUND |
| Constructor and Description |
|---|
DiffLineSeparatorRenderer(Editor editor,
BooleanGetter condition,
Computable<java.lang.String> description) |
| Modifier and Type | Method and Description |
|---|---|
static void |
drawConnectorLine(java.awt.Graphics2D g,
int x1,
int x2,
int y1,
int y2,
int lineHeight,
EditorColorsScheme scheme) |
void |
drawLine(java.awt.Graphics g,
int x1,
int x2,
int y) |
LineMarkerRendererEx.Position |
getPosition()
Determines where in gutter the line marker should be rendered.
|
void |
paint(Editor editor,
java.awt.Graphics g,
java.awt.Rectangle r)
Draws the line marker over the specified rectangle.
|
public static final ColorKey BACKGROUND
public DiffLineSeparatorRenderer(Editor editor, BooleanGetter condition, Computable<java.lang.String> description)
public static void drawConnectorLine(java.awt.Graphics2D g,
int x1,
int x2,
int y1,
int y2,
int lineHeight,
EditorColorsScheme scheme)
public void paint(Editor editor, java.awt.Graphics g, java.awt.Rectangle r)
LineMarkerRendererpaint in interface LineMarkerRenderereditor - the editor to which the line marker belongs.g - the graphics in which the line marker should be painted.r - the rectangle in which the line marker should be painted
(the left and right coordinates are defined by the area in which
line markers may be painted, and the top and bottom coordinates are
the top of the first line covered by the associated range highlighter
and the bottom of the last line).public void drawLine(java.awt.Graphics g,
int x1,
int x2,
int y)
drawLine in interface LineSeparatorRendererpublic LineMarkerRendererEx.Position getPosition()
LineMarkerRendererExLineMarkerRenderer.paint(Editor, Graphics, Rectangle) method.
Returned value shouldn't change for the lifetime of RangeHighlighter. If there's a need to change the position, highlighter
should be recreated.
getPosition in interface LineMarkerRendererEx