Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
282,800 | void (ListCellRenderer renderer) { myRenderer = renderer; setDefaultRenderer(Object.class, new TableCellRenderer() { @Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { final int index = getModel().toListIndex(row, column); if (isSelected) { myList.addSelectionInterval(index, index); } else { myList.removeSelectionInterval(index, index); } return myRenderer.getListCellRendererComponent(myList, value, index, isSelected, hasFocus); } }); } | setCellRenderer |
282,801 | Component (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { final int index = getModel().toListIndex(row, column); if (isSelected) { myList.addSelectionInterval(index, index); } else { myList.removeSelectionInterval(index, index); } return myRenderer.getListCellRendererComponent(myList, value, index, isSelected, hasFocus); } | getTableCellRendererComponent |
282,802 | void (int maxRows) { if (maxRows < 1) { throw new IllegalArgumentException("Should be greater than 0"); } setModel(new FixedRowsModel(myModel, maxRows)); getModel().fireTableStructureChanged(); } | setFixedRowsMode |
282,803 | MultiColumnListModel () { return (MultiColumnListModel)super.getModel(); } | getModel |
282,804 | void (int maxColumns) { if (maxColumns < 1) { throw new IllegalArgumentException("Should be greater than 0"); } setModel(new FixedColumnsModel(myModel, maxColumns)); getModel().fireTableStructureChanged(); } | setFixedColumnsMode |
282,805 | JList () { return myList; } | getDelegate |
282,806 | Dimension () { if (myPrefSize == null) { Dimension dimension = new Dimension(); int rowHeight = 0; for (int column = 0; column < getColumnCount(); column++) { int columnWidth = 0; for (int row = 0; row < getRowCount(); row++) { final TableCellRenderer renderer = getCellRenderer(row, column); if (renderer != null) { final Object value = getValueAt(row, column); final Component component = renderer.getTableCellRendererComponent(this, value, true, true, row, column); if (component != null) { final Dimension size = component.getPreferredSize(); rowHeight = Math.max(size.height, rowHeight); columnWidth = Math.max(size.width, columnWidth); } } } getColumnModel().getColumn(column).setWidth(columnWidth + 5); dimension.width += columnWidth + 5; } dimension.height = getRowCount() * rowHeight; myPrefSize = dimension; } return myPrefSize; } | getPreferredSize |
282,807 | void (String[] args) { final JFrame frame = new JFrame("Test"); frame.setSize(300, 300); frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); final MultiColumnList list = new MultiColumnList("1", 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13); list.setFixedColumnsMode(5); frame.getContentPane().add(list); frame.setVisible(true); } | main |
282,808 | void (Graphics g) { super.paintComponent(g); myEmptyText.paintStatusText(g); } | paintComponent |
282,809 | StatusText () { return myEmptyText; } | getEmptyText |
282,810 | void (boolean stored) { if (stored) { myEmptyText.setText(IdeBundle.message("text.password.hidden"), SimpleTextAttributes.GRAY_ATTRIBUTES); } else { myEmptyText.clear(); } } | setPasswordIsStored |
282,811 | JComponent () { return myAnchor; } | getAnchor |
282,812 | void (@Nullable JComponent anchor) { this.myAnchor = anchor; } | setAnchor |
282,813 | Dimension () { return myAnchor == null || myAnchor == this ? super.getPreferredSize() : myAnchor.getPreferredSize(); } | getPreferredSize |
282,814 | Dimension () { return myAnchor == null || myAnchor == this ? super.getMinimumSize() : myAnchor.getMinimumSize(); } | getMinimumSize |
282,815 | Rectangle () { Insets insets = ObjectUtils.notNull(getInsets(), JBInsets.emptyInsets()); Insets margin = ObjectUtils.notNull(getMargin(), JBInsets.emptyInsets()); Insets ipad = getComponent().getIpad(); Dimension size = getSize(); int left = insets.left + margin.left - ipad.left - 1; int top = insets.top + margin.top - ipad.top + 1; int right = size.width - (insets.right + margin.right - ipad.right); return new Rectangle(left, top, right - left, getRowHeight()); } | getTextComponentBound |
282,816 | void (@NotNull DocumentEvent e) { invalidate(); revalidate(); repaint(); } | textChanged |
282,817 | void () { super.updateUI(); if (getParent() != null) myEmptyText.resetFont(); } | updateUI |
282,818 | Graphics (Graphics graphics) { return JBSwingUtilities.runGlobalCGTransform(this, super.getComponentGraphics(graphics)); } | getComponentGraphics |
282,819 | Dimension () { if (isPreferredSizeSet()) return super.getPreferredSize(); int width = 0; FontMetrics fontMetrics = getFontMetrics(getFont()); for (String line : getText().split("\n")) { width = Math.max(width, fontMetrics.stringWidth(line)); } Dimension d = super.getPreferredSize(); Insets insets = getInsets(); d.width = Math.min(d.width, width + insets.left + insets.right); return d; } | getPreferredSize |
282,820 | void (Rectangle r) { JViewport viewport = ComponentUtil.getParentOfType((Class<? extends JViewport>)JViewport.class, (Component)this); if (viewport != null) { r = SwingUtilities.convertRectangle(this, r, viewport); viewport.scrollRectToVisible(r); } } | scrollRectToVisible |
282,821 | StatusText () { return myEmptyText; } | getEmptyText |
282,822 | void (Graphics g) { super.paintComponent(g); if (!myEmptyText.getStatusTriggerText().isEmpty() && myEmptyText.isStatusVisible()) { g.setColor(getBackground()); Rectangle rect = new Rectangle(getSize()); JBInsets.removeFrom(rect, getInsets()); JBInsets.removeFrom(rect, getMargin()); ((Graphics2D)g).fill(rect); g.setColor(getForeground()); } myEmptyText.paintStatusText(g); } | paintComponent |
282,823 | void (@NotNull UIUtil.ComponentStyle componentStyle) { myComponentStyle = componentStyle; UIUtil.applyStyle(componentStyle, this); } | setComponentStyle |
282,824 | void (@NotNull UIUtil.FontColor fontColor) { myFontColor = fontColor; } | setFontColor |
282,825 | Color () { if (!isEnabled()) { return UIUtil.getLabelDisabledForeground(); } if (myFontColor != null) { return UIUtil.getLabelFontColor(myFontColor); } return super.getForeground(); } | getForeground |
282,826 | void (Color fg) { myFontColor = null; super.setForeground(fg); if (myEditorPane != null) { updateEditorPaneStyle(); } } | setForeground |
282,827 | void (boolean enabled) { super.setEnabled(enabled); if (myEditorPane != null) { myEditorPane.setEnabled(enabled); } } | setEnabled |
282,828 | void (@Nullable JComponent anchor) { myAnchor = anchor; } | setAnchor |
282,829 | JComponent () { return myAnchor; } | getAnchor |
282,830 | Dimension () { if (myAnchor != null && myAnchor != this) return myAnchor.getPreferredSize(); if (myEditorPane != null) return getLayout().preferredLayoutSize(this); return super.getPreferredSize(); } | getPreferredSize |
282,831 | Dimension () { if (myAnchor != null && myAnchor != this) return myAnchor.getMinimumSize(); if (myEditorPane != null) return getLayout().minimumLayoutSize(this); return super.getMinimumSize(); } | getMinimumSize |
282,832 | Dimension () { if (myAnchor != null && myAnchor != this) return myAnchor.getMaximumSize(); if (myEditorPane != null) { return getLayout().maximumLayoutSize(this); } return super.getMaximumSize(); } | getMaximumSize |
282,833 | BorderLayout () { return (BorderLayout)super.getLayout(); } | getLayout |
282,834 | void (Graphics g) { if (myEditorPane == null) { super.paintComponent(g); } } | paintComponent |
282,835 | void (@NlsContexts.Label String text) { super.setText(text); if (myEditorPane != null) { myEditorPane.setText(getText()); updateEditorPaneStyle(); checkMultiline(); updateTextAlignment(); } } | setText |
282,836 | void (Icon icon) { super.setIcon(icon); if (myIconLabel != null) { myIconLabel.setIcon(icon); updateLayout(); updateTextAlignment(); } } | setIcon |
282,837 | void (Icon icon, int horizontalAlignment, int verticalAlignment) { super.setIcon(icon); if (myIconLabel != null) { myIconLabel.setIcon(icon); myIconLabel.setHorizontalAlignment(horizontalAlignment); myIconLabel.setVerticalAlignment(verticalAlignment); updateLayout(); updateTextAlignment(); } } | setIconWithAlignment |
282,838 | void (boolean focusable) { super.setFocusable(focusable); if (myEditorPane != null) { myEditorPane.setFocusable(focusable); } } | setFocusable |
282,839 | void () { String text = getText(); myMultiline = text != null && StringUtil.removeHtmlTags(text).contains(System.lineSeparator()); } | checkMultiline |
282,840 | void (Font font) { super.setFont(font); if (myEditorPane != null) { updateEditorPaneStyle(); updateTextAlignment(); } } | setFont |
282,841 | void (int iconTextGap) { super.setIconTextGap(iconTextGap); if (myEditorPane != null) { updateLayout(); } } | setIconTextGap |
282,842 | void (int x, int y, int width, int height) { super.setBounds(x, y, width, height); if (myEditorPane != null) { updateTextAlignment(); } } | setBounds |
282,843 | void (int textPosition) { super.setVerticalTextPosition(textPosition); if (myEditorPane != null) { updateTextAlignment(); } } | setVerticalTextPosition |
282,844 | void (int textPosition) { super.setHorizontalTextPosition(textPosition); if (myEditorPane != null) { updateLayout(); } } | setHorizontalTextPosition |
282,845 | void () { setLayout(new BorderLayout(getIcon() == null ? 0 : getIconTextGap(), 0)); int position = getHorizontalTextPosition(); String iconConstraint = getComponentOrientation().isLeftToRight() ? BorderLayout.WEST : BorderLayout.EAST; if (getComponentOrientation().isLeftToRight() && position == SwingConstants.LEADING) iconConstraint = BorderLayout.EAST; if (!getComponentOrientation().isLeftToRight() && position == SwingConstants.TRAILING) iconConstraint = BorderLayout.EAST; if (position == SwingConstants.LEFT) iconConstraint = BorderLayout.EAST; add(myIconLabel, iconConstraint); add(myEditorPane, BorderLayout.CENTER); } | updateLayout |
282,846 | void () { super.updateUI(); if (myEditorPane != null) { //init inner components again (if any) to provide proper colors when LAF is being changed setCopyable(false); setCopyable(true); } GraphicsUtil.setAntialiasingType(this, AntialiasingType.getAAHintForSwingComponent()); } | updateUI |
282,847 | HyperlinkListener () { return BrowserHyperlinkListener.INSTANCE; } | createHyperlinkListener |
282,848 | JBLabel (boolean copyable) { if (copyable ^ myEditorPane != null) { if (myEditorPane == null) { final JLabel ellipsisLabel = new JBLabel("..."); myIconLabel = new JLabel(getIcon()); myEditorPane = new JEditorPane() { @Override public void paint(Graphics g) { Dimension size = getSize(); boolean paintEllipsis = getPreferredSize().width > size.width && !myMultiline && !myAllowAutoWrapping; if (!paintEllipsis) { super.paint(g); } else { Dimension ellipsisSize = ellipsisLabel.getPreferredSize(); int endOffset = size.width - ellipsisSize.width; try { // do not paint half of the letter endOffset = modelToView(viewToModel(new Point(endOffset, getHeight() / 2)) - 1).x; } catch (BadLocationException ignore) { } Shape oldClip = g.getClip(); g.clipRect(0, 0, endOffset, size.height); super.paint(g); g.setClip(oldClip); g.translate(endOffset, 0); ellipsisLabel.setSize(ellipsisSize); ellipsisLabel.paint(g); g.translate(-endOffset, 0); } } }; myEditorPane.addFocusListener(new FocusAdapter() { @Override public void focusLost(FocusEvent e) { if (myEditorPane == null) return; int caretPosition = myEditorPane.getCaretPosition(); myEditorPane.setSelectionStart(caretPosition); myEditorPane.setSelectionEnd(caretPosition); } }); myEditorPane.setContentType("text/html"); myEditorPane.setEditable(false); myEditorPane.setBackground(UIUtil.TRANSPARENT_COLOR); myEditorPane.setOpaque(false); myEditorPane.addHyperlinkListener(createHyperlinkListener()); ComponentUtil.putClientProperty(myEditorPane, UIUtil.NOT_IN_HIERARCHY_COMPONENTS, Collections.singleton(ellipsisLabel)); myEditorPane.setEditorKit(HTMLEditorKitBuilder.simple()); updateEditorPaneStyle(); if (myEditorPane.getCaret() instanceof DefaultCaret) { ((DefaultCaret)myEditorPane.getCaret()).setUpdatePolicy(DefaultCaret.NEVER_UPDATE); } myEditorPane.setText(getText()); checkMultiline(); myEditorPane.setCaretPosition(0); updateLayout(); updateTextAlignment(); // Remove label from tab order because selectable labels doesn't have visible selection state setFocusTraversalPolicyProvider(true); setFocusTraversalPolicy(new DisabledTraversalPolicy()); } else { removeAll(); myEditorPane = null; myIconLabel = null; } } return this; } | setCopyable |
282,849 | void (Graphics g) { Dimension size = getSize(); boolean paintEllipsis = getPreferredSize().width > size.width && !myMultiline && !myAllowAutoWrapping; if (!paintEllipsis) { super.paint(g); } else { Dimension ellipsisSize = ellipsisLabel.getPreferredSize(); int endOffset = size.width - ellipsisSize.width; try { // do not paint half of the letter endOffset = modelToView(viewToModel(new Point(endOffset, getHeight() / 2)) - 1).x; } catch (BadLocationException ignore) { } Shape oldClip = g.getClip(); g.clipRect(0, 0, endOffset, size.height); super.paint(g); g.setClip(oldClip); g.translate(endOffset, 0); ellipsisLabel.setSize(ellipsisSize); ellipsisLabel.paint(g); g.translate(-endOffset, 0); } } | paint |
282,850 | void (FocusEvent e) { if (myEditorPane == null) return; int caretPosition = myEditorPane.getCaretPosition(); myEditorPane.setSelectionStart(caretPosition); myEditorPane.setSelectionEnd(caretPosition); } | focusLost |
282,851 | void () { myEditorPane.setFont(getFont()); myEditorPane.setForeground(getForeground()); EditorKit kit = myEditorPane.getEditorKit(); if (kit instanceof HTMLEditorKit) { StyleSheet css = ((HTMLEditorKit)kit).getStyleSheet(); css.addRule("body, p {" + "color:#" + ColorUtil.toHex(getForeground()) + ";" + "font-family:" + getFont().getFamily() + ";" + "font-size:" + getFont().getSize() + "pt;" + "white-space:" + (myAllowAutoWrapping ? "normal" : "nowrap") + ";}"); } } | updateEditorPaneStyle |
282,852 | JBLabel (boolean allowAutoWrapping) { myAllowAutoWrapping = allowAutoWrapping; return this; } | setAllowAutoWrapping |
282,853 | boolean () { return myAllowAutoWrapping; } | isAllowAutoWrapping |
282,854 | void () { if (myEditorPane == null) return; myEditorPane.setBorder(null); // clear border int position = getVerticalTextPosition(); if (position == TOP) { return; } int preferredHeight = myEditorPane.getPreferredSize().height; int availableHeight = getHeight(); if (availableHeight <= preferredHeight) { return; } // since the 'top' value is in real already-scaled pixels, should use swing's EmptyBorder //noinspection UseDPIAwareBorders myEditorPane.setBorder(new EmptyBorder(position == CENTER ? (availableHeight - preferredHeight + 1) / 2 : availableHeight - preferredHeight, 0, 0, 0)); } | updateTextAlignment |
282,855 | JBLabel (Border border) { setBorder(border); return this; } | withBorder |
282,856 | JBLabel (JBFont font) { setFont(font); return this; } | withFont |
282,857 | JBLabel () { setOpaque(false); return this; } | andTransparent |
282,858 | JBLabel () { setOpaque(true); return this; } | andOpaque |
282,859 | void () { Component component = supplier.get(); if (component != null) { component.repaint(); } } | onValueUpdate |
282,860 | ColorKey (int light, int dark, @NotNull String name) { return EditorColorsUtil.createColorKey(name, new JBColor(new Color(light, true), new Color(dark, true))); } | key |
282,861 | Color (@Nullable Component component, @NotNull ColorKey key) { Color color = EditorColorsUtil.getColor(component, key); assert color != null : "default color is not specified for " + key; boolean useContrastScrollbars = LoadingState.CONFIGURATION_STORE_INITIALIZED.isOccurred() && UISettings.getInstance().getUseContrastScrollbars(); if (useContrastScrollbars) { color = updateTransparency(color, key); } return color; } | getColor |
282,862 | Color (Color color, ColorKey key) { if (!CONTRAST_ELEMENTS_KEYS.contains(key)) return color; int alpha = Registry.intValue("contrast.scrollbars.alpha.level"); if (alpha > 0) { alpha = Integer.min(alpha, 255); } else { alpha = UIUtil.isUnderDarcula() ? DARK_ALPHA : LIGHT_ALPHA; } return ColorUtil.toAlpha(color, alpha); } | updateTransparency |
282,863 | Color (@NotNull Supplier<? extends Component> supplier, @NotNull ColorKey key) { return JBColor.lazy(() -> getColor(supplier.get(), key)); } | getColor |
282,864 | Color (@NotNull Supplier<? extends Component> supplier, @NotNull ColorKey transparent, @NotNull ColorKey opaque) { return JBColor.lazy(() -> { Component component = supplier.get(); return getColor(component, component != null && DefaultScrollBarUI.isOpaque(component) ? opaque : transparent); }); } | getColor |
282,865 | void (@NotNull Component component) { component.setBackground(JBColor.lazy(() -> getColor(component, BACKGROUND))); } | setBackground |
282,866 | void (@NotNull Graphics2D g, int x, int y, int width, int height, @Nullable Float value) { double mixer = value == null ? 0 : value.doubleValue(); Color fill = fillProducer.produce(mixer); if (0 >= fill.getAlpha()) return; // optimization g.setPaint(fill); RectanglePainter.FILL.paint(g, x, y, width, height, null); } | paint |
282,867 | void (@NotNull Graphics2D g, int x, int y, int width, int height, @Nullable Float value) { double mixer = value == null ? 0 : value.doubleValue(); Color fill = fillProducer.produce(mixer); Color draw = drawProducer.produce(mixer); if (ignoreBorder() || fill.getRGB() == draw.getRGB()) draw = null; // without border int arc = 0; if (SystemInfoRt.isMac) { int margin = macMargin(draw != null); x += margin; y += margin; width -= margin + margin; height -= margin + margin; arc = Math.min(width, height); } RectanglePainter.paint(g, x, y, width, height, arc, fill, draw); } | paint |
282,868 | int (boolean withBorder) { return withBorder ? 1 : 2; } | macMargin |
282,869 | boolean () { return false; } | ignoreBorder |
282,870 | int (boolean withBorder) { return 0; } | macMargin |
282,871 | boolean () { return true; } | ignoreBorder |
282,872 | AccessibleContext () { if (accessibleContext == null) { accessibleContext = new AccessibleJBCheckBoxMenuItem(); } return accessibleContext; } | getAccessibleContext |
282,873 | AccessibleRole () { // The base class implementation returns the CHECK_BOX role, which is incorrect // for a menu item. return AccessibleRole.MENU_ITEM; } | getAccessibleRole |
282,874 | boolean (Component component) { if (component == null || !component.isShowing() || !LoadingState.COMPONENTS_REGISTERED.isOccurred()) { return false; } Application application = getApplication(); if (application == null || PowerSaveMode.isEnabled() || RemoteDesktopService.isRemoteSession()) { return false; } UISettings settings = UISettings.getInstanceOrNull(); return settings != null && settings.getSmoothScrolling(); } | isEligibleFor |
282,875 | boolean () { return Registry.is("idea.true.smooth.scrolling.high.precision", true); } | isHighPrecisionEnabled |
282,876 | boolean () { return Registry.is("idea.true.smooth.scrolling.pixel.perfect", true); } | isPixelPerfectEnabled |
282,877 | boolean () { return Registry.is("idea.true.smooth.scrolling.debug", false); } | isDebugEnabled |
282,878 | boolean () { return Registry.is("ide.scroll.background.auto", true); } | isBackgroundFromView |
282,879 | boolean (JViewport viewport) { Component view = viewport == null ? null : viewport.getView(); return !isNotSupportedYet(view) && Registry.is("ide.scroll.layout.header.over.corner", true); } | isHeaderOverCorner |
282,880 | boolean (Component view) { return view instanceof JTable; } | isNotSupportedYet |
282,881 | boolean () { return Registry.is("ide.scroll.align.component", true); } | isGapNeededForAnyComponent |
282,882 | boolean () { return Registry.is("mac.scroll.horizontal.gap", false); } | isHorizontalGapNeededOnMac |
282,883 | boolean () { return Registry.is("ide.scroll.thumb.small.if.opaque", false); } | isThumbSmallIfOpaque |
282,884 | boolean (JScrollBar scrollbar) { Window window = (Window)scrollbar.getTopLevelAncestor(); if (window instanceof JDialog && "Commit Changes".equals(((JDialog)window).getTitle())) { return false; } if (!(window instanceof RootPaneContainer)) { return true; } Component[] components = ((RootPaneContainer)window).getContentPane().getComponents(); if (components.length == 1 && components[0].getClass().getName().contains("DiffWindow")) { return false; } if (components.length == 2 && components[0] instanceof Container) { Component[] subComponents = ((Container)components[0]).getComponents(); if (subComponents.length == 1) { String name = subComponents[0].getClass().getName(); if (name.contains("DiffWindow") || name.contains("MergeWindow")) { return false; } } } return true; } | isInterpolationEligibleFor |
282,885 | void (int value, int delay) { if (!myProcessEvents) { return; } if (Objects.equals(getTarget(), value)) { return; } long moment = System.nanoTime(); long elapsed = (moment - myPreviousEventMoment); if (mySegments.isEmpty()) { mySegments.add(new Line(new Position(moment, myInput.get()), new Position(moment + delay * 1000000L, value))); } else { Segment segment = mySegments.getLast(); mySegments.add(new Line(new Position(segment.getEnd().getMoment(), segment.getEnd().getValue()), new Position(segment.getEnd().getMoment() + elapsed, value))); } myPreviousEventMoment = moment; if (!myTimer.isRunning()) { myTimer.start(); } } | setTarget |
282,886 | int () { return mySegments.isEmpty() ? myInput.get() : mySegments.getLast().getEnd().getValue(); } | getTarget |
282,887 | void (ActionEvent event) { long moment = System.nanoTime(); Segment segment = null; while (!mySegments.isEmpty()) { segment = mySegments.getFirst(); if (segment.getEnd().getMoment() < moment) { mySegments.removeFirst(); continue; } Integer v = segment.getValueAt(moment); if (v != null && !Objects.equals(v, myInput.get())) { setValue(v); } break; } if (mySegments.isEmpty() && segment != null) { setValue(segment.getEnd().getValue()); } if (moment > myPreviousEventMoment + TIMEOUT) { myTimer.stop(); } } | actionPerformed |
282,888 | void (Integer v) { myProcessEvents = false; myOutput.accept(v); myProcessEvents = true; } | setValue |
282,889 | Integer (long moment) { int range = myEnd.getValue() - myBegin.getValue(); long duration = myEnd.getMoment() - myBegin.getMoment(); long elapsed = moment - myBegin.getMoment(); double fraction = (double)elapsed / duration; return (int)Math.round((double)myBegin.getValue() + fraction * range); } | get |
282,890 | NonOpaquePanel (JPanel parent, JLabel text, AnimatedIcon icon) { parent.setLayout(new BorderLayout()); NonOpaquePanel result = new NonOpaquePanel(); result.setLayout(new BoxLayout(result, BoxLayout.Y_AXIS)); myProgressBar = new JProgressBar(); myProgressBar.setIndeterminate(true); myProgressBar.putClientProperty("ProgressBar.stripeWidth", 2); myProgressBar.putClientProperty("ProgressBar.flatEnds", Boolean.TRUE); result.add(myProgressBar); parent.add(result, isOnTop() ? BorderLayout.NORTH : BorderLayout.SOUTH); return result; } | customizeLoadingLayer |
282,891 | boolean () { return true; } | isOnTop |
282,892 | JProgressBar () { return myProgressBar; } | getProgressBar |
282,893 | void (boolean takeSnapshot) { if (loadingStarted.compareAndSet(false, true)) { super.startLoading(takeSnapshot); } } | startLoading |
282,894 | void () { startLoading(false); } | startLoading |
282,895 | void () { if (loadingStarted.compareAndSet(true, false)) { super.stopLoading(); } } | stopLoading |
282,896 | ScrollBarAnimationBehavior () { return new DefaultScrollBarAnimationBehavior(myTrack.animator, myThumb.animator); } | createBaseAnimationBehavior |
282,897 | boolean (Component c) { if (c.isOpaque()) return true; Container parent = c.getParent(); // do not allow non-opaque scroll bars, because default layout does not support them return parent instanceof JScrollPane && parent.getLayout() instanceof ScrollPaneLayout.UIResource; } | isOpaque |
282,898 | Insets (boolean small) { return small ? JBUI.insets(1) : JBUI.emptyInsets(); } | getInsets |
282,899 | int (int offset) { if (!isTrackExpandable()) return offset; float value = myAnimationBehavior.getTrackFrame(); if (value <= 0) return offset; if (value >= 1) return 0; return (int)(.5f + offset * (1 - value)); } | getTrackOffset |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.