public class DiffDrawUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DiffDrawUtil.LineHighlighterBuilder |
static class |
DiffDrawUtil.MarkerRange |
Modifier and Type | Field and Description |
---|---|
static LineSeparatorRenderer |
BORDER_LINE_RENDERER |
static int |
DEFAULT_LAYER |
static int |
INLINE_LAYER |
static int |
LINE_MARKER_LAYER |
static int |
LST_LINE_MARKER_LAYER |
static int |
STRIPE_LAYER |
Modifier and Type | Method and Description |
---|---|
static java.util.List<RangeHighlighter> |
createBorderLineMarker(Editor editor,
int line,
SeparatorPlacement placement) |
static java.util.List<RangeHighlighter> |
createHighlighter(Editor editor,
int startLine,
int endLine,
TextDiffType type,
boolean ignored) |
static java.util.List<RangeHighlighter> |
createHighlighter(Editor editor,
int startLine,
int endLine,
TextDiffType type,
boolean ignored,
boolean resolved,
boolean isExcluded,
boolean hideWithoutLineNumbers,
boolean hideStripeMarkers) |
static java.util.List<RangeHighlighter> |
createInlineHighlighter(Editor editor,
int start,
int end,
TextDiffType type) |
static java.util.List<RangeHighlighter> |
createLineMarker(Editor editor,
int line,
TextDiffType type) |
static java.util.List<RangeHighlighter> |
createLineSeparatorHighlighter(Editor editor,
int offset1,
int offset2,
BooleanGetter condition) |
static java.util.List<RangeHighlighter> |
createLineSeparatorHighlighter(Editor editor,
int offset1,
int offset2,
BooleanGetter condition,
Computable<java.lang.String> description) |
static java.util.List<RangeHighlighter> |
createUnifiedChunkHighlighters(Editor editor,
LineRange deleted,
LineRange inserted,
boolean excluded,
boolean skipped,
java.util.List<? extends DiffFragment> innerFragments) |
static java.util.List<RangeHighlighter> |
createUnifiedChunkHighlighters(Editor editor,
LineRange deleted,
LineRange inserted,
java.util.List<? extends DiffFragment> innerFragments) |
static void |
drawChunkBorderLine(java.awt.Graphics2D g,
int x1,
int x2,
int y,
java.awt.Color color,
boolean doubleLine,
boolean dottedLine) |
static void |
drawCurveTrapezium(java.awt.Graphics2D g,
int x1,
int x2,
int start1,
int end1,
int start2,
int end2,
java.awt.Color fillColor,
java.awt.Color borderColor) |
static void |
drawTrapezium(java.awt.Graphics2D g,
int x1,
int x2,
int start1,
int end1,
int start2,
int end2,
java.awt.Color fillColor,
java.awt.Color borderColor) |
static java.awt.Color |
getDividerColor() |
static java.awt.Color |
getDividerColor(Editor editor) |
static java.awt.Color |
getDividerColorFromScheme(EditorColorsScheme scheme) |
static DiffDrawUtil.MarkerRange |
getGutterMarkerPaintRange(Editor editor,
int startLine,
int endLine) |
static int |
lineToY(Editor editor,
int line) |
static int |
lineToY(Editor editor,
int line,
boolean lineStart) |
static int |
lineToY(Editor editor,
int line,
boolean lineStart,
boolean includeInlays) |
static int |
yToLine(Editor editor,
int y) |
public static final int STRIPE_LAYER
public static final int DEFAULT_LAYER
public static final int INLINE_LAYER
public static final int LINE_MARKER_LAYER
public static final int LST_LINE_MARKER_LAYER
public static final LineSeparatorRenderer BORDER_LINE_RENDERER
public static java.awt.Color getDividerColor()
public static java.awt.Color getDividerColor(Editor editor)
public static java.awt.Color getDividerColorFromScheme(EditorColorsScheme scheme)
public static void drawChunkBorderLine(java.awt.Graphics2D g, int x1, int x2, int y, java.awt.Color color, boolean doubleLine, boolean dottedLine)
public static void drawTrapezium(java.awt.Graphics2D g, int x1, int x2, int start1, int end1, int start2, int end2, java.awt.Color fillColor, java.awt.Color borderColor)
public static void drawCurveTrapezium(java.awt.Graphics2D g, int x1, int x2, int start1, int end1, int start2, int end2, java.awt.Color fillColor, java.awt.Color borderColor)
public static int lineToY(Editor editor, int line)
public static int lineToY(Editor editor, int line, boolean lineStart)
public static int lineToY(Editor editor, int line, boolean lineStart, boolean includeInlays)
public static int yToLine(Editor editor, int y)
public static DiffDrawUtil.MarkerRange getGutterMarkerPaintRange(Editor editor, int startLine, int endLine)
public static java.util.List<RangeHighlighter> createUnifiedChunkHighlighters(Editor editor, LineRange deleted, LineRange inserted, java.util.List<? extends DiffFragment> innerFragments)
public static java.util.List<RangeHighlighter> createUnifiedChunkHighlighters(Editor editor, LineRange deleted, LineRange inserted, boolean excluded, boolean skipped, java.util.List<? extends DiffFragment> innerFragments)
public static java.util.List<RangeHighlighter> createHighlighter(Editor editor, int startLine, int endLine, TextDiffType type, boolean ignored)
public static java.util.List<RangeHighlighter> createHighlighter(Editor editor, int startLine, int endLine, TextDiffType type, boolean ignored, boolean resolved, boolean isExcluded, boolean hideWithoutLineNumbers, boolean hideStripeMarkers)
public static java.util.List<RangeHighlighter> createInlineHighlighter(Editor editor, int start, int end, TextDiffType type)
public static java.util.List<RangeHighlighter> createLineMarker(Editor editor, int line, TextDiffType type)
public static java.util.List<RangeHighlighter> createBorderLineMarker(Editor editor, int line, SeparatorPlacement placement)
public static java.util.List<RangeHighlighter> createLineSeparatorHighlighter(Editor editor, int offset1, int offset2, BooleanGetter condition)
public static java.util.List<RangeHighlighter> createLineSeparatorHighlighter(Editor editor, int offset1, int offset2, BooleanGetter condition, Computable<java.lang.String> description)