Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
46,500 | void () { if (myInplaceEditorComponent == null) return; final Dimension preferredSize = myInplaceEditorComponent.getPreferredSize(); int width = Math.max(preferredSize.width, myPreferredBounds.width); // Editor component should not be extended to invisible area width = Math.min(width, getWidth() - myInplaceEditorCompon... | adjustEditorComponentSize |
46,501 | void () { if (myInplaceComponent == null || myInsideChange) { // nothing to finish return; } myInsideChange = true; try{ // 1. Apply new value to the component LOG.assertTrue(myInplaceEditor != null); if (!myEditor.isUndoRedoInProgress()) { CommandProcessor.getInstance().executeCommand( myInplaceComponent.getProject(),... | finishInplaceEditing |
46,502 | void () { if(myInplaceComponent == null || myInsideChange){ // nothing to finish return; } myInsideChange = true; try{ // 1. Remove editor from the layer LOG.assertTrue(myInplaceProperty != null); LOG.assertTrue(myInplaceEditor != null); removeInplaceEditorComponent(); myInplaceEditor.removePropertyEditorListener(myPro... | cancelInplaceEditing |
46,503 | void () { remove(myInplaceEditorComponent); } | removeInplaceEditorComponent |
46,504 | void (@NotNull final GuiEditor source) { finishInplaceEditing(); } | selectedComponentChanged |
46,505 | void (final FocusEvent e) { final Component opposite = e.getOppositeComponent(); if( e.isTemporary() || opposite != null && SwingUtilities.isDescendingFrom(opposite, getTopComponent()) ){ // Do nothing if focus moves inside top component hierarchy return; } // [vova] we need LaterInvocator here to prevent write-access ... | focusLostImpl |
46,506 | void (@NotNull final PropertyEditor source, final boolean continueEditing, final boolean closeEditorOnError) { finishInplaceEditing(); } | valueCommitted |
46,507 | void (@NotNull final PropertyEditor source) { cancelInplaceEditing(); } | editingCanceled |
46,508 | void (@NotNull final PropertyEditor source) { adjustEditorComponentSize(); } | preferredSizeChanged |
46,509 | void (Graphics2D g2d, Rectangle rc) { g2d.setColor(PlatformColors.BLUE); g2d.setStroke(new BasicStroke(1.5f)); int midY = (int)rc.getCenterY(); int right = rc.x + rc.width - 1; int bottom = rc.y + rc.height - 1; g2d.drawLine(rc.x, rc.y, GridInsertLocation.INSERT_ARROW_SIZE, midY); g2d.drawLine(rc.x, bottom, GridInsertL... | paintFeedback |
46,510 | void (KeyEvent e) { if (e.getID() == KeyEvent.KEY_PRESSED) { if (e.getKeyCode() == KeyEvent.VK_ENTER) { doPaste(myLastLocation); e.consume(); } else if (e.getKeyCode() == KeyEvent.VK_ESCAPE) { endPaste(); e.consume(); } else { myLastLocation = moveDropLocation(myEditor, myLastLocation, myPastedComponentList, e); } } } | processKeyEvent |
46,511 | void (MouseEvent e) { if (e.getID() == MouseEvent.MOUSE_MOVED) { myLastLocation = myGridInsertProcessor.processDragEvent(e.getPoint(), myPastedComponentList); if (myLastLocation.canDrop(myPastedComponentList)) { setCursor(FormEditingUtil.getCopyDropCursor()); } else { setCursor(FormEditingUtil.getMoveNoDropCursor()); }... | processMouseEvent |
46,512 | void (final MouseEvent e) { ComponentDropLocation location = GridInsertProcessor.getDropLocation(myEditor.getRootContainer(), e.getPoint()); doPaste(location); } | processMousePressed |
46,513 | void (final ComponentDropLocation location) { if (location.canDrop(myPastedComponentList) && myEditor.ensureEditable()) { final RadComponent[] componentsToPaste = myComponentsToPaste.toArray(RadComponent.EMPTY_ARRAY); CommandProcessor.getInstance().executeCommand( myEditor.getProject(), () -> { location.processDrop(myE... | doPaste |
46,514 | boolean (final IComponent component) { if (component.getBinding() != null) { InsertComponentProcessor.createBindingField(myEditor, (RadComponent) component); } return true; } | visit |
46,515 | void () { myEditor.getMainProcessor().stopCurrentProcessor(); myEditor.getActiveDecorationLayer().removeFeedback(); WindowManager.getInstance().getStatusBar(myEditor.getProject()).setInfo(""); } | endPaste |
46,516 | boolean () { WindowManager.getInstance().getStatusBar(myEditor.getProject()).setInfo(""); return true; } | cancelOperation |
46,517 | int () { return myComponentsToPaste.size(); } | getComponentCount |
46,518 | boolean () { return false; } | isHGrow |
46,519 | boolean () { return false; } | isVGrow |
46,520 | int (int componentIndex) { return myComponentsToPaste.get(componentIndex).getConstraints().getRow() - myMinRow; } | getRelativeRow |
46,521 | int (int componentIndex) { return myComponentsToPaste.get(componentIndex).getConstraints().getColumn() - myMinCol; } | getRelativeCol |
46,522 | int (int componentIndex) { return myComponentsToPaste.get(componentIndex).getConstraints().getRowSpan(); } | getRowSpan |
46,523 | int (int componentIndex) { return myComponentsToPaste.get(componentIndex).getConstraints().getColSpan(); } | getColSpan |
46,524 | Point (int componentIndex) { return new Point(myDX [componentIndex], myDY [componentIndex]); } | getDelta |
46,525 | Dimension (final RadContainer targetContainer) { if (myComponentsToPaste.size() == 1) { return myComponentsToPaste.get(0).getSize(); } return new Dimension(-1, -1); } | getInitialSize |
46,526 | String () { StringBuilder result = new StringBuilder(myContainer.getDisplayName()); result.append(" ("); if (myXPart == 1 && myYPart == 1) { result.append(UIDesignerBundle.message("insert.feedback.fill")); } else { if (myYPart == 0) { result.append(UIDesignerBundle.message("insert.feedback.top")); } else if (myYPart ==... | getInsertFeedbackTooltip |
46,527 | int (ComponentDragObject dragObject, int defaultSize) { Dimension initialSize = dragObject.getInitialSize(getContainer()); if (initialSize.width > 0 && initialSize.width < defaultSize) { return initialSize.width; } return defaultSize; } | initialWidth |
46,528 | int (ComponentDragObject dragObject, int defaultSize) { Dimension initialSize = dragObject.getInitialSize(getContainer()); if (initialSize.height > 0 && initialSize.height < defaultSize) { return initialSize.height; } return defaultSize; } | initialHeight |
46,529 | boolean (final ComponentDragObject dragObject) { if (dragObject.getComponentCount() == 1 && (myContainer.getGridRowCount() == 0 || myContainer.getGridColumnCount() == 0)) { return true; } return super.canDrop(dragObject); } | canDrop |
46,530 | ComponentDropLocation (Direction direction) { if (direction == Direction.DOWN && myYPart < 2) { return createAdjacentLocation(myXPart, myYPart+1); } if (direction == Direction.UP && myYPart > 0) { return createAdjacentLocation(myXPart, myYPart-1); } if (direction == Direction.RIGHT && myXPart < 2) { return createAdjace... | getAdjacentLocation |
46,531 | FirstComponentInsertLocation (final int xPart, final int yPart) { return new FirstComponentInsertLocation(myContainer, myCellRect, xPart, yPart); } | createAdjacentLocation |
46,532 | void (InsertComponentProcessor icp, ComponentItem spacerItem, GridInsertMode mode) { GridInsertLocation location = new GridInsertLocation(myContainer, 0, 0, mode); icp.processComponentInsert(spacerItem, location); } | insertSpacer |
46,533 | void (DropTargetDragEvent dtde) { try { DraggedComponentList dcl = DraggedComponentList.fromTransferable(dtde.getTransferable()); if (dcl != null) { myDraggedComponentList = dcl; myComponentDragObject = dcl; processDragEnter(dcl, dtde.getLocation(), dtde.getDropAction()); dtde.acceptDrag(dtde.getDropAction()); myLastPo... | dragEnter |
46,534 | void (final DraggedComponentList draggedComponentList, final Point location, final int dropAction) { final List<RadComponent> dragComponents = draggedComponentList.getComponents(); Rectangle allBounds = null; if (!draggedComponentList.hasDragDelta() || !myUseDragDelta) { final RadContainer[] originalParents = draggedCo... | processDragEnter |
46,535 | void (DropTargetDragEvent dtde) { try { if (myComponentDragObject == null) { dtde.rejectDrag(); return; } final int dx = dtde.getLocation().x - myLastPoint.x; final int dy = dtde.getLocation().y - myLastPoint.y; if (myDraggedComponentsCopy != null && myDraggedComponentList != null) { for (RadComponent aMySelection : my... | dragOver |
46,536 | void (DropTargetDragEvent dtde) { DraggedComponentList dcl = DraggedComponentList.fromTransferable(dtde.getTransferable()); if (dcl != null) { setDraggingState(dcl, dtde.getDropAction() != DnDConstants.ACTION_COPY); } } | dropActionChanged |
46,537 | void (DropTargetEvent dte) { try { ComponentTree componentTree = DesignerToolWindowManager.getInstance(myEditor).getComponentTree(); if (componentTree != null) { componentTree.setDropTargetComponent(null); } myUseDragDelta = false; if (myDraggedComponentList != null) { cancelDrag(); setDraggingState(myDraggedComponentL... | dragExit |
46,538 | void (final DropTargetDropEvent dtde) { try { ComponentTree componentTree = DesignerToolWindowManager.getInstance(myEditor).getComponentTree(); if (componentTree != null) { componentTree.setDropTargetComponent(null); } final DraggedComponentList dcl = DraggedComponentList.fromTransferable(dtde.getTransferable()); if (d... | drop |
46,539 | boolean (final DraggedComponentList dcl, final Point dropPoint, final int dropAction) { myEditor.getActiveDecorationLayer().removeFeedback(); final ArrayList<RadComponent> dclComponents = dcl.getComponents(); final int componentCount = dclComponents.size(); ComponentDropLocation location = GridInsertProcessor.getDropLo... | processDrop |
46,540 | void () { if (myDraggedComponentsCopy != null) { for(RadComponent c: myDraggedComponentsCopy) { myEditor.getDragLayer().remove(c.getDelegee()); } } myEditor.refresh(); } | cancelDrag |
46,541 | void (final DraggedComponentList draggedComponentList, final boolean dragging) { for (RadComponent c: draggedComponentList.getComponents()) { c.setDragBorder(dragging); } } | setDraggingState |
46,542 | void (final boolean useDragDelta) { myUseDragDelta = useDragDelta; } | setUseDragDelta |
46,543 | GridInsertLocation () { final RadAbstractGridLayoutManager gridManager = myContainer.getGridLayoutManager(); if (myMode == GridInsertMode.RowBefore && myRow > 0) { myMode = GridInsertMode.RowAfter; myRow--; } else if (myMode == GridInsertMode.ColumnBefore && myColumn > 0) { myMode = GridInsertMode.ColumnAfter; myColumn... | normalize |
46,544 | GridInsertMode () { return myMode; } | getMode |
46,545 | void (boolean spanInsertMode) { mySpanInsertMode = spanInsertMode; } | setSpanInsertMode |
46,546 | boolean () { return myMode == GridInsertMode.ColumnAfter || myMode == GridInsertMode.ColumnBefore; } | isColumnInsert |
46,547 | boolean () { return myMode == GridInsertMode.RowAfter || myMode == GridInsertMode.RowBefore; } | isRowInsert |
46,548 | boolean () { return isColumnInsert() || isRowInsert(); } | isInsert |
46,549 | int () { return isRowInsert() ? myRow : myColumn; } | getInsertCell |
46,550 | int () { return isRowInsert() ? myColumn : myRow; } | getOppositeCell |
46,551 | boolean () { return myMode == GridInsertMode.ColumnAfter || myMode == GridInsertMode.RowAfter; } | isInsertAfter |
46,552 | boolean (final ComponentDragObject dragObject, boolean isRow) { if (dragObject.getComponentCount() == 0) { return true; } int cell = isRow ? dragObject.getRelativeRow(0) : dragObject.getRelativeCol(0); for(int i=1; i<dragObject.getComponentCount(); i++) { int cell2 = isRow ? dragObject.getRelativeRow(i) : dragObject.ge... | isSameCell |
46,553 | boolean (final int size) { int endColumn = getInsertCell(); if (isInsertAfter()) endColumn++; int row = getOppositeCell(); for(int r=row; r<row+size; r++) { for(int col = 0; col<endColumn; col++) { RadComponent component; if (isColumnInsert()) { component = RadAbstractGridLayoutManager.getComponentAtGrid(getContainer()... | isInsertInsideComponent |
46,554 | String () { int displayRow = myRow + getContainer().getGridLayoutManager().getCellIndexBase(); int displayColumn = myColumn + getContainer().getGridLayoutManager().getCellIndexBase(); String displayName = getContainer().getDisplayName(); return switch (myMode) { case ColumnBefore -> UIDesignerBundle.message("insert.fee... | getInsertFeedbackTooltip |
46,555 | Rectangle (final GridInsertMode mode, final RadContainer container, final Rectangle cellRect, final Rectangle feedbackRect) { final RadAbstractGridLayoutManager manager = container.getGridLayoutManager(); int[] vGridLines = manager.getVerticalGridLines(container); int[] hGridLines = manager.getHorizontalGridLines(conta... | getInsertFeedbackPosition |
46,556 | void (final GuiEditor editor, final RadComponent[] components, final GridConstraints @Nullable [] constraintsToAdjust, final ComponentDragObject dragObject) { int row = getRow(); int col = getColumn(); RadContainer container = getContainer(); boolean canGrow = isRowInsert() ? dragObject.isVGrow() : dragObject.isHGrow()... | processDrop |
46,557 | int (RadContainer container, int cell, int cellsToInsert, boolean canGrow, boolean isRow, boolean isBefore, GridConstraints[] constraintsToAdjust) { int insertedCells = 1; for(int i=0; i<cellsToInsert; i++) { insertedCells = container.getGridLayoutManager().insertGridCells(container, cell, isRow, isBefore, canGrow); } ... | insertGridCells |
46,558 | void (final GridConstraints @Nullable [] constraintsToAdjust, final boolean isRow, final int index, final int count) { if (constraintsToAdjust != null) { for(GridConstraints constraints: constraintsToAdjust) { GridChangeUtil.adjustConstraintsOnInsert(constraints, isRow, index, count); } } } | checkAdjustConstraints |
46,559 | ComponentDropLocation (Direction direction) { if (isRowInsert()) { if (direction == Direction.RIGHT) { if (getColumn() < myContainer.getGridColumnCount()-1) { return new GridInsertLocation(myContainer, getRow(), FormEditingUtil.adjustForGap(myContainer, getColumn()+1, false, 1), getMode()); } return new GridInsertLocat... | getAdjacentLocation |
46,560 | ComponentDropLocation (final Direction direction) { final RadContainer parent = myContainer.getParent(); if (parent.getLayoutManager().isGrid()) { final GridConstraints c = myContainer.getConstraints(); return switch (direction) { case LEFT -> new GridInsertLocation(parent, c.getRow(), c.getColumn(), GridInsertMode.Col... | getLocationAtParent |
46,561 | void (@NotNull GuiEditor source) { hideIntentionHint(); updateIntentionHintVisibility(); } | selectedComponentChanged |
46,562 | Rectangle () { final ArrayList<RadComponent> list = FormEditingUtil.getSelectedComponents(getEditor()); if (list.size() != 1) { return null; } RadComponent c = list.get(0); return SwingUtilities.convertRectangle(c.getDelegee().getParent(), c.getBounds(), getEditor().getGlassLayer()); } | getErrorBounds |
46,563 | Rectangle (final JViewport viewPort) { // allow some overlap with editor bounds Rectangle rc = viewPort.getViewRect(); rc.grow(4, 4); return rc; } | getHintClipRect |
46,564 | boolean (final ComponentDragObject dragObject) { if (dragObject.getComponentCount() != 1) return false; return super.canDrop(dragObject); } | canDrop |
46,565 | RadComponent (final int startRow, final int startCol, final int rowSpan, final int colSpan) { if (rowSpan == 1 && colSpan == 1) { // we will replace the overlapping component, so it shouldn't prevent drop return null; } return super.findOverlappingComponent(startRow, startCol, rowSpan, colSpan); } | findOverlappingComponent |
46,566 | void (final GuiEditor editor, final RadComponent[] components, final GridConstraints[] constraintsToAdjust, final ComponentDragObject dragObject) { RadComponent c = myContainer.getComponentAtGrid(myRow, myColumn); if (c != null) { FormEditingUtil.deleteComponents(Collections.singletonList(c), false); } super.processDro... | processDrop |
46,567 | void (final RadContainer container) { if (container.getWidth() * container.getHeight() >= 4096*4096) return; int count = container.getComponentCount(); int[] rows = new int[count]; int[] rowSpans = new int[count]; int[] cols = new int[count]; int[] colSpans = new int[count]; for(int i=0; i<count; i++) { GridConstraints... | update |
46,568 | void (final RadContainer container) { final int width = container.getWidth(); final int height = container.getHeight(); if (width * height >= 4096*4096) return; Graphics2D g2d = (Graphics2D) myImage.getGraphics(); try { g2d.setComposite(AlphaComposite.Clear); g2d.fillRect(0, 0, width, height); g2d.setComposite(AlphaCom... | repaint |
46,569 | void (final Graphics2D g2d, final int col, final int row, final int rowSpan) { // protect against invalid constraints if (col < 0 || col >= myVertGridLines.length || row < 0 || row+rowSpan >= myHorzGridLines.length) return; g2d.drawLine(myVertGridLines [col], myHorzGridLines [row]+4, myVertGridLines [col], myHorzGridLi... | drawVertGridLine |
46,570 | void (final Graphics2D g2d, final int row, final int col, final int colSpan) { // protect against invalid constraints if (col < 0 || col+colSpan >= myVertGridLines.length || row < 0 || row >= myHorzGridLines.length) return; g2d.drawLine(myVertGridLines [col]+4, myHorzGridLines [row], myVertGridLines [col + colSpan]-4, ... | drawHorzGridLine |
46,571 | boolean (final int[] newArray, final int[] oldArray) { if (oldArray == null || newArray.length != oldArray.length) { return false; } for(int i=0; i<oldArray.length; i++) { if (newArray [i] != oldArray [i]) { return false; } } return true; } | arraysEqual |
46,572 | boolean (final RadContainer container) { return myImage.getWidth(null) == container.getWidth() && myImage.getHeight(null) == container.getHeight(); } | sizeEquals |
46,573 | Image () { return myImage; } | getImage |
46,574 | Image (final RadContainer container) { //noinspection unchecked SoftReference<CachedGridImage> imageRef = (SoftReference<CachedGridImage>) container.getDelegee().getClientProperty(CACHED_GRID_IMAGE_KEY); CachedGridImage gridImage = dereference(imageRef); if (gridImage != null && gridImage.sizeEquals(container)) { gridI... | getGridImage |
46,575 | void (final KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_SHIFT) { if (e.getID() == KeyEvent.KEY_PRESSED) { if ((myCurrentProcessor != null && myCurrentProcessor.isDragActive()) || (PaletteToolWindowManager.getInstance(myEditor).getActiveItem(ComponentItem.class) != null && myCurrentProcessor != myInsertComponentProc... | processKeyEvent |
46,576 | Point () { return myLastMousePosition; } | getLastMousePosition |
46,577 | void (final MouseEvent e) { myLastMousePosition = e.getPoint(); if (myCurrentProcessor != null && myCurrentProcessor.isDragActive()) { return; } // Here is a good place to handle right and wheel mouse clicking. All mouse // motion events should go further if (e.isPopupTrigger()) { RadComponent component = FormEditingUt... | processMouseEvent |
46,578 | void (final MouseEvent e) { final RadComponent component = FormEditingUtil.getRadComponentAt(myEditor.getRootContainer(), e.getX(), e.getY()); LOG.assertTrue(component != null); // Dragger final RadComponent oldDraggerHost = FormEditingUtil.getDraggerHost(myEditor); RadComponent newDraggerHost = null; for (RadComponent... | updateDragger |
46,579 | void () { final RadComponent oldDraggerHost = FormEditingUtil.getDraggerHost(myEditor); if (oldDraggerHost != null) { oldDraggerHost.setDragger(false); myEditor.repaintLayeredPane(); } } | removeDragger |
46,580 | void (final MouseEvent e) { if(myCurrentProcessor != null){ if (myCurrentProcessor.needMousePressed()) { myCurrentProcessor.processMouseEvent(e); return; } // Sun sometimes skips mouse released events... myCurrentProcessor.cancelOperation(); myCurrentProcessor = null; } RadComponent component = null; final RadComponent... | processMousePressed |
46,581 | void (final MouseEvent e) { if(e.getClickCount() != 2){ // inplace editing starts with double click return; } myEditor.getInplaceEditingLayer().startInplaceEditing(e.getX(), e.getY()); } | processMouseClicked |
46,582 | boolean () { if (myCurrentProcessor != null) { if (myCurrentProcessor.cancelOperation()){ myCurrentProcessor = null; myEditor.getLayeredPane().setCursor(Cursor.getDefaultCursor()); myEditor.getActiveDecorationLayer().removeFeedback(); return true; } } else if (PaletteToolWindowManager.getInstance(myEditor).getActiveIte... | cancelOperation |
46,583 | void (final boolean enabled) { myInsertFeedbackEnabled = enabled; } | setInsertFeedbackEnabled |
46,584 | void (final ArrayList<RadComponent> componentsToPaste, final IntList xs, final IntList ys) { removeDragger(); myEditor.hideIntentionHint(); myCurrentProcessor = new PasteProcessor(myEditor, componentsToPaste, xs, ys); myCurrentProcessor.processMouseEvent(new MouseEvent(myEditor, MouseEvent.MOUSE_MOVED, 0, 0, myLastMous... | startPasteProcessor |
46,585 | void (@NotNull final ComponentItem componentToInsert, final ComponentDropLocation location) { removeDragger(); myEditor.hideIntentionHint(); myInsertComponentProcessor.setComponentToInsert(componentToInsert); myInsertComponentProcessor.setLastLocation(location); myCurrentProcessor = myInsertComponentProcessor; } | startInsertProcessor |
46,586 | void () { myCurrentProcessor = null; myEditor.getLayeredPane().setCursor(null); } | stopCurrentProcessor |
46,587 | boolean () { return myCurrentProcessor != null; } | isProcessorActive |
46,588 | void (Graphics2D g2d, Rectangle rc) { g2d.setColor(PlatformColors.BLUE); g2d.setStroke(new BasicStroke(1.5f)); int right = rc.x + rc.width - 1; int bottom = rc.y + rc.height - 1; int midX = (int) rc.getCenterX(); g2d.drawLine(rc.x, rc.y, midX, rc.y+GridInsertLocation.INSERT_ARROW_SIZE); g2d.drawLine(right, rc.y, midX, ... | paintFeedback |
46,589 | void () { new MyNavigateButtonSelectionWatcher(myEditor).setupListeners(); } | installSelectionWatcher |
46,590 | void (final Graphics g) { layoutListenerNavigateButtons(); // Paint active decorators paintChildren(g); } | paint |
46,591 | void () { for(Map.Entry<RadComponent, ListenerNavigateButton> e: myNavigateButtons.entrySet()) { RadComponent c = e.getKey(); ListenerNavigateButton btn = e.getValue(); if (btn.isVisible()) { Rectangle rc = SwingUtilities.convertRectangle(c.getDelegee().getParent(), c.getBounds(), this); btn.setLocation(rc.x, rc.y+rc.h... | layoutListenerNavigateButtons |
46,592 | void (Component relativeTo, final Rectangle rc, final String tooltipText) { putFeedback(relativeTo, rc, myRectangleFeedbackPainter, tooltipText); } | putFeedback |
46,593 | void (Component relativeTo, Rectangle rc, final FeedbackPainter feedbackPainter, final String tooltipText) { rc = SwingUtilities.convertRectangle(relativeTo, rc, this); myFeedbackPainterPanel.setBounds(rc); myFeedbackPainterPanel.setPainter(feedbackPainter != null ? feedbackPainter : myRectangleFeedbackPainter); Point ... | putFeedback |
46,594 | void (Component relativeTo, Point pnt, @Nullable @NlsSafe String text) { if (text == null) { if (myToolTip.getParent() == this) { remove(myToolTip); repaint(); } } else { String oldText = myToolTip.getTipText(); myToolTip.setTipText(text); pnt = SwingUtilities.convertPoint(relativeTo, pnt, this); Dimension prefSize = m... | putToolTip |
46,595 | void () { boolean needRepaint = false; if (myFeedbackPainterPanel.getParent() == this) { remove(myFeedbackPainterPanel); needRepaint = true; } if (myToolTip.getParent() == this) { remove(myToolTip); needRepaint = true; } if (needRepaint) repaint(); } | removeFeedback |
46,596 | void (Graphics2D g2d, Rectangle rc) { g2d.setColor(PlatformColors.BLUE); g2d.setStroke(new BasicStroke(2.5f)); // give space for stroke to be painted g2d.drawRect(rc.x+1, rc.y+1, rc.x+rc.width-2, rc.y+rc.height-2); } | paintFeedback |
46,597 | void (Graphics g) { super.paintComponent(g); Graphics2D g2d = (Graphics2D) g; final Stroke savedStroke = g2d.getStroke(); final Color savedColor = g2d.getColor(); try { myFeedbackPainter.paintFeedback(g2d, new Rectangle(0, 0, getWidth(), getHeight())); } finally { g2d.setStroke(savedStroke); g2d.setColor(savedColor); }... | paintComponent |
46,598 | void (final FeedbackPainter feedbackPainter) { myFeedbackPainter = feedbackPainter; } | setPainter |
46,599 | void (RadComponent component, boolean selected) { ListenerNavigateButton btn = myNavigateButtons.get(component); if (selected) { ReadAction.nonBlocking(() -> component.getBinding() != null ? ListenerNavigateButton.prepareActionGroup(component) : null) .finishOnUiThread(ModalityState.nonModal(), group -> { if (group != ... | selectionChanged |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.