Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
243,500 | int (int offset) { return offset - visualOffsetShift(); } | visualOffsetFromParent |
243,501 | int () { return isRtl() ? myCharPositions.length - myEndOffset : myStartOffset; } | visualOffsetShift |
243,502 | int (int column) { return column + (isRtl() ? TextFragment.this.getVisualColumnCount(0) - myEndColumn : myStartColumn); } | visualColumnToParent |
243,503 | Consumer<Graphics2D> (float x, float y, int startOffset, int endOffset) { return TextFragment.this.draw(x, y, visualOffsetToParent(startOffset), visualOffsetToParent(endOffset)); } | draw |
243,504 | LineFragment (int startOffset, int endOffset) { return TextFragment.this.subFragment(startOffset + myStartOffset, endOffset + myStartOffset); } | subFragment |
243,505 | float (float startX) { FoldRegion fold = getCurrentFold(); if (fold == null) { int codePoint = getCodePoint(); if (codePoint == '\t') { return EditorUtil.nextTabStop(startX + getInlaysPrefixWidth(), myView.getPlainSpaceWidth(), myView.getTabSize()) + getInlaysSuffixWidth(); } else if (codePoint == '\r') { // can only h... | getElementEndX |
243,506 | float () { return getInlaysWidthForOffset(getElementStartOffset()); } | getInlaysPrefixWidth |
243,507 | float () { int nextOffset = getElementEndOffset(); if (nextOffset < myText.length() && "\r\n".indexOf(myText.charAt(nextOffset)) == -1 || nextIsFoldRegion()) return 0; int afterLineEndInlaysWidth = getAfterLineEndInlaysWidth(getLogicalLine()); return getInlaysWidthForOffset(nextOffset) + (afterLineEndInlaysWidth == 0 ?... | getInlaysSuffixWidth |
243,508 | int (int offset) { while (inlineInlayIndex < inlineInlays.size() && inlineInlays.get(inlineInlayIndex).getOffset() < offset) inlineInlayIndex++; while (inlineInlayIndex > 0 && inlineInlays.get(inlineInlayIndex - 1).getOffset() >= offset) inlineInlayIndex--; int width = 0; while (inlineInlayIndex < inlineInlays.size() &... | getInlaysWidthForOffset |
243,509 | int (int logicalLine) { int startOffset = myDocument.getLineStartOffset(logicalLine); int endOffset = myDocument.getLineEndOffset(logicalLine); while (afterLineEndInlayIndex < afterLineEndInlays.size() && afterLineEndInlays.get(afterLineEndInlayIndex).getOffset() < startOffset) { afterLineEndInlayIndex++; } while (afte... | getAfterLineEndInlaysWidth |
243,510 | void (@NotNull Graphics g, char @NotNull [] data, int start, int end, int x, int y, @NotNull Color color, @NotNull FontInfo fontInfo) { g.setFont(fontInfo.getFont()); g.setColor(color); g.drawChars(data, start, end - start, x, y); } | drawChars |
243,511 | boolean (@NotNull Editor editor) { return editor.getSettings().isRightMarginShown() && editor.getColorsScheme().getColor(EditorColors.RIGHT_MARGIN_COLOR) != null && (Registry.is("editor.show.right.margin.in.read.only.files") || editor.getDocument().isWritable()); } | isMarginShown |
243,512 | int (@NotNull Editor editor) { return - Session.getTabGap(Session.getWhiteSpaceScale(editor)) / 2; } | getIndentGuideShift |
243,513 | void () { if (myEditor.getContentComponent().isOpaque()) { myGraphics.setColor(myBackgroundColor); myGraphics.fillRect(myClip.x, myClip.y, myClip.width, myClip.height); } myGraphics.translate(0, -myYShift); if (paintPlaceholderText()) { paintCaret(); return; } paintCustomRenderers(myDocMarkup); paintCustomRenderers(myE... | paint |
243,514 | boolean () { CharSequence hintText = myEditor.getPlaceholder(); EditorComponentImpl editorComponent = myEditor.getContentComponent(); if (myDocument.getTextLength() > 0 || hintText == null || hintText.length() == 0 || KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner() == editorComponent && !myEditor.... | paintPlaceholderText |
243,515 | void () { if (myEditor.getSettings().isRightMarginShown()) { Color visualGuidesColor = myEditor.getColorsScheme().getColor(EditorColors.VISUAL_INDENT_GUIDE_COLOR); if (visualGuidesColor != null) { myGraphics.setColor(visualGuidesColor); for (Integer marginX : myCorrector.softMarginsX()) { LinePainter2D.paint(myGraphics... | paintRightMargin |
243,516 | float (EditorView view) { Editor editor = view.getEditor(); return editor.getSettings().getRightMargin(editor.getProject()) * view.getPlainSpaceWidth(); } | getBaseMarginWidth |
243,517 | boolean () { return EditorPainter.isMarginShown(myEditor); } | isMarginShown |
243,518 | void () { int lineCount = myEditor.getVisibleLineCount(); boolean calculateMarginWidths = Registry.is("editor.adjust.right.margin") && isMarginShown() && myStartVisualLine < lineCount; myMarginPositions = calculateMarginWidths ? new MarginPositions(Math.min(myEndVisualLine, lineCount - 1) - myStartVisualLine + 2) : nul... | paintBackground |
243,519 | void (TextAttributes attributes, boolean hasSoftWrap, int columnEnd, float xEnd, int y) { if (dryRun) return; if (visualLine == 0) xEnd -= myView.getPrefixTextWidthInPixels(); paintBackground(attributes, startX, y, xEnd); if (!hasSoftWrap) return; paintSelectionOnSecondSoftWrapLineIfNecessary(visualLine, columnEnd, xEn... | paintBeforeLineStart |
243,520 | void (VisualLineFragmentsIterator.Fragment fragment, int start, int end, TextAttributes attributes, float xStart, float xEnd, int y) { if (dryRun) return; FoldRegion foldRegion = fragment.getCurrentFoldRegion(); TextAttributes foldRegionInnerAttributes = foldRegion == null || !Registry.is("editor.highlight.foldings") ?... | paint |
243,521 | void (IterationState it, int columnStart, float x, int y) { if (dryRun) return; TextAttributes backgroundAttributes = it.getPastLineEndBackgroundAttributes().clone(); CustomFoldRegion cfr = visLinesIterator.getCustomFoldRegion(); if (cfr != null) { paintBackground(backgroundAttributes, startX, y, endX - startX, cfr.get... | paintAfterLineEnd |
243,522 | boolean (TextAttributes innerAttributes, float x, int y, float width, @NotNull FoldRegion foldRegion) { if (innerAttributes.getBackgroundColor() != null && !isSelected(foldRegion)) { paintBackground(innerAttributes, x, y, width); Color borderColor = myEditor.getColorsScheme().getColor(EditorColors.FOLDED_TEXT_BORDER_CO... | paintFoldingBackground |
243,523 | Int2ObjectMap<IntPair> (Editor editor, int startVisualLine, int endVisualLine) { Int2ObjectMap<IntPair> map = new Int2ObjectOpenHashMap<>(); for (Caret caret : editor.getCaretModel().getAllCarets()) { if (caret.hasSelection()) { VisualPosition selectionStart = caret.getSelectionStartPosition(); VisualPosition selection... | createVirtualSelectionMap |
243,524 | void (int visualLine, int columnStart, float xStart, int y) { IntPair selectionRange = myVirtualSelectionMap.get(visualLine); if (selectionRange == null || selectionRange.second <= columnStart) return; float startX = selectionRange.first <= columnStart ? xStart : (float)myView.visualPositionToXY(new VisualPosition(visu... | paintVirtualSelectionIfNecessary |
243,525 | void (int visualLine, int columnEnd, float xEnd, int y, VisualPosition selectionStartPosition, VisualPosition selectionEndPosition) { if (selectionStartPosition.equals(selectionEndPosition) || visualLine < selectionStartPosition.line || visualLine > selectionEndPosition.line || visualLine == selectionStartPosition.line... | paintSelectionOnSecondSoftWrapLineIfNecessary |
243,526 | void (int visualLine, int columnStart, float xStart, int y, VisualPosition selectionStartPosition, VisualPosition selectionEndPosition) { if (selectionStartPosition.equals(selectionEndPosition) || visualLine < selectionStartPosition.line || visualLine > selectionEndPosition.line || visualLine == selectionEndPosition.li... | paintSelectionOnFirstSoftWrapLineIfNecessary |
243,527 | void (TextAttributes attributes, float x, int y, float width) { paintBackground(attributes, x, y, width, myLineHeight); } | paintBackground |
243,528 | void (TextAttributes attributes, float x, int y, float width, int height) { if (attributes == null) return; paintBackground(attributes.getBackgroundColor(), x, y, width, height); } | paintBackground |
243,529 | void (Color color, float x, int y, float width) { paintBackground(color, x, y, width, myLineHeight); } | paintBackground |
243,530 | void (Color color, float x, int y, float width, int height) { if (width <= 0 || color == null || color.equals(myDefaultBackgroundColor) || color.equals(myBackgroundColor)) return; myGraphics.setColor(color); myGraphics.fill(new Rectangle2D.Float(x, y, width, height)); } | paintBackground |
243,531 | void (MarkupModelEx markupModel) { myGraphics.translate(0, myYShift); markupModel.processRangeHighlightersOverlappingWith(myStartOffset, myEndOffset, highlighter -> { CustomHighlighterRenderer customRenderer = highlighter.getCustomRenderer(); if (customRenderer != null) { if (myClipDetector.rangeCanBeVisible(highlighte... | paintCustomRenderers |
243,532 | void (List<RangeHighlighter> highlighters) { if (!highlighters.isEmpty()) { myGraphics.translate(0, myYShift); for (RangeHighlighter highlighter : highlighters) { CustomHighlighterRenderer customRenderer = highlighter.getCustomRenderer(); if (customRenderer == null) continue; try (AccessToken ignore = SlowOperations.re... | paintCustomRenderers |
243,533 | void (MarkupModelEx markupModel) { markupModel.processRangeHighlightersOverlappingWith(mySeparatorHighlightersStartOffset, mySeparatorHighlightersEndOffset, highlighter -> { paintLineMarkerSeparator(highlighter); return true; }); } | paintLineMarkersSeparators |
243,534 | void (RangeHighlighter marker) { Color separatorColor = marker.getLineSeparatorColor(); LineSeparatorRenderer lineSeparatorRenderer = marker.getLineSeparatorRenderer(); if (separatorColor == null && lineSeparatorRenderer == null) { return; } boolean isTop = marker.getLineSeparatorPlacement() == SeparatorPlacement.TOP; ... | paintLineMarkerSeparator |
243,535 | void () { myTextDrawingTasks.forEach(t -> t.accept(myGraphics)); ComplexTextFragment.flushDrawingCache(myGraphics); } | paintTextWithEffects |
243,536 | void (@NotNull FoldRegion region, @NotNull MarkupModelEx markupModel, @NotNull List<? super RangeHighlighterEx> highlighters) { int startOffset = region.getStartOffset(); int endOffset = region.getEndOffset(); markupModel.processRangeHighlightersOverlappingWith(startOffset, endOffset, h -> { if (h.isVisibleIfFolded() &... | collectVisibleInnerHighlighters |
243,537 | float (LineLayout layout, float x, float y, @Nullable Color color, @Nullable Color effectColor, @Nullable EffectType effectType) { paintTextEffect(x, x + layout.getWidth(), (int)y, effectColor, effectType, false); myGraphics.setColor(color); for (LineLayout.VisualFragment fragment : layout.getFragmentsInVisualOrder(x))... | paintLineLayoutWithEffect |
243,538 | void (float xFrom, float xTo, int y, @Nullable Color effectColor, @Nullable EffectType effectType, boolean allowBorder) { if (effectColor == null) { return; } myGraphics.setColor(effectColor); int xStart = (int)xFrom; int xEnd = (int)xTo; if (effectType == EffectType.LINE_UNDERSCORE) { EffectPainter.LINE_UNDERSCORE.pai... | paintTextEffect |
243,539 | int (int unscaledSize, float scale) { return Math.max(1, Math.round(scale * unscaledSize)); } | calcFeatureSize |
243,540 | float (double value) { double devPixel = 1 / PaintUtil.devValue(1, myScaleContext); return (float)(PaintUtil.alignToInt(value, myScaleContext, PaintUtil.RoundingMode.FLOOR, null) + devPixel / 2); } | roundToPixelCenter |
243,541 | void (float x, int y, int start, int end, LineWhitespacePaintingStrategy whitespacePaintingStrategy, VisualLineFragmentsIterator.Fragment fragment, BasicStroke stroke, float scale) { if (!whitespacePaintingStrategy.showAnyWhitespace()) return; boolean restoreStroke = false; Stroke defaultStroke = myGraphics.getStroke()... | paintWhitespace |
243,542 | int (float scale) { return calcFeatureSize(5, scale); } | getTabGap |
243,543 | float (@NotNull Editor editor) { return ((float)editor.getColorsScheme().getEditorFontSize()) / FontPreferences.DEFAULT_FONT_SIZE; } | getWhiteSpaceScale |
243,544 | void (int visualLine, int offset) { myEditor.processLineExtensions(myDocument.getLineNumber(offset), (info) -> { List<LineExtensionData> list = myExtensionData.get(visualLine); if (list == null) myExtensionData.put(visualLine, list = new ArrayList<>()); list.add(new LineExtensionData(info, LineLayout.create(myView, inf... | collectExtensions |
243,545 | void (int visualLine, float x, int y) { List<LineExtensionData> data = myExtensionData.get(visualLine); if (data == null) return; for (LineExtensionData datum : data) { float width = datum.layout.getWidth(); paintBackground(datum.info.getBgColor(), x, y, width); x += width; } } | paintLineExtensionsBackground |
243,546 | void (int visualLine, int logicalLine, float x, int y) { List<LineExtensionData> data = myExtensionData.get(visualLine); if (data == null) return; for (LineExtensionData datum : data) { x = paintLineLayoutWithEffect(datum.layout, x, y, datum.info.getColor(), datum.info.getEffectColor(), datum.info.getEffectType()); } i... | paintLineExtensions |
243,547 | void (MarkupModelEx markupModel) { markupModel.processRangeHighlightersOverlappingWith(myStartOffset, myEndOffset, highlighter -> { if (highlighter.getStartOffset() >= myStartOffset) { paintHighlighterAfterEndOfLine(highlighter); } return true; }); } | paintHighlightersAfterEndOfLine |
243,548 | void (RangeHighlighterEx highlighter) { if (!highlighter.isAfterEndOfLine()) { return; } int startOffset = highlighter.getStartOffset(); int lineEndOffset = myDocument.getLineEndOffset(myDocument.getLineNumber(startOffset)); if (myEditor.getFoldingModel().isOffsetCollapsed(lineEndOffset)) return; Point2D lineEnd = myVi... | paintHighlighterAfterEndOfLine |
243,549 | void (EditorHighlighter highlighter) { HighlighterIterator it = highlighter.createIterator(myStartOffset); while (!it.atEnd() && it.getStart() < myEndOffset) { TextAttributes attributes = it.getTextAttributes(); EffectDescriptor borderDescriptor = getBorderDescriptor(attributes); if (borderDescriptor != null) { paintBo... | paintBorderEffect |
243,550 | void (MarkupModelEx markupModel) { markupModel.processRangeHighlightersOverlappingWith(myStartOffset, myEndOffset, rangeHighlighter -> { TextAttributes attributes = rangeHighlighter.getTextAttributes(myEditor.getColorsScheme()); EffectDescriptor borderDescriptor = getBorderDescriptor(attributes); if (borderDescriptor !... | paintBorderEffect |
243,551 | void (int startOffset, int endOffset, EffectDescriptor borderDescriptor) { startOffset = DocumentUtil.alignToCodePointBoundary(myDocument, startOffset); endOffset = DocumentUtil.alignToCodePointBoundary(myDocument, endOffset); FoldRegion foldRegion = myEditor.getFoldingModel().getCollapsedRegionAtOffset(startOffset); i... | paintBorderEffect |
243,552 | void (float xStart, float xEnd, float y, boolean rounded) { Shape border = getBorderShape(xStart, y, xEnd - xStart, myLineHeight, 1, rounded); if (border != null) { Object old = myGraphics.getRenderingHint(RenderingHints.KEY_ANTIALIASING); myGraphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALU... | drawSimpleBorder |
243,553 | Shape (float x, float y, float width, int height, int thickness, boolean rounded) { if (width <= 0 || height <= 0) return null; Shape outer = rounded ? new RoundRectangle2D.Float(x, y, width, height, 2, 2) : new Rectangle2D.Float(x, y, width, height); int doubleThickness = 2 * thickness; if (width <= doubleThickness ||... | getBorderShape |
243,554 | void (float x1, int y1, float x2, int y2, boolean rounded) { if (rounded) { UIUtil.drawLinePickedOut(myGraphics, (int)x1, y1, (int)x2, y2); } else { LinePainter2D.paint(myGraphics, (int)x1, y1, (int)x2, y2); } } | drawLine |
243,555 | FloatList (int startOffset, int endOffset) { FloatList ranges = logicalRangeToVisualRanges(startOffset, endOffset); for (int i = 0; i < ranges.size() - 1; i += 2) { float startX = ranges.getFloat(i); float endX = ranges.getFloat(i + 1); if (startX == endX) { if (startX > 0) { startX--; } else { endX++; } } else { endX-... | adjustedLogicalRangeToVisualRanges |
243,556 | FloatList (int startOffset, int endOffset) { assert startOffset <= endOffset; FloatList result = new FloatArrayList(); if (myDocument.getTextLength() == 0) { int minX = myCorrector.emptyTextX(); result.add(minX); result.add(minX); } else { float lastX = -1; for (VisualLineFragmentsIterator.Fragment fragment : VisualLin... | logicalRangeToVisualRanges |
243,557 | void () { TextRange composedTextRange = myEditor.getComposedTextRange(); if (composedTextRange != null) { Point2D p1 = myView.offsetToXY(Math.min(composedTextRange.getStartOffset(), myDocument.getTextLength()), true, false); Point2D p2 = myView.offsetToXY(Math.min(composedTextRange.getEndOffset(), myDocument.getTextLen... | paintComposedTextDecoration |
243,558 | void () { if (!myEditor.getInlayModel().hasBlockElements()) return; int startX = myInsets.left; int lineCount = myEditor.getVisibleLineCount(); VisualLinesIterator visLinesIterator = new VisualLinesIterator(myEditor, myStartVisualLine); while (!visLinesIterator.atEnd()) { int visualLine = visLinesIterator.getVisualLine... | paintBlockInlays |
243,559 | TextAttributes (int visualLine) { TextAttributes attributes = myBetweenLinesAttributes.get(visualLine); if (attributes != null) return attributes; // inlay shown below last document line return new TextAttributes(); } | getInlayAttributes |
243,560 | TextAttributes (int bottomVisualLine, int bottomVisualLineStartOffset, PeekableIterator<? extends Caret> caretIterator) { boolean selection = false; while (caretIterator.hasNext() && caretIterator.peek().getSelectionEnd() < bottomVisualLineStartOffset) caretIterator.next(); if (caretIterator.hasNext()) { Caret caret = ... | getBetweenLinesAttributes |
243,561 | boolean (RangeHighlighterEx highlighterEx) { int layer = highlighterEx.getLayer(); if (layer > this.layer && highlighterEx.getAffectedAreaStartOffset() < bottomVisualLineStartOffset && highlighterEx.getAffectedAreaEndOffset() > bottomVisualLineStartOffset - (highlighterEx.getTargetArea() == HighlighterTargetArea.EXACT_... | process |
243,562 | void () { if (myEditor.isPurePaintingMode()) return; EditorImpl.CaretRectangle[] locations = myEditor.getCaretLocations(true); if (locations == null) return; Graphics2D g = IdeBackgroundUtil.getOriginalGraphics(myGraphics); int caretHeight = myView.getCaretHeight(); EditorSettings settings = myEditor.getSettings(); int... | paintCaret |
243,563 | void (@NotNull Graphics2D g, @Nullable Caret caret, float x, float y, float w, float h, boolean isRtl) { g.fill(new Rectangle2D.Float(x, y, w, h)); paintCaretRtlMarker(g, caret, x, y, w, isRtl); } | paintCaretBar |
243,564 | void (@NotNull Graphics2D g, float x, float y, float w, float h) { g.fill(new Rectangle2D.Float(x, y, w, h)); } | paintCaretBlock |
243,565 | void (@NotNull Graphics2D g, float x, float y, float w, float h) { g.fill(new Rectangle2D.Float(x, y, w, h)); } | paintCaretUnderscore |
243,566 | void (@NotNull Graphics2D g, float x, float y, float w, float h) { if (w > 2) { final float outlineWidth = (float) PaintUtil.alignToInt(1, g); final Area area = new Area(new Rectangle2D.Float(x, y, w, h)); area.subtract(new Area(new Rectangle2D.Float(x + outlineWidth, y + outlineWidth, w - (2 * outlineWidth), h - (2 * ... | paintCaretBox |
243,567 | void (@NotNull Graphics2D g, @Nullable Caret caret, @NotNull Color caretColor, float x, float y, int topOverhang, boolean isRtl) { if (caret != null) { int targetVisualColumn = caret.getVisualPosition().column - (isRtl ? 1 : 0); for (VisualLineFragmentsIterator.Fragment fragment : VisualLineFragmentsIterator.create(myV... | paintCaretText |
243,568 | void (@NotNull Graphics2D g, @Nullable Caret caret, float x, float y, float w, boolean isRtl) { // We only draw the RTL marker for bar carets. If our bar is close to being a block, skip it. We keep the entire caret inside the // caret location width. if (myDocument.getTextLength() > 0 && caret != null && !myView.getTex... | paintCaretRtlMarker |
243,569 | void (VisualLinesIterator visLineIterator, int y, LineFragmentPainter painter, MarginWidthConsumer marginWidthConsumer) { int visualLine = visLineIterator.getVisualLine(); float x = myCorrector.startX(visualLine) + (visualLine == 0 ? myView.getPrefixTextWidthInPixels() : 0); int offset = visLineIterator.getVisualLineSt... | paintLineFragments |
243,570 | TextAttributes (FoldRegion foldRegion) { TextAttributes selectionAttributes = isSelected(foldRegion) ? myEditor.getSelectionModel().getTextAttributes() : null; TextAttributes defaultAttributes = getDefaultAttributes(); if (myEditor.isInFocusMode(foldRegion)) { return ObjectUtils.notNull(myEditor.getUserData(FocusModeMo... | getFoldRegionAttributes |
243,571 | TextAttributes () { TextAttributes attributes = myEditor.getColorsScheme().getAttributes(HighlighterColors.TEXT); if (attributes.getForegroundColor() == null) attributes.setForegroundColor(Color.black); if (attributes.getBackgroundColor() == null) attributes.setBackgroundColor(Color.white); return attributes; } | getDefaultAttributes |
243,572 | boolean (FoldRegion foldRegion) { int regionStart = foldRegion.getStartOffset(); int regionEnd = foldRegion.getEndOffset(); int[] selectionStarts = foldRegion.getEditor().getSelectionModel().getBlockSelectionStarts(); int[] selectionEnds = foldRegion.getEditor().getSelectionModel().getBlockSelectionEnds(); for (int i =... | isSelected |
243,573 | TextAttributes (TextAttributes primary, TextAttributes secondary) { if (primary == null) return secondary; if (secondary == null) return primary; TextAttributes result = new TextAttributes(primary.getForegroundColor() == null ? secondary.getForegroundColor() : primary.getForegroundColor(), primary.getBackgroundColor() ... | mergeAttributes |
243,574 | boolean () { return myWhitespaceShown && (myLeadingWhitespaceShown || myInnerWhitespaceShown || myTrailingWhitespaceShown || mySelectionWhitespaceShown); } | showAnyWhitespace |
243,575 | void (CharSequence chars, int lineStart, int lineEnd) { if (showAnyWhitespace() && !(myLeadingWhitespaceShown && myInnerWhitespaceShown && myTrailingWhitespaceShown)) { currentTrailingEdge = CharArrayUtil.shiftBackward(chars, lineStart, lineEnd - 1, WHITESPACE_CHARS) + 1; currentLeadingEdge = CharArrayUtil.shiftForward... | update |
243,576 | boolean (int offset, CaretDataInView caretData) { if (!myWhitespaceShown) return false; if (offset < currentLeadingEdge ? myLeadingWhitespaceShown : offset >= currentTrailingEdge ? myTrailingWhitespaceShown : myInnerWhitespaceShown) { return true; } else { return mySelectionWhitespaceShown && caretData != null && caret... | showWhitespaceAtOffset |
243,577 | XCorrector (@NotNull EditorView view, @NotNull Insets insets) { return view.getEditor().isRightAligned() ? new RightAligned(view) : new LeftAligned(view, insets); } | create |
243,578 | float (int line) { return myLeftInset; } | startX |
243,579 | int () { return myLeftInset; } | emptyTextX |
243,580 | int (int startLine, int endLine) { return myLeftInset; } | minX |
243,581 | int (int startLine, int endLine) { return minX(startLine, endLine) + myView.getMaxTextWidthInLineRange(startLine, endLine - 1) - 1; } | maxX |
243,582 | float (float x) { return x; } | singleLineBorderStart |
243,583 | float (float x) { return x + 1; } | singleLineBorderEnd |
243,584 | int (int line, float x) { return (int)x - myLeftInset; } | lineWidth |
243,585 | int (int maxX) { return myLeftInset; } | lineSeparatorStart |
243,586 | int (int maxX) { return isMarginShown(myView.getEditor()) ? Math.min(marginX(Session.getBaseMarginWidth(myView)), maxX) : maxX; } | lineSeparatorEnd |
243,587 | int (float marginWidth) { return (int)(myLeftInset + marginWidth); } | marginX |
243,588 | List<Integer> () { List<Integer> margins = myView.getEditor().getSettings().getSoftMargins(); List<Integer> result = new ArrayList<>(margins.size()); for (Integer margin : margins) { result.add((int)(myLeftInset + margin * myView.getPlainSpaceWidth())); } return result; } | softMarginsX |
243,589 | float (int line) { return myView.getRightAlignmentLineStartX(line); } | startX |
243,590 | int (int line, float x) { return (int)(x - myView.getRightAlignmentLineStartX(line)); } | lineWidth |
243,591 | int () { return myView.getRightAlignmentMarginX(); } | emptyTextX |
243,592 | int (int startLine, int endLine) { return myView.getRightAlignmentMarginX() - myView.getMaxTextWidthInLineRange(startLine, endLine - 1) - 1; } | minX |
243,593 | int (int startLine, int endLine) { return myView.getRightAlignmentMarginX() - 1; } | maxX |
243,594 | float (float x) { return x - 1; } | singleLineBorderStart |
243,595 | float (float x) { return x; } | singleLineBorderEnd |
243,596 | int (int minX) { return isMarginShown(myView.getEditor()) ? Math.max(marginX(Session.getBaseMarginWidth(myView)), minX) : minX; } | lineSeparatorStart |
243,597 | int (int maxX) { return maxX; } | lineSeparatorEnd |
243,598 | int (float marginWidth) { return (int)(myView.getRightAlignmentMarginX() - marginWidth); } | marginX |
243,599 | List<Integer> () { List<Integer> margins = myView.getEditor().getSettings().getSoftMargins(); List<Integer> result = new ArrayList<>(margins.size()); for (Integer margin : margins) { result.add((int)(myView.getRightAlignmentMarginX() - margin * myView.getPlainSpaceWidth())); } return result; } | softMarginsX |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.