bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
private PaintEvent coalescePaintEvents(PaintEvent queuedEvent, PaintEvent newEvent) { Rectangle r1 = queuedEvent.getUpdateRect(); Rectangle r2 = newEvent.getUpdateRect(); Rectangle union = r1.union(r2); int r1a = r1.width * r1.height; int r2a = r2.width * r2.height; int ua = union.width * union.height; if (ua >... | private PaintEvent coalescePaintEvents(PaintEvent queuedEvent, PaintEvent newEvent) { Rectangle r1 = queuedEvent.getUpdateRect(); Rectangle r2 = newEvent.getUpdateRect(); Rectangle union = r1.union(r2); int r1a = r1.width * r1.height; int r2a = r2.width * r2.height; int ua = union.width * union.height; if (ua >... | 35,926 |
private PaintEvent coalescePaintEvents(PaintEvent queuedEvent, PaintEvent newEvent) { Rectangle r1 = queuedEvent.getUpdateRect(); Rectangle r2 = newEvent.getUpdateRect(); Rectangle union = r1.union(r2); int r1a = r1.width * r1.height; int r2a = r2.width * r2.height; int ua = union.width * union.height; if (ua >... | private PaintEvent coalescePaintEvents(PaintEvent queuedEvent, PaintEvent newEvent) { Rectangle r1 = queuedEvent.getUpdateRect(); Rectangle r2 = newEvent.getUpdateRect(); Rectangle union = r1.union(r2); int r1a = r1.width * r1.height; int r2a = r2.width * r2.height; int ua = union.width * union.height; if (ua >... | 35,927 |
public boolean contains(int x, int y) { return x >= 0 && y >= 0 && x < width && y < height; } | public boolean contains(int x, int y) { return x >= 0 && y >= 0 && x < width && y < height; } | 35,928 |
public Image createImage(ImageProducer producer) { // XXX What if peer or producer is null? return peer.createImage(producer); } | public Image createImage(ImageProducer producer) { // XXX What if peer or producer is null? return peer.createImage(producer); } | 35,929 |
public VolatileImage createVolatileImage(int width, int height) { if (GraphicsEnvironment.isHeadless()) return null; GraphicsConfiguration config = getGraphicsConfiguration(); return config == null ? null : config.createCompatibleVolatileImage(width, height); } | public VolatileImage createVolatileImage(int width, int height) { if (GraphicsEnvironment.isHeadless()) return null; GraphicsConfiguration config = getGraphicsConfiguration(); return config == null ? null : config.createCompatibleVolatileImage(width, height); } | 35,931 |
public VolatileImage createVolatileImage(int width, int height) { if (GraphicsEnvironment.isHeadless()) return null; GraphicsConfiguration config = getGraphicsConfiguration(); return config == null ? null : config.createCompatibleVolatileImage(width, height); } | public VolatileImage createVolatileImage(int width, int height) { if (GraphicsEnvironment.isHeadless()) return null; GraphicsConfiguration config = getGraphicsConfiguration(); return config == null ? null : config.createCompatibleVolatileImage(width, height); } | 35,932 |
public void deliverEvent(Event e) { // XXX Add backward compatibility handling. } | public void deliverEvent(Event e) { // XXX Add backward compatibility handling. } | 35,933 |
public void disable() { setEnabled(false); } | public void disable() { setEnabled(false); } | 35,934 |
protected final void disableEvents(long eventsToDisable) { eventMask &= ~eventsToDisable; // forward new event mask to peer? } | protected final void disableEvents(long eventsToDisable) { eventMask &= ~eventsToDisable; // forward new event mask to peer? } | 35,935 |
public final void dispatchEvent(AWTEvent e) { // Some subclasses in the AWT package need to override this behavior, // hence the use of dispatchEventImpl(). dispatchEventImpl(e); if (peer != null && !e.consumed) peer.handleEvent(e); } | public final void dispatchEvent(AWTEvent e) { // Some subclasses in the AWT package need to override this behavior, // hence the use of dispatchEventImpl(). dispatchEventImpl(e); if (peer != null && !e.consumed) peer.handleEvent(e); } | 35,936 |
public final void dispatchEvent(AWTEvent e) { // Some subclasses in the AWT package need to override this behavior, // hence the use of dispatchEventImpl(). dispatchEventImpl(e); if (peer != null && !e.consumed) peer.handleEvent(e); } | public final void dispatchEvent(AWTEvent e) { // Some subclasses in the AWT package need to override this behavior, // hence the use of dispatchEventImpl(). dispatchEventImpl(e); if (peer != null && !e.consumed) peer.handleEvent(e); } | 35,937 |
void dispatchEventImpl(AWTEvent e) { //System.out.println("dispatchEventImpl(" + e + ") on "+ this + ", eventMask=" + eventMask); // Make use of event id's in order to avoid multiple instanceof tests. if (e.id <= ComponentEvent.COMPONENT_LAST && e.id >= ComponentEvent.COMPONENT_FIRST && (componentListener != null |... | void dispatchEventImpl(AWTEvent e) { //System.out.println("dispatchEventImpl(" + e + ") on "+ this + ", eventMask=" + eventMask); // Make use of event id's in order to avoid multiple instanceof tests. if (e.id <= ComponentEvent.COMPONENT_LAST && e.id >= ComponentEvent.COMPONENT_FIRST && (componentListener != null |... | 35,938 |
public void doLayout() { // nothing to do unless we're a container } | public void doLayout() { // nothing to do unless we're a container } | 35,939 |
public void enable() { setEnabled(true); } | public void enable() { setEnabled(true); } | 35,940 |
protected final void enableEvents(long eventsToEnable) { eventMask |= eventsToEnable; // TODO: Unlike Sun's implementation, I think we should try and // enable/disable events at the peer (gtk/X) level. This will avoid // clogging the event pipeline with useless mousemove events that // we arn't interested in, etc... | protected final void enableEvents(long eventsToEnable) { eventMask |= eventsToEnable; // TODO: Unlike Sun's implementation, I think we should try and // enable/disable events at the peer (gtk/X) level. This will avoid // clogging the event pipeline with useless mousemove events that // we arn't interested in, etc... | 35,941 |
public void enableInputMethods(boolean enable) { // XXX Implement. throw new Error("not implemented"); } | public void enableInputMethods(boolean enable) { // XXX Implement. throw new Error("not implemented"); } | 35,942 |
Component findNextFocusComponent(Component child) { return null; } | Component findNextFocusComponent(Component child) { return null; } | 35,943 |
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { if (changeSupport != null) changeSupport.firePropertyChange(propertyName, oldValue, newValue); } | protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { if (changeSupport != null) changeSupport.firePropertyChange(propertyName, oldValue, newValue); } | 35,944 |
String generateName() { // Component is abstract. return null; } | String generateName() { // Component is abstract. return null; } | 35,945 |
public AccessibleContext getAccessibleContext() { return null; } | public AccessibleContext getAccessibleContext() { return null; } | 35,946 |
public float getAlignmentX() { return CENTER_ALIGNMENT; } | public float getAlignmentX() { return CENTER_ALIGNMENT; } | 35,947 |
public float getAlignmentY() { return CENTER_ALIGNMENT; } | public float getAlignmentY() { return CENTER_ALIGNMENT; } | 35,948 |
public Color getBackground() { if (background != null) return background; return parent == null ? null : parent.getBackground(); } | public Color getBackground() { if (background != null) return background; return parent == null ? null : parent.getBackground(); } | 35,949 |
public Color getBackground() { if (background != null) return background; return parent == null ? null : parent.getBackground(); } | public Color getBackground() { if (background != null) return background; return parent == null ? null : parent.getBackground(); } | 35,950 |
public Rectangle getBounds() { return new Rectangle(x, y, width, height); } | public Rectangle getBounds() { return new Rectangle(x, y, width, height); } | 35,951 |
public ColorModel getColorModel() { GraphicsConfiguration config = getGraphicsConfiguration(); return config != null ? config.getColorModel() : getToolkit().getColorModel(); } | public ColorModel getColorModel() { GraphicsConfiguration config = getGraphicsConfiguration(); return config != null ? config.getColorModel() : getToolkit().getColorModel(); } | 35,952 |
public ColorModel getColorModel() { GraphicsConfiguration config = getGraphicsConfiguration(); return config != null ? config.getColorModel() : getToolkit().getColorModel(); } | public ColorModel getColorModel() { GraphicsConfiguration config = getGraphicsConfiguration(); return config != null ? config.getColorModel() : getToolkit().getColorModel(); } | 35,953 |
public Component getComponentAt(int x, int y) { return contains(x, y) ? this : null; } | public Component getComponentAt(int x, int y) { return contains(x, y) ? this : null; } | 35,954 |
public synchronized ComponentListener[] getComponentListeners() { return (ComponentListener[]) AWTEventMulticaster.getListeners(componentListener, ComponentListener.class); } | public synchronized ComponentListener[] getComponentListeners() { return (ComponentListener[]) AWTEventMulticaster.getListeners(componentListener, ComponentListener.class); } | 35,955 |
public ComponentOrientation getComponentOrientation() { return orientation; } | public ComponentOrientation getComponentOrientation() { return orientation; } | 35,956 |
public Cursor getCursor() { if (cursor != null) return cursor; return parent != null ? parent.getCursor() : Cursor.getDefaultCursor(); } | public Cursor getCursor() { if (cursor != null) return cursor; return parent != null ? parent.getCursor() : Cursor.getDefaultCursor(); } | 35,957 |
public DropTarget getDropTarget() { return dropTarget; } | public DropTarget getDropTarget() { return dropTarget; } | 35,958 |
public Container getFocusCycleRootAncestor() { // XXX Implement. throw new Error("not implemented"); } | public Container getFocusCycleRootAncestor() { // XXX Implement. throw new Error("not implemented"); } | 35,959 |
public synchronized FocusListener[] getFocusListeners() { return (FocusListener[]) AWTEventMulticaster.getListeners(focusListener, FocusListener.class); } | public synchronized FocusListener[] getFocusListeners() { return (FocusListener[]) AWTEventMulticaster.getListeners(focusListener, FocusListener.class); } | 35,960 |
public Set getFocusTraversalKeys(int id) { if (id < KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS || id > KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException(); Set s = null; if (focusTraversalKeys != null) s = focusTraversalKeys[id]; if (s == null && parent != null) s = parent.get... | public Set getFocusTraversalKeys(int id) { if (id < KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS || id > KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException(); Set s = null; if (focusTraversalKeys != null) s = focusTraversalKeys[id]; if (s == null && parent != null) s = parent.get... | 35,961 |
public Set getFocusTraversalKeys(int id) { if (id < KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS || id > KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException(); Set s = null; if (focusTraversalKeys != null) s = focusTraversalKeys[id]; if (s == null && parent != null) s = parent.get... | public Set getFocusTraversalKeys(int id) { if (id < KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS || id > KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException(); Set s = null; if (focusTraversalKeys != null) s = focusTraversalKeys[id]; if (s == null && parent != null) s = parent.get... | 35,962 |
public boolean getFocusTraversalKeysEnabled() { return focusTraversalKeysEnabled; } | public boolean getFocusTraversalKeysEnabled() { return focusTraversalKeysEnabled; } | 35,963 |
public Font getFont() { if (font != null) return font; return parent == null ? null : parent.getFont(); } | public Font getFont() { if (font != null) return font; return parent == null ? null : parent.getFont(); } | 35,964 |
public Font getFont() { if (font != null) return font; return parent == null ? null : parent.getFont(); } | public Font getFont() { if (font != null) return font; return parent == null ? null : parent.getFont(); } | 35,965 |
public FontMetrics getFontMetrics(Font font) { return peer == null ? getToolkit().getFontMetrics(font) : peer.getFontMetrics(font); } | public FontMetrics getFontMetrics(Font font) { return peer == null ? getToolkit().getFontMetrics(font) : peer.getFontMetrics(font); } | 35,966 |
public Color getForeground() { if (foreground != null) return foreground; return parent == null ? null : parent.getForeground(); } | public Color getForeground() { if (foreground != null) return foreground; return parent == null ? null : parent.getForeground(); } | 35,967 |
public Color getForeground() { if (foreground != null) return foreground; return parent == null ? null : parent.getForeground(); } | public Color getForeground() { if (foreground != null) return foreground; return parent == null ? null : parent.getForeground(); } | 35,968 |
public Graphics getGraphics() { if (peer != null) { Graphics gfx = peer.getGraphics(); if (gfx != null) return gfx; // create graphics for lightweight: Container parent = getParent(); if (parent != null) { gfx = parent.getGraphics(); Rectangle bounds = getBounds(); gfx.setClip(bounds); gfx.tr... | public Graphics getGraphics() { if (peer != null) { Graphics gfx = peer.getGraphics(); if (gfx != null) return gfx; // create graphics for lightweight: Container parent = getParent(); if (parent != null) { gfx = parent.getGraphics(); Rectangle bounds = getBounds(); gfx.setClip(bounds); gfx.tr... | 35,969 |
public Graphics getGraphics() { if (peer != null) { Graphics gfx = peer.getGraphics(); if (gfx != null) return gfx; // create graphics for lightweight: Container parent = getParent(); if (parent != null) { gfx = parent.getGraphics(); Rectangle bounds = getBounds(); gfx.setClip(bounds); gfx.tr... | public Graphics getGraphics() { if (peer != null) { Graphics gfx = peer.getGraphics(); if (gfx != null) return gfx; // create graphics for lightweight: Container parent = getParent(); if (parent != null) { gfx = parent.getGraphics(); Rectangle bounds = getBounds(); gfx.setClip(bounds); gfx.tr... | 35,970 |
public GraphicsConfiguration getGraphicsConfiguration() { return getGraphicsConfigurationImpl(); } | public GraphicsConfiguration getGraphicsConfiguration() { return getGraphicsConfigurationImpl(); } | 35,971 |
GraphicsConfiguration getGraphicsConfigurationImpl() { if (peer != null) { GraphicsConfiguration config = peer.getGraphicsConfiguration(); if (config != null) return config; } if (parent != null) return parent.getGraphicsConfiguration(); return null; } | GraphicsConfiguration getGraphicsConfigurationImpl() { if (peer != null) { GraphicsConfiguration config = peer.getGraphicsConfiguration(); if (config != null) return config; } if (parent != null) return parent.getGraphicsConfiguration(); return null; } | 35,972 |
public int getHeight() { return height; } | public int getHeight() { return height; } | 35,973 |
public synchronized HierarchyBoundsListener[] getHierarchyBoundsListeners() { return (HierarchyBoundsListener[]) AWTEventMulticaster.getListeners(hierarchyBoundsListener, HierarchyBoundsListener.class); } | public synchronized HierarchyBoundsListener[] getHierarchyBoundsListeners() { return (HierarchyBoundsListener[]) AWTEventMulticaster.getListeners(hierarchyBoundsListener, HierarchyBoundsListener.class); } | 35,974 |
public synchronized HierarchyListener[] getHierarchyListeners() { return (HierarchyListener[]) AWTEventMulticaster.getListeners(hierarchyListener, HierarchyListener.class); } | public synchronized HierarchyListener[] getHierarchyListeners() { return (HierarchyListener[]) AWTEventMulticaster.getListeners(hierarchyListener, HierarchyListener.class); } | 35,975 |
public boolean getIgnoreRepaint() { return ignoreRepaint; } | public boolean getIgnoreRepaint() { return ignoreRepaint; } | 35,976 |
public InputContext getInputContext() { return parent == null ? null : parent.getInputContext(); } | public InputContext getInputContext() { return parent == null ? null : parent.getInputContext(); } | 35,977 |
public synchronized InputMethodListener[] getInputMethodListeners() { return (InputMethodListener[]) AWTEventMulticaster.getListeners(inputMethodListener, InputMethodListener.class); } | public synchronized InputMethodListener[] getInputMethodListeners() { return (InputMethodListener[]) AWTEventMulticaster.getListeners(inputMethodListener, InputMethodListener.class); } | 35,978 |
public InputMethodRequests getInputMethodRequests() { return null; } | public InputMethodRequests getInputMethodRequests() { return null; } | 35,979 |
public ComponentPeer getJNodePeer() { return peer; } | public ComponentPeer getJNodePeer() { return peer; } | 35,980 |
public synchronized KeyListener[] getKeyListeners() { return (KeyListener[]) AWTEventMulticaster.getListeners(keyListener, KeyListener.class); } | public synchronized KeyListener[] getKeyListeners() { return (KeyListener[]) AWTEventMulticaster.getListeners(keyListener, KeyListener.class); } | 35,981 |
public EventListener[] getListeners(Class listenerType) { if (listenerType == ComponentListener.class) return getComponentListeners(); if (listenerType == FocusListener.class) return getFocusListeners(); if (listenerType == HierarchyListener.class) return getHierarchyListeners(); if (listenerType == Hierarch... | public EventListener[] getListeners(Class listenerType) { if (listenerType == ComponentListener.class) return getComponentListeners(); if (listenerType == FocusListener.class) return getFocusListeners(); if (listenerType == HierarchyListener.class) return getHierarchyListeners(); if (listenerType == Hierarch... | 35,982 |
public Locale getLocale() { if (locale != null) return locale; if (parent == null) throw new IllegalComponentStateException("Component has no parent: can't determine Locale"); return parent.getLocale(); } | public Locale getLocale() { if (locale != null) return locale; if (parent == null) throw new IllegalComponentStateException("Component has no parent: can't determine Locale"); return parent.getLocale(); } | 35,983 |
public Locale getLocale() { if (locale != null) return locale; if (parent == null) throw new IllegalComponentStateException("Component has no parent: can't determine Locale"); return parent.getLocale(); } | public Locale getLocale() { if (locale != null) return locale; if (parent == null) throw new IllegalComponentStateException("Component has no parent: can't determine Locale"); return parent.getLocale(); } | 35,984 |
public Point getLocation() { return new Point(x, y); } | public Point getLocation() { return new Point(x, y); } | 35,985 |
public Point getLocationOnScreen() { if (!isShowing()) throw new IllegalComponentStateException("component not showing"); // We know peer != null here. return peer.getLocationOnScreen(); } | public Point getLocationOnScreen() { if (!isShowing()) throw new IllegalComponentStateException("component not showing"); // We know peer != null here. return peer.getLocationOnScreen(); } | 35,986 |
public Dimension getMaximumSize() { return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); } | public Dimension getMaximumSize() { return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); } | 35,987 |
public Dimension getMinimumSize() { if (minSize == null) minSize = (peer != null ? peer.getMinimumSize() : new Dimension(width, height)); return minSize; } | public Dimension getMinimumSize() { if (minSize == null) minSize = (peer != null ? peer.getMinimumSize() : new Dimension(width, height)); return minSize; } | 35,988 |
public synchronized MouseListener[] getMouseListeners() { return (MouseListener[]) AWTEventMulticaster.getListeners(mouseListener, MouseListener.class); } | public synchronized MouseListener[] getMouseListeners() { return (MouseListener[]) AWTEventMulticaster.getListeners(mouseListener, MouseListener.class); } | 35,989 |
public synchronized MouseMotionListener[] getMouseMotionListeners() { return (MouseMotionListener[]) AWTEventMulticaster.getListeners(mouseMotionListener, MouseMotionListener.class); } | public synchronized MouseMotionListener[] getMouseMotionListeners() { return (MouseMotionListener[]) AWTEventMulticaster.getListeners(mouseMotionListener, MouseMotionListener.class); } | 35,990 |
public synchronized MouseWheelListener[] getMouseWheelListeners() { return (MouseWheelListener[]) AWTEventMulticaster.getListeners(mouseWheelListener, MouseWheelListener.class); } | public synchronized MouseWheelListener[] getMouseWheelListeners() { return (MouseWheelListener[]) AWTEventMulticaster.getListeners(mouseWheelListener, MouseWheelListener.class); } | 35,991 |
public String getName() { if (name == null && !nameExplicitlySet) name = generateName(); return name; } | public String getName() { if (name == null && !nameExplicitlySet) name = generateName(); return name; } | 35,992 |
public Container getParent() { return parent; } | public Container getParent() { return parent; } | 35,993 |
public ComponentPeer getPeer() { return peer; } | public ComponentPeer getPeer() { return peer; } | 35,994 |
public Dimension getPreferredSize() { if (prefSize == null) prefSize = (peer != null ? peer.getPreferredSize() : new Dimension(width, height)); return prefSize; } | public Dimension getPreferredSize() { if (prefSize == null) prefSize = (peer != null ? peer.getPreferredSize() : new Dimension(width, height)); return prefSize; } | 35,995 |
public PropertyChangeListener[] getPropertyChangeListeners() { return changeSupport == null ? new PropertyChangeListener[0] : changeSupport.getPropertyChangeListeners(); } | public PropertyChangeListener[] getPropertyChangeListeners() { return changeSupport == null ? new PropertyChangeListener[0] : changeSupport.getPropertyChangeListeners(); } | 35,996 |
public Dimension getSize() { return new Dimension(width, height); } | public Dimension getSize() { return new Dimension(width, height); } | 35,997 |
public Toolkit getToolkit() { if (peer != null) { Toolkit tk = peer.getToolkit(); if (tk != null) return tk; } if (parent != null) return parent.getToolkit(); return Toolkit.getDefaultToolkit(); } | public Toolkit getToolkit() { if (peer != null) { Toolkit tk = peer.getToolkit(); if (tk != null) return tk; } if (parent != null) return parent.getToolkit(); return Toolkit.getDefaultToolkit(); } | 35,998 |
public final Object getTreeLock() { return treeLock; } | public final Object getTreeLock() { return treeLock; } | 36,000 |
public int getWidth() { return width; } | public int getWidth() { return width; } | 36,001 |
public int getX() { return x; } | public int getX() { return x; } | 36,002 |
public int getY() { return y; } | public int getY() { return y; } | 36,003 |
public boolean gotFocus(Event evt, Object what) { // XXX Add backward compatibility handling. return false; } | public boolean gotFocus(Event evt, Object what) { // XXX Add backward compatibility handling. return false; } | 36,004 |
public boolean handleEvent(Event evt) { // XXX Add backward compatibility handling. return false; } | public boolean handleEvent(Event evt) { // XXX Add backward compatibility handling. return false; } | 36,005 |
public boolean hasFocus() { return isFocusOwner(); } | public boolean hasFocus() { return isFocusOwner(); } | 36,006 |
public void hide() { setVisible(false); } | public void hide() { setVisible(false); } | 36,007 |
public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h) { int rate = -1; if ((flags & (FRAMEBITS | ALLBITS)) != 0) { rate = 0; } else if ((flags & SOMEBITS) != 0) { rate = 10; } if (rate > 0) { repaint(10, x, y, w, h); } return ((flags & (ABORT | ALLBITS)) == 0); } | public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h) { int rate = -1; if ((flags & (FRAMEBITS | ALLBITS)) != 0) { rate = 0; } else if ((flags & SOMEBITS) != 0) { rate = 10; } if (rate > 0) { repaint(10, x, y, w, h); } return ((flags & (ABORT | ALLBITS)) == 0); } | 36,008 |
public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h) { int rate = -1; if ((flags & (FRAMEBITS | ALLBITS)) != 0) { rate = 0; } else if ((flags & SOMEBITS) != 0) { rate = 10; } if (rate > 0) { repaint(10, x, y, w, h); } return ((flags & (ABORT | ALLBITS)) == 0); } | public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h) { int rate = -1; if ((flags & (FRAMEBITS | ALLBITS)) != 0) { rate = 0; } else if ((flags & SOMEBITS) != 0) { rate = 10; } if (rate > 0) { repaint(10, x, y, w, h); } return ((flags & (ABORT | ALLBITS)) == 0); } | 36,009 |
public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h) { int rate = -1; if ((flags & (FRAMEBITS | ALLBITS)) != 0) { rate = 0; } else if ((flags & SOMEBITS) != 0) { rate = 10; } if (rate > 0) { repaint(10, x, y, w, h); } return ((flags & (ABORT | ALLBITS)) == 0); } | public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h) { int rate = -1; if ((flags & (FRAMEBITS | ALLBITS)) != 0) { rate = 0; } else if ((flags & SOMEBITS) != 0) { rate = 10; } if (rate > 0) { repaint(10, x, y, w, h); } return ((flags & (ABORT | ALLBITS)) == 0); } | 36,010 |
public boolean inside(int x, int y) { return contains(x, y); } | public boolean inside(int x, int y) { return contains(x, y); } | 36,011 |
public void invalidate() { valid = false; prefSize = null; minSize = null; if (parent != null && parent.valid) parent.invalidate(); } | public void invalidate() { valid = false; prefSize = null; minSize = null; if (parent != null && parent.valid) parent.invalidate(); } | 36,012 |
public boolean isBackgroundSet() { return background != null; } | public boolean isBackgroundSet() { return background != null; } | 36,013 |
public boolean isCursorSet() { return cursor != null; } | public boolean isCursorSet() { return cursor != null; } | 36,014 |
public boolean isDisplayable() { if (parent != null) return parent.isDisplayable(); return false; } | public boolean isDisplayable() { if (parent != null) return parent.isDisplayable(); return false; } | 36,015 |
public boolean isDoubleBuffered() { return false; } | public boolean isDoubleBuffered() { return false; } | 36,016 |
public boolean isEnabled() { return enabled; } | public boolean isEnabled() { return enabled; } | 36,017 |
public boolean isFocusCycleRoot(Container c) { return c == getFocusCycleRootAncestor(); } | public boolean isFocusCycleRoot(Container c) { return c == getFocusCycleRootAncestor(); } | 36,018 |
public boolean isFocusOwner() { // XXX Implement. throw new Error("not implemented"); } | public boolean isFocusOwner() { // XXX Implement. throw new Error("not implemented"); } | 36,019 |
public boolean isFocusTraversable() { return enabled && visible && (peer == null || peer.isFocusTraversable()); } | public boolean isFocusTraversable() { return enabled && visible && (peer == null || peer.isFocusTraversable()); } | 36,020 |
public boolean isFocusable() { return focusable; } | public boolean isFocusable() { return focusable; } | 36,021 |
public boolean isFontSet() { return font != null; } | public boolean isFontSet() { return font != null; } | 36,022 |
public boolean isForegroundSet() { return foreground != null; } | public boolean isForegroundSet() { return foreground != null; } | 36,023 |
public boolean isLightweight() { return peer instanceof LightweightPeer; } | public boolean isLightweight() { return peer instanceof LightweightPeer; } | 36,024 |
public boolean isOpaque() { return !isLightweight(); } | public boolean isOpaque() { return !isLightweight(); } | 36,025 |
public boolean isShowing() { if (!visible || peer == null) return false; return parent == null ? true : parent.isShowing(); } | public boolean isShowing() { if (!visible || peer == null) return false; return parent == null ? true : parent.isShowing(); } | 36,026 |
public boolean isValid() { return valid; } | public boolean isValid() { return valid; } | 36,027 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.