bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public abstract int getDefaultEventIndex(); | int getDefaultEventIndex(); | 17,623 |
public abstract int getDefaultPropertyIndex(); | int getDefaultPropertyIndex(); | 17,624 |
public abstract EventSetDescriptor[] getEventSetDescriptors(); | EventSetDescriptor[] getEventSetDescriptors(); | 17,625 |
public abstract java.awt.Image getIcon(int iconType); | java.awt.Image getIcon(int iconType); | 17,626 |
public abstract MethodDescriptor[] getMethodDescriptors(); | MethodDescriptor[] getMethodDescriptors(); | 17,627 |
public abstract PropertyDescriptor[] getPropertyDescriptors(); | PropertyDescriptor[] getPropertyDescriptors(); | 17,628 |
public int getResizeWeight(int axis) { return axis = axis == X_AXIS ? 1 : 0; } | public int getResizeWeight(int axis) { return axis == X_AXIS ? 1 : 0; } | 17,629 |
public VariableReference(XPathVariableResolver resolver, String name) { this.resolver = resolver; this.name = name; } | public VariableReference(XPathVariableResolver resolver, QName name) { this.resolver = resolver; this.name = name; } | 17,630 |
public Object evaluate(Node context, int pos, int len) { if (resolver != null) { if (resolver instanceof Bindings) { // Needs context to operate properly return ((Bindings) resolver).get(name, context, pos, len); } QName qname = QName.valueOf(name); ... | public Object evaluate(Node context, int pos, int len) { if (resolver != null) { if (resolver instanceof Bindings) { // Needs context to operate properly return ((Bindings) resolver).get(name, context, pos, len); } QName qname = QName.valueOf(name); ... | 17,631 |
public String toString() { return "$" + name; } | public String toString() { StringBuffer buf = new StringBuffer("$"); String prefix = name.getPrefix(); if (prefix != null && !"".equals(prefix)) { buf.append(prefix); buf.append(':'); } buf.append(name.getLocalPart()); return buf.toString(); } | 17,632 |
public static <T> int binarySearch(List<? extends T> l, T key, Comparator<? super T> c) { int pos = 0; int low = 0; int hi = l.size() - 1; // We use a linear search with log(n) comparisons using an iterator // if the list is sequential-access. if (isSequential(l)) { ListIterator<T> itr... | public static <T> int binarySearch(List<? extends T> l, T key, Comparator<? super T> c) { int pos = 0; int low = 0; int hi = l.size() - 1; // We use a linear search with log(n) comparisons using an iterator // if the list is sequential-access. if (isSequential(l)) { ListIterator<T> itr... | 17,633 |
public static <T> int binarySearch(List<? extends T> l, T key, Comparator<? super T> c) { int pos = 0; int low = 0; int hi = l.size() - 1; // We use a linear search with log(n) comparisons using an iterator // if the list is sequential-access. if (isSequential(l)) { ListIterator<T> itr... | public static <T> int binarySearch(List<? extends T> l, T key, Comparator<? super T> c) { int pos = 0; int low = 0; int hi = l.size() - 1; // We use a linear search with log(n) comparisons using an iterator // if the list is sequential-access. if (isSequential(l)) { ListIterator<T> itr... | 17,634 |
public void paintImmediately(Rectangle r) { Component root = this.getRootPane(); if (root == null || ! root.isShowing()) return; Graphics g = root.getGraphics(); if (g == null) return; Rectangle clip = SwingUtilities.convertRectangle(this, r, root); g.setClip(clip); root.paint(g); g.d... | public void paintImmediately(Rectangle r) { Component root = this.getRootPane(); if (root == null || ! root.isShowing()) return; Graphics g = root.getGraphics(); if (g == null) return; Rectangle clip = SwingUtilities.convertRectangle(this, r, root); g.setClip(clip); root.paint(g); g.d... | 17,635 |
public void setTcpNoDelay(boolean on) throws SocketException { if (impl == null) throw new SocketException("Not connected"); impl.setOption(SocketOptions.TCP_NODELAY, new Boolean(on)); } | public void setTcpNoDelay(boolean on) throws SocketException { if (impl == null) throw new SocketException("Not connected"); impl.setOption(SocketOptions.TCP_NODELAY, new Boolean(on)); } | 17,636 |
public void setTcpNoDelay(boolean on) throws SocketException { if (impl == null) throw new SocketException("Not connected"); impl.setOption(SocketOptions.TCP_NODELAY, new Boolean(on)); } | public void setTcpNoDelay(boolean on) throws SocketException { if (impl == null) throw new SocketException("Not connected"); getImpl().setOption(SocketOptions.TCP_NODELAY, Boolean.valueOf(on)); } | 17,637 |
public InetAddress getInetAddress() { if (impl != null) return impl.getInetAddress(); return null; } | public InetAddress getInetAddress() { if (impl != null) return impl.getInetAddress(); return null; } | 17,638 |
public Collection<V> values() { if (values == null) { // We don't bother overriding many of the optional methods, as doing so // wouldn't provide any significant performance advantage. Collection<V> r = new AbstractCollection<V>() { public int size() { ... | public Collection<V> values() { if (values == null) { // We don't bother overriding many of the optional methods, as doing so // wouldn't provide any significant performance advantage. Collection<V> r = new AbstractCollection<V>() { public int size() { ... | 17,639 |
protected void doResolveMember(AbstractVmClassLoader clc) { final VmType vmClass = getConstClass().getResolvedVmClass(); if (vmClass.isInterface()) { throw new IncompatibleClassChangeError(getClassName() + " must be a class"); } final VmMethod vmMethod = vmClass.getMethod(getName(), getSignature()); if (vmMeth... | protected void doResolveMember(VmClassLoader clc) { final VmType vmClass = getConstClass().getResolvedVmClass(); if (vmClass.isInterface()) { throw new IncompatibleClassChangeError(getClassName() + " must be a class"); } final VmMethod vmMethod = vmClass.getMethod(getName(), getSignature()); if (vmMethod == nu... | 17,640 |
protected abstract void doResolveMember(AbstractVmClassLoader clc); | protected abstract void doResolveMember(VmClassLoader clc); | 17,641 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6... | 17,643 |
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | 17,644 |
protected void startPlugin() throws PluginException { AccessController.doPrivileged(new SetPropertyAction("awt.toolkit", TOOLKIT)); VMImageUtils.setAPI(new VMImageAPIImpl(), this); GraphicsEnvironment.setLocalGraphicsEnvironment(new JNodeGraphicsEnvironment()); } | protected void startPlugin() throws PluginException { AccessController.doPrivileged(new SetPropertyAction("awt.toolkit", TOOLKIT)); VMImageUtils.setAPI(new VMImageAPIImpl(), this); } | 17,645 |
protected Logger(String name, String resourceBundleName) throws MissingResourceException { this.name = name; this.resourceBundleName = resourceBundleName; if (resourceBundleName == null) resourceBundle = null; else resourceBundle = ResourceBundle.getBundle(resourceBundleName); level = nul... | protected Logger(String name, String resourceBundleName) throws MissingResourceException { this.name = name; this.resourceBundleName = resourceBundleName; if (resourceBundleName == null) resourceBundle = null; else resourceBundle = ResourceBundle.getBundle(resourceBundleName); level = nul... | 17,646 |
public synchronized void setParent(Logger parent) { LogManager lm; /* Throw a new NullPointerException if parent is null. */ parent.getClass(); lm = LogManager.getLogManager(); if (this == lm.rootLogger) throw new IllegalArgumentException( "only the root logger can have a null parent")... | public synchronized void setParent(Logger parent) { /* Throw a new NullPointerException if parent is null. */ parent.getClass(); lm = LogManager.getLogManager(); if (this == lm.rootLogger) throw new IllegalArgumentException( "only the root logger can have a null parent"); /* An app... | 17,647 |
public synchronized void setParent(Logger parent) { LogManager lm; /* Throw a new NullPointerException if parent is null. */ parent.getClass(); lm = LogManager.getLogManager(); if (this == lm.rootLogger) throw new IllegalArgumentException( "only the root logger can have a null parent")... | public synchronized void setParent(Logger parent) { LogManager lm; /* Throw a new NullPointerException if parent is null. */ parent.getClass(); lm = LogManager.getLogManager(); if (this == lm.rootLogger) throw new IllegalArgumentException( "only the root logger can have a null parent")... | 17,648 |
public synchronized void setParent(Logger parent) { LogManager lm; /* Throw a new NullPointerException if parent is null. */ parent.getClass(); lm = LogManager.getLogManager(); if (this == lm.rootLogger) throw new IllegalArgumentException( "only the root logger can have a null parent")... | public synchronized void setParent(Logger parent) { LogManager lm; /* Throw a new NullPointerException if parent is null. */ parent.getClass(); lm = LogManager.getLogManager(); if (this == lm.rootLogger) throw new IllegalArgumentException( "the root logger can only have a null parent")... | 17,649 |
public BeanInfo getBeanInfo() { int defaultProperty = -1; int defaultEvent = -1; PropertyDescriptor[] Aproperties = new PropertyDescriptor[properties.size()]; int i = 0; Enumeration enum = properties.elements(); while(enum.hasMoreElements()) { Aproperties[i] = (PropertyDescriptor)enum.nextElement(); if(defau... | public BeanInfo getBeanInfo() { int defaultProperty = -1; int defaultEvent = -1; PropertyDescriptor[] Aproperties = new PropertyDescriptor[properties.size()]; int i = 0; Enumeration enum = properties.elements(); while(enum.hasMoreElements()) { Aproperties[i] = (PropertyDescriptor)enum.nextElement(); if(defau... | 17,650 |
public ExplicitBeanInfo(BeanDescriptor beanDescriptor, BeanInfo[] additionalBeanInfo, PropertyDescriptor[] propertyDescriptors, int defaultPropertyIndex, EventSetDescriptor[] eventSetDescriptors, int defaultEventIndex, ... | public ExplicitBeanInfo(BeanDescriptor beanDescriptor, BeanInfo[] additionalBeanInfo, PropertyDescriptor[] propertyDescriptors, int defaultPropertyIndex, EventSetDescriptor[] eventSetDescriptors, int defaultEventIndex, ... | 17,652 |
public void redo() throws CannotRedoException { if (canRedo() == false) { throw new CannotRedoException(); } hasBeenDone = true; } // redo() | public void redo() throws CannotRedoException { if (canRedo() == false) { throw new CannotRedoException(); } hasBeenDone = true; } // redo() | 17,653 |
public void undo() throws CannotUndoException { if (canUndo() == false) { throw new CannotUndoException(); } hasBeenDone = false; } // undo() | public void undo() throws CannotUndoException { if (canUndo() == false) { throw new CannotUndoException(); } hasBeenDone = false; } // undo() | 17,654 |
public abstract void setLineIncrement(int inc); | void setLineIncrement(int inc); | 17,655 |
public abstract void setPageIncrement(int inc); | void setPageIncrement(int inc); | 17,656 |
public abstract void setValues(int value, int visible, int min, int max); | void setValues(int value, int visible, int min, int max); | 17,657 |
public static GraphicsEnvironment getLocalGraphicsEnvironment() { ClasspathToolkit tk; tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit ()); return tk.getLocalGraphicsEnvironment (); } | public static GraphicsEnvironment getLocalGraphicsEnvironment() { ClasspathToolkit tk; tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit ()); return tk.getLocalGraphicsEnvironment (); } | 17,658 |
public void setLayout(LayoutManager manager) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayout() instead."); super.setLayout(manager); } | public void setLayout(LayoutManager manager) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayout()" + " instead."); getContentPane().setLayout(manager); } else super.setLayout(manager); } | 17,659 |
public JColorChooser() { // TODO } // JColorChooser() | public JColorChooser() { this(new DefaultColorSelectionModel()); // TODO } // JColorChooser() | 17,661 |
public void addChooserPanel(AbstractColorChooserPanel panel) { // TODO } // addChooserPanel() | public void addChooserPanel(AbstractColorChooserPanel panel) { if (panel == null) return; AbstractColorChooserPanel[] old = chooserPanels; AbstractColorChooserPanel[] newPanels = new AbstractColorChooserPanel[(old == null) ? 1 : old.length + 1]; if (old != null) System.arraycopy(old, 0, newPanels, 0, old.length); newP... | 17,662 |
public static JDialog createDialog(Component component, String title, boolean modal, JColorChooser chooserPane, ActionListener okListener, ActionListener cancelListener) { return null; // TODO } // createDialog() | public static JDialog createDialog(Component component, String title, boolean modal, JColorChooser chooserPane, ActionListener okListener, ActionListener cancelListener) { return null; // TODO } // createDialog() | 17,663 |
public AbstractColorChooserPanel[] getChooserPanels() { return null; // TODO } // getChooserPanels() | public AbstractColorChooserPanel[] getChooserPanels() { return null; // TODO } // getChooserPanels() | 17,664 |
public Color getColor() { return null; // TODO } // getColor() | public Color getColor() { return null; // TODO } // getColor() | 17,665 |
public JComponent getPreviewPanel() { return null; // TODO } // getPreviewPanel() | public JComponent getPreviewPanel() { return null; // TODO } // getPreviewPanel() | 17,666 |
public ColorSelectionModel getSelectionModel() { return null; // TODO } // getSelectionModel() | public ColorSelectionModel getSelectionModel() { return null; // TODO } // getSelectionModel() | 17,667 |
public String getUIClassID() { return uiClassID; } // getUIClassID() | public String getUIClassID() { return uiClassID; } // getUIClassID() | 17,668 |
protected String paramString() { return null; // TODO } // paramString() | protected String paramString() { return null; // TODO } // paramString() | 17,669 |
public AbstractColorChooserPanel removeChooserPanel( AbstractColorChooserPanel panel) { return null; // TODO } // removeChooserPanel() | public AbstractColorChooserPanel removeChooserPanel( AbstractColorChooserPanel panel) { return null; // TODO } // removeChooserPanel() | 17,670 |
public void setChooserPanels(AbstractColorChooserPanel[] panels) { // TODO } // setChooserPanels() | public void setChooserPanels(AbstractColorChooserPanel[] panels) { if (panels != chooserPanels) { if (chooserPanels != null) for (int i = 0; i < chooserPanels.length; i++) if (chooserPanels[i] != null) chooserPanels[i].uninstallChooserPanel(this); AbstractColorChooserPanel[] old = chooserPanels; chooserPanels = panel... | 17,671 |
public void setColor(Color color) { // TODO } // setColor() | public void setColor(Color color) { if (color != null) selectionModel.setSelectedColor(color); // TODO } // setColor() | 17,672 |
public void setPreviewPanel(JComponent component) { // TODO } // setPreviewPanel() | public void setPreviewPanel(JComponent component) { if (component != previewPanel) { JComponent old = previewPanel; previewPanel = component; firePropertyChange(PREVIEW_PANEL_PROPERTY, old, previewPanel); } // TODO } // setPreviewPanel() | 17,673 |
public void setSelectionModel(ColorSelectionModel model) { // TODO } // setSelectionModel() | public void setSelectionModel(ColorSelectionModel model) { if (model == null) throw new AWTError("ColorSelectionModel is not allowed to be null."); selectionModel = model; // TODO } // setSelectionModel() | 17,674 |
public static Color showDialog(Component component, String title, Color initial) { return null; // TODO } // showDialog() | public static Color showDialog(Component component, String title, Color initial) { return null; // TODO } // showDialog() | 17,675 |
public void updateUI() { setUI((ColorChooserUI) UIManager.get(this)); invalidate(); } // updateUI() | public void updateUI() { setUI((ColorChooserUI) UIManager.get(this)); invalidate(); } // updateUI() | 17,676 |
public JDialog(Frame owner, String title) { this(owner, title, false, null); } | public JDialog(Frame owner, String title) { this(owner, title, false, null); } | 17,677 |
public void installChooserPanel(JColorChooser chooser) { // TODO } // installChooserPanel() | public void installChooserPanel(JColorChooser chooser) { this.chooser = chooser; buildChooser(); // TODO } // installChooserPanel() | 17,678 |
public void uninstallChooserPanel(JColorChooser chooser) { // TODO } // uninstallChooserPanel() | public void uninstallChooserPanel(JColorChooser chooser) { this.chooser = null; // TODO } // uninstallChooserPanel() | 17,679 |
private void clearHighlight() { Highlighter highlighter = textComponent.getHighlighter(); if (highlighter == null) return; if (selectionVisible) { try { if (highlightEntry == null) highlightEntry = highlighter.addHighlight(0, 0, getSelectionPainter()); else ... | private void clearHighlight() { Highlighter highlighter = textComponent.getHighlighter(); if (highlighter == null) return; if (selectionVisible) { try { if (highlightEntry == null) highlightEntry = highlighter.addHighlight(0, 0, getSelectionPainter()); else ... | 17,680 |
public String paramString() { StringBuffer sb = new StringBuffer(super.paramString()); sb.append(",fixedCellHeight=").append(getFixedCellHeight()); sb.append(",fixedCellWidth=").append(getFixedCellWidth()); sb.append(",selectionBackground="); if (getSelectionBackground() != null) sb.append(getSel... | protected String paramString() { StringBuffer sb = new StringBuffer(super.paramString()); sb.append(",fixedCellHeight=").append(getFixedCellHeight()); sb.append(",fixedCellWidth=").append(getFixedCellWidth()); sb.append(",selectionBackground="); if (getSelectionBackground() != null) sb.append(get... | 17,681 |
protected void addImpl(Component comp, Object layerConstraint, int index) { Integer layer; if (layerConstraint != null && layerConstraint instanceof Integer) layer = (Integer) layerConstraint; else if (componentToLayer.containsKey (comp)) layer = (Integer) componentToLayer.remove (comp); ... | protected void addImpl(Component comp, Object layerConstraint, int index) { Integer layer; if (layerConstraint != null && layerConstraint instanceof Integer) layer = (Integer) layerConstraint; else if (componentToLayer.containsKey (comp)) layer = (Integer) componentToLayer.remove (comp); ... | 17,682 |
public Dimension getMaximumSize(JComponent c) { return getPreferredSize(c); } | public Dimension getMaximumSize(JComponent c) { return new Dimension(Short.MAX_VALUE, Short.MAX_VALUE); } | 17,683 |
public void setSelectedIndex(int index) { checkIndex(index, -1, tabs.size()); if (index != getSelectedIndex()) { if (getSelectedIndex() != -1) getSelectedComponent().hide(); if (index != -1) getComponentAt(index).show(); } model.setSelectedIndex(index); } | public void setSelectedIndex(int index) { checkIndex(index, -1, tabs.size()); if (index != getSelectedIndex()) { if (getSelectedIndex() != -1 && getSelectedComponent() != null) getSelectedComponent().hide(); if (index != -1) getComponentAt(index).show(); } model.setSelectedIndex(index); } | 17,684 |
public void setSelectedIndex(int index) { checkIndex(index, -1, tabs.size()); if (index != getSelectedIndex()) { if (getSelectedIndex() != -1) getSelectedComponent().hide(); if (index != -1) getComponentAt(index).show(); } model.setSelectedIndex(index); } | public void setSelectedIndex(int index) { checkIndex(index, -1, tabs.size()); if (index != getSelectedIndex()) { if (getSelectedIndex() != -1) getSelectedComponent().hide(); if (index != -1 && getComponentAt(index) != null) getComponentAt(index).show(); } model.setSelectedIndex(index); } | 17,685 |
public void setSelectedIndex(int index) { checkIndex(index, -1, tabs.size()); if (index != getSelectedIndex()) { if (getSelectedIndex() != -1) getSelectedComponent().hide(); if (index != -1) getComponentAt(index).show(); } model.setSelectedIndex(index); } | public void setSelectedIndex(int index) { checkIndex(index, -1, tabs.size()); if (index != getSelectedIndex()) { if (getSelectedIndex() != -1) getSelectedComponent().hide(); if (index != -1) getComponentAt(index).show(); model.setSelectedIndex(index); | 17,686 |
public Dimension getPreferredSize() { return new Dimension(getIcon().getIconWidth(), getIcon().getIconHeight()); } | public Dimension getPreferredSize() { Insets insets = getInsets(); int w = defaultSize + insets.left + insets.right; int h = defaultSize + insets.top + insets.bottom; return new Dimension(w, h); } | 17,688 |
public void setDirection(int dir) { Polygon arrow = getArrow(dir, 10); if (getIcon() == null) setIcon(new arrowIcon(arrow)); else ((arrowIcon) getIcon()).setArrow(arrow); this.direction = dir; } | public void setDirection(int dir) { Polygon arrow = getArrow(dir, 10); if (getIcon() == null) setIcon(new arrowIcon(arrow)); else ((arrowIcon) getIcon()).setArrow(arrow); this.direction = dir; } | 17,689 |
public Rectangle2D getBounds2D() { float nx1 = Math.min(Math.min(x1, ctrlx), x2); float ny1 = Math.min(Math.min(y1, ctrly), y2); float nx2 = Math.max(Math.max(x1, ctrlx), x2); float ny2 = Math.max(Math.max(y1, ctrly), y2); return new Rectangle2D.Float(nx1, ny1, nx2 - nx1, ny2 - ny1); } | public Rectangle2D getBounds2D() { float nx1 = Math.min(Math.min(x1, ctrlx), x2); float ny1 = Math.min(Math.min(y1, ctrly), y2); float nx2 = Math.max(Math.max(x1, ctrlx), x2); float ny2 = Math.max(Math.max(y1, ctrly), y2); return new Rectangle2D.Float(nx1, ny1, nx2 - nx1, ny2 - ny1); } | 17,690 |
public boolean contains(double x, double y) { // We count the "Y" crossings to determine if the point is // inside the curve bounded by its closing line. int crossings = 0; double x1 = getX1(); double y1 = getY1(); double x2 = getX2(); double y2 = getY2(); // First check for a crossing of the line connecting t... | public boolean contains(double x, double y) { // We count the "Y" crossings to determine if the point is // inside the curve bounded by its closing line. int crossings = 0; double x1 = getX1(); double y1 = getY1(); double x2 = getX2(); double y2 = getY2(); // First check for a crossing of the line connecting t... | 17,691 |
public static double getFlatness(double x1, double y1, double cx, double cy, double x2, double y2) { return Math.sqrt(getFlatnessSq(x1, y1, cx, cy, x2, y2)); } | public static double getFlatness(double x1, double y1, double cx, double cy, double x2, double y2) { return Math.sqrt(getFlatnessSq(x1, y1, cx, cy, x2, y2)); } | 17,692 |
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current < 2; } public void next() { current++; } public int curr... | public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current = 0; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current < 2; } public void next() { current++; } public int ... | 17,693 |
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current < 2; } public void next() { current++; } public int curr... | public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current < 2; } public void next() { current++; } public int curr... | 17,694 |
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current < 2; } public void next() { current++; } public int curr... | public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current < 2; } public void next() { current++; } public int curr... | 17,695 |
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current < 2; } public void next() { current++; } public int curr... | public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current < 2; } public void next() { current++; } public int curr... | 17,696 |
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current < 2; } public void next() { current++; } public int curr... | public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current < 2; } public void next() { current++; } public int curr... | 17,697 |
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current < 2; } public void next() { current++; } public int curr... | public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current < 2; } public void next() { current++; } public int curr... | 17,698 |
public int currentSegment(float[] coords) { if (current == 0) { coords[0] = (float) getX1(); coords[1] = (float) getY1(); if (at != null) at.transform(coords, 0, coords, 0, 1); return SEG_MOVETO; } if (current == 1) { coords[0] = (float) getCtrlX(); coords[1] = (float) getCtrlY(... | public int currentSegment(float[] coords) { if (current == 0) { coords[0] = (float) getX1(); coords[1] = (float) getY1(); if (at != null) at.transform(coords, 0, coords, 0, 1); return SEG_MOVETO; } if (current == 1) { coords[0] = (float) getCtrlX(); coords[1] = (float) getCtrlY(... | 17,699 |
public int currentSegment(float[] coords) { if (current == 0) { coords[0] = (float) getX1(); coords[1] = (float) getY1(); if (at != null) at.transform(coords, 0, coords, 0, 1); return SEG_MOVETO; } if (current == 1) { coords[0] = (float) getCtrlX(); coords[1] = (float) getCtrlY(... | public int currentSegment(float[] coords) { if (current == 0) { coords[0] = (float) getX1(); coords[1] = (float) getY1(); if (at != null) at.transform(coords, 0, coords, 0, 1); return SEG_MOVETO; } if (current == 1) { coords[0] = (float) getCtrlX(); coords[1] = (float) getCtrlY(... | 17,700 |
public int currentSegment(float[] coords) { if (current == 0) { coords[0] = (float) getX1(); coords[1] = (float) getY1(); if (at != null) at.transform(coords, 0, coords, 0, 1); return SEG_MOVETO; } if (current == 1) { coords[0] = (float) getCtrlX(); coords[1] = (float) getCtrlY(... | public int currentSegment(float[] coords) { if (current == 0) { coords[0] = (float) getX1(); coords[1] = (float) getY1(); if (at != null) at.transform(coords, 0, coords, 0, 1); return SEG_MOVETO; } if (current == 1) { coords[0] = (float) getCtrlX(); coords[1] = (float) getCtrlY(... | 17,701 |
public boolean isDone() { return current < 2; } | public boolean isDone() { return current < 2; } | 17,702 |
public boolean intersects(double x, double y, double w, double h) { // Trivially reject non-existant rectangles if (w < 0 || h < 0) { return false; } // Trivially accept if either endpoint is inside the rectangle // (not on its border since it may end there and not go inside) // Record where they lie with resp... | public boolean intersects(double x, double y, double w, double h) { // Trivially reject non-existant rectangles if (w < 0 || h < 0) { return false; } // Trivially accept if either endpoint is inside the rectangle // (not on its border since it may end there and not go inside) // Record where they lie with resp... | 17,703 |
public void subdivide(QuadCurve2D l, QuadCurve2D r) { if (l == null) l = new QuadCurve2D.Double(); if (r == null) r = new QuadCurve2D.Double(); // Use empty slots at end to share single array. double[] d = new double[] { getX1(), getY1(), getCtrlX(), getCtrlY(), getX2(), getY2(), 0, 0, 0, 0 }; subdivide(d, 0,... | public void subdivide(QuadCurve2D l, QuadCurve2D r) { if (l == null) l = new QuadCurve2D.Double(); if (r == null) r = new QuadCurve2D.Double(); // Use empty slots at end to share single array. double[] d = new double[] { getX1(), getY1(), getCtrlX(), getCtrlY(), getX2(), getY2(), 0, 0, 0, 0 }; subdivide(d, 0,... | 17,704 |
public void subdivide(QuadCurve2D l, QuadCurve2D r) { if (l == null) l = new QuadCurve2D.Double(); if (r == null) r = new QuadCurve2D.Double(); // Use empty slots at end to share single array. double[] d = new double[] { getX1(), getY1(), getCtrlX(), getCtrlY(), getX2(), getY2(), 0, 0, 0, 0 }; subdivide(d, 0,... | public void subdivide(QuadCurve2D l, QuadCurve2D r) { if (l == null) l = new QuadCurve2D.Double(); if (r == null) r = new QuadCurve2D.Double(); // Use empty slots at end to share single array. double[] d = new double[] { getX1(), getY1(), getCtrlX(), getCtrlY(), getX2(), getY2(), 0, 0, 0, 0 }; subdivide(d, 0,... | 17,705 |
public final Class getCategory() { return JobKOctets.class; } | public Class getCategory() { return JobKOctets.class; } | 17,706 |
public final String getName() { return "job-k-octets"; } | public String getName() { return "job-k-octets"; } | 17,707 |
public Icon getDisabledIcon() { //FIXME: We should be gray-scaling the active icon and then returning it if (disabledIcon == null && activeIcon instanceof ImageIcon) setDisabledIcon(activeIcon); return disabledIcon; } | public Icon getDisabledIcon() { //FIXME: We should be gray-scaling the active icon and then returning it if (disabledIcon == null && activeIcon instanceof ImageIcon) disabledIcon = new ImageIcon(GrayFilter.createDisabledImage(((ImageIcon) activeIcon).getImage())); return disabledIcon; } | 17,708 |
public void setDisplayedMnemonic(char aChar) { if (aChar != mnemonicKey) { char oldKey = mnemonicKey; mnemonicKey = aChar; firePropertyChange(DISPLAYED_MNEMONIC_CHANGED_PROPERTY, oldKey, mnemonicKey); if (labelText != null) setDisplayedMnemonicIndex(labelText.indexOf(mnemonicKey)); ... | public void setDisplayedMnemonic(int key) { if (aChar != mnemonicKey) { char oldKey = mnemonicKey; mnemonicKey = aChar; firePropertyChange(DISPLAYED_MNEMONIC_CHANGED_PROPERTY, oldKey, mnemonicKey); if (labelText != null) setDisplayedMnemonicIndex(labelText.indexOf(mnemonicKey)); } ... | 17,709 |
public void setDisplayedMnemonic(char aChar) { if (aChar != mnemonicKey) { char oldKey = mnemonicKey; mnemonicKey = aChar; firePropertyChange(DISPLAYED_MNEMONIC_CHANGED_PROPERTY, oldKey, mnemonicKey); if (labelText != null) setDisplayedMnemonicIndex(labelText.indexOf(mnemonicKey)); ... | public void setDisplayedMnemonic(char aChar) { if (aChar != mnemonicKey) { char oldKey = mnemonicKey; mnemonicKey = aChar; firePropertyChange(DISPLAYED_MNEMONIC_CHANGED_PROPERTY, oldKey, mnemonicKey); if (labelText != null) setDisplayedMnemonicIndex(labelText.indexOf(mnemonicKey)); ... | 17,710 |
public void mouseClicked(MouseEvent e) { Point p = e.getPoint(); int row = table.rowAtPoint(p); int col = table.columnAtPoint(p); if (table.isCellEditable(row, col)) { // If the cell editor is the default editor, we request the // number of the required clicks from i... | public void mouseClicked(MouseEvent e) { Point p = e.getPoint(); int row = table.rowAtPoint(p); int col = table.columnAtPoint(p); if (table.isCellEditable(row, col)) { // If the cell editor is the default editor, we request the // number of the required clicks from i... | 17,711 |
protected void installDefaults() { LookAndFeel.installColorsAndFont(table, "Table.background", "Table.foreground", "Table.font"); table.setGridColor(UIManager.getColor("Table.gridColor")); table.setSelectionForeground(UIManager.getColor("Table.selectionForeground")); ... | protected void installDefaults() { LookAndFeel.installColorsAndFont(table, "Table.background", "Table.foreground", "Table.font"); table.setGridColor(UIManager.getColor("Table.gridColor")); table.setSelectionForeground(UIManager.getColor("Table.selectionForeground")); ... | 17,712 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | 17,714 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | 17,715 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ... | 17,716 |
public Object get(KeyStroke keystroke) { Object result = inputMap.get(keystroke); if (result == null) result = parent.get(keystroke); return result; } | public Object get(KeyStroke keystroke) { Object result = inputMap.get(keystroke); if (result == null && parent != null) result = parent.get(keystroke); return result; } | 17,718 |
public InvocationTargetException(Throwable targetException) { this(targetException, null); } | protected InvocationTargetException() { this(targetException, null); } | 17,719 |
public InvocationTargetException(Throwable targetException) { this(targetException, null); } | public InvocationTargetException(Throwable targetException) { this(null, null); } | 17,720 |
protected void fireContentsChanged(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHA... | protected void fireContentsChanged(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHA... | 17,721 |
protected void fireContentsChanged(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHA... | protected void fireContentsChanged(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHA... | 17,722 |
protected void fireIntervalAdded(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.INTERVAL_ADDED, start... | protected void fireIntervalAdded(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.INTERVAL_ADDED, start... | 17,723 |
protected void fireIntervalAdded(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.INTERVAL_ADDED, start... | protected void fireIntervalAdded(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.INTERVAL_ADDED, start... | 17,724 |
protected void fireIntervalRemoved(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.INTERVAL_REM... | protected void fireIntervalRemoved(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.INTERVAL_REM... | 17,725 |
protected void fireIntervalRemoved(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.INTERVAL_REM... | protected void fireIntervalRemoved(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.INTERVAL_REM... | 17,726 |
public static TaggedProfile read(InputStream input) { TaggedProfile value = new TaggedProfile(); value.tag = input.read_long(); if (input instanceof cdrBufInput) { // Highly probable. value.profile_data = ((cdrBufInput) input).read_sequence(); } else { value.profile_da... | public static TaggedProfile read(InputStream input) { TaggedProfile value = new TaggedProfile(); value.tag = input.read_long(); if (input instanceof BufferredCdrInput) { // Highly probable. value.profile_data = ((cdrBufInput) input).read_sequence(); } else { value.prof... | 17,727 |
public static TaggedProfile read(InputStream input) { TaggedProfile value = new TaggedProfile(); value.tag = input.read_long(); if (input instanceof cdrBufInput) { // Highly probable. value.profile_data = ((cdrBufInput) input).read_sequence(); } else { value.profile_da... | public static TaggedProfile read(InputStream input) { TaggedProfile value = new TaggedProfile(); value.tag = input.read_long(); if (input instanceof cdrBufInput) { // Highly probable. value.profile_data = ((BufferredCdrInput) input).read_sequence(); } else { value.prof... | 17,728 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.