bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public abstract void setPageIncrement(int inc); | public abstract void setPageIncrement(int inc); | 28,090 |
public abstract void setValues(int value, int visible, int min, int max); | public abstract void setValues(int value, int visible, int min, int max); | 28,091 |
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 (); } | 28,093 |
public void processKeyEvent (KeyEvent e) { throw new UnsupportedOperationException("not implemented"); } | public void processKeyEvent(KeyEvent e) { throw new UnsupportedOperationException("not implemented"); } | 28,094 |
void resizeFrame(JComponent frame, int x, int y, int width, int height); | void resizeFrame(JComponent frame, int x, int y, int width, int height); | 28,095 |
public DefaultDesktopManager() { // TODO } // DefaultDesktopManager() | public DefaultDesktopManager() { // TODO } // DefaultDesktopManager() | 28,096 |
public DesktopManager getDesktopManager() { return desktopManager; } // getDesktopManager() | public DesktopManager getDesktopManager() { return desktopManager; } // getDesktopManager() | 28,097 |
public DesktopManager getDesktopManager() { return desktopManager; } // getDesktopManager() | public DesktopManager getDesktopManager() { return desktopManager; } // getDesktopManager() | 28,098 |
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); } | 28,099 |
public AccessibleRole getAccessibleRole() { return AccessibleRole.COLOR_CHOOSER; } // getAccessibleRole() | public AccessibleRole getAccessibleRole() { return AccessibleRole.COLOR_CHOOSER; } // getAccessibleRole() | 28,101 |
public JColorChooser() { // TODO } // JColorChooser() | public JColorChooser() { // TODO } // JColorChooser() | 28,102 |
public void addChooserPanel(AbstractColorChooserPanel panel) { // TODO } // addChooserPanel() | public void addChooserPanel(AbstractColorChooserPanel panel) { // TODO } // addChooserPanel() | 28,103 |
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() | 28,104 |
public AbstractColorChooserPanel[] getChooserPanels() { return null; // TODO } // getChooserPanels() | public AbstractColorChooserPanel[] getChooserPanels() { return null; // TODO } // getChooserPanels() | 28,105 |
public Color getColor() { return null; // TODO } // getColor() | public Color getColor() { return null; // TODO } // getColor() | 28,106 |
public JComponent getPreviewPanel() { return null; // TODO } // getPreviewPanel() | public JComponent getPreviewPanel() { return null; // TODO } // getPreviewPanel() | 28,107 |
public ColorSelectionModel getSelectionModel() { return null; // TODO } // getSelectionModel() | public ColorSelectionModel getSelectionModel() { return null; // TODO } // getSelectionModel() | 28,108 |
public ColorChooserUI getUI() { return (ColorChooserUI) ui; } // getUI() | public ColorChooserUI getUI() { return (ColorChooserUI) ui; } // getUI() | 28,109 |
public String getUIClassID() { return uiClassID; } // getUIClassID() | public String getUIClassID() { return uiClassID; } // getUIClassID() | 28,110 |
protected String paramString() { return null; // TODO } // paramString() | protected String paramString() { return null; // TODO } // paramString() | 28,111 |
public AbstractColorChooserPanel removeChooserPanel( AbstractColorChooserPanel panel) { return null; // TODO } // removeChooserPanel() | public AbstractColorChooserPanel removeChooserPanel( AbstractColorChooserPanel panel) { return null; // TODO } // removeChooserPanel() | 28,112 |
public void setChooserPanels(AbstractColorChooserPanel[] panels) { // TODO } // setChooserPanels() | public void setChooserPanels(AbstractColorChooserPanel[] panels) { // TODO } // setChooserPanels() | 28,113 |
public void setColor(Color color) { // TODO } // setColor() | public void setColor(Color color) { // TODO } // setColor() | 28,114 |
public void setPreviewPanel(JComponent component) { // TODO } // setPreviewPanel() | public void setPreviewPanel(JComponent component) { // TODO } // setPreviewPanel() | 28,115 |
public void setSelectionModel(ColorSelectionModel model) { // TODO } // setSelectionModel() | public void setSelectionModel(ColorSelectionModel model) { // TODO } // setSelectionModel() | 28,116 |
public void setUI(ColorChooserUI ui) { super.setUI(ui); } // setUI() | public void setUI(ColorChooserUI ui) { super.setUI(ui); } // setUI() | 28,117 |
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() | 28,118 |
public void updateUI() { setUI((ColorChooserUI) UIManager.get(this)); invalidate(); } // updateUI() | public void updateUI() { setUI((ColorChooserUI) UIManager.get(this)); invalidate(); } // updateUI() | 28,119 |
public JDialog(Frame owner, String title) { this(owner, title, false, null); } | public JDialog(Frame owner, String title) { this(owner, title, false, null); } | 28,120 |
public DefaultColorSelectionModel() { this (Color.white); } | public DefaultColorSelectionModel() { this(Color.white); } | 28,121 |
public void installChooserPanel(JColorChooser chooser) { // TODO } // installChooserPanel() | public void installChooserPanel(JColorChooser chooser) { // TODO } // installChooserPanel() | 28,122 |
public void uninstallChooserPanel(JColorChooser chooser) { // TODO } // uninstallChooserPanel() | public void uninstallChooserPanel(JColorChooser chooser) { // TODO } // uninstallChooserPanel() | 28,123 |
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 ... | 28,124 |
protected void fireSelectionValueChanged(int firstIndex, int lastIndex, boolean isAdjusting) { ListSelectionEvent evt = new ListSelectionEvent(this, firstIndex, lastIndex, isAdjusting); ListSelectionListener listeners[] = getListSelectionListeners(); for (int i = 0; i < listeners.length; ++i) { ... | protected void fireSelectionValueChanged(int firstIndex, int lastIndex, boolean isAdjusting) { ListSelectionEvent evt = new ListSelectionEvent(this, firstIndex, lastIndex, isAdjusting); ListSelectionListener listeners[] = getListSelectionListeners(); for (int i = 0; i < listeners.length; ++i) { ... | 28,125 |
protected void fireSelectionValueChanged(int firstIndex, int lastIndex, boolean isAdjusting) { ListSelectionEvent evt = new ListSelectionEvent(this, firstIndex, lastIndex, isAdjusting); ListSelectionListener listeners[] = getListSelectionListeners(); for (int i = 0; i < listeners.length; ++i) { ... | protected void fireSelectionValueChanged(int firstIndex, int lastIndex, boolean isAdjusting) { ListSelectionEvent evt = new ListSelectionEvent(this, firstIndex, lastIndex, isAdjusting); ListSelectionListener listeners[] = getListSelectionListeners(); for (int i = 0; i < listeners.length; ++i) { ... | 28,126 |
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... | 28,127 |
public void translate(int dx, int dy) { x += dx; y += dy; } | public void translate(int dx, int dy) { x += dx; y += dy; } | 28,128 |
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); ... | 28,129 |
public Dimension getMaximumSize(JComponent c) { return getPreferredSize(c); } | public Dimension getMaximumSize(JComponent c) { return new Dimension(Short.MAX_VALUE, Short.MAX_VALUE); } | 28,130 |
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); } | 28,131 |
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); } | 28,132 |
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); } | 28,133 |
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); } | 28,135 |
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; } | 28,136 |
public Double() { } | public Double() { } | 28,137 |
public Rectangle2D getBounds2D() { double nx1 = Math.min(Math.min(x1, ctrlx), x2); double ny1 = Math.min(Math.min(y1, ctrly), y2); double nx2 = Math.max(Math.max(x1, ctrlx), x2); double ny2 = Math.max(Math.max(y1, ctrly), y2); return new Rectangle2D.Double(nx1, ny1, nx2 - nx1, ny2 - ny1); } | public Rectangle2D getBounds2D() { double nx1 = Math.min(Math.min(x1, ctrlx), x2); double ny1 = Math.min(Math.min(y1, ctrly), y2); double nx2 = Math.max(Math.max(x1, ctrlx), x2); double ny2 = Math.max(Math.max(y1, ctrly), y2); return new Rectangle2D.Double(nx1, ny1, nx2 - nx1, ny2 - ny1); } | 28,138 |
public Point2D getCtrlPt() { return new Point2D.Double(ctrlx, ctrly); } | public Point2D getCtrlPt() { return new Point2D.Double(ctrlx, ctrly); } | 28,139 |
public double getCtrlX() { return ctrlx; } | public double getCtrlX() { return ctrlx; } | 28,140 |
public double getCtrlY() { return ctrly; } | public double getCtrlY() { return ctrly; } | 28,141 |
public Point2D getP1() { return new Point2D.Double(x1, y1); } | public Point2D getP1() { return new Point2D.Double(x1, y1); } | 28,142 |
public Point2D getP2() { return new Point2D.Double(x2, y2); } | public Point2D getP2() { return new Point2D.Double(x2, y2); } | 28,143 |
public double getX1() { return x1; } | public double getX1() { return x1; } | 28,144 |
public double getX2() { return x2; } | public double getX2() { return x2; } | 28,145 |
public double getY1() { return y1; } | public double getY1() { return y1; } | 28,146 |
public double getY2() { return y2; } | public double getY2() { return y2; } | 28,147 |
public void setCurve(double x1, double y1, double cx, double cy, double x2, double y2) { this.x1 = x1; this.y1 = y1; ctrlx = cx; ctrly = cy; this.x2 = x2; this.y2 = y2; } | public void setCurve(double x1, double y1, double cx, double cy, double x2, double y2) { this.x1 = x1; this.y1 = y1; ctrlx = cx; ctrly = cy; this.x2 = x2; this.y2 = y2; } | 28,148 |
public Float() { } | public Float() { } | 28,149 |
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); } | 28,150 |
public Point2D getCtrlPt() { return new Point2D.Float(ctrlx, ctrly); } | public Point2D getCtrlPt() { return new Point2D.Float(ctrlx, ctrly); } | 28,151 |
public double getCtrlX() { return ctrlx; } | public double getCtrlX() { return ctrlx; } | 28,152 |
public double getCtrlY() { return ctrly; } | public double getCtrlY() { return ctrly; } | 28,153 |
public Point2D getP1() { return new Point2D.Float(x1, y1); } | public Point2D getP1() { return new Point2D.Float(x1, y1); } | 28,154 |
public Point2D getP2() { return new Point2D.Float(x2, y2); } | public Point2D getP2() { return new Point2D.Float(x2, y2); } | 28,155 |
public double getX1() { return x1; } | public double getX1() { return x1; } | 28,156 |
public double getX2() { return x2; } | public double getX2() { return x2; } | 28,157 |
public double getY1() { return y1; } | public double getY1() { return y1; } | 28,158 |
public double getY2() { return y2; } | public double getY2() { return y2; } | 28,159 |
public void setCurve(double x1, double y1, double cx, double cy, double x2, double y2) { this.x1 = (float) x1; this.y1 = (float) y1; ctrlx = (float) cx; ctrly = (float) cy; this.x2 = (float) x2; this.y2 = (float) y2; } | public void setCurve(double x1, double y1, double cx, double cy, double x2, double y2) { this.x1 = (float) x1; this.y1 = (float) y1; ctrlx = (float) cx; ctrly = (float) cy; this.x2 = (float) x2; this.y2 = (float) y2; } | 28,160 |
protected QuadCurve2D() { } | protected QuadCurve2D() { } | 28,161 |
public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { throw (Error) new InternalError().initCause(e); // Impossible } } | public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { throw (Error) new InternalError().initCause(e); // Impossible } } | 28,162 |
public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { throw (Error) new InternalError().initCause(e); // Impossible } } | public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { throw (Error) new InternalError().initCause(e); // Impossible } } | 28,163 |
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... | 28,164 |
public Rectangle getBounds() { return getBounds2D().getBounds(); } | public Rectangle getBounds() { return getBounds2D().getBounds(); } | 28,165 |
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)); } | 28,166 |
public static double getFlatnessSq(double x1, double y1, double cx, double cy, double x2, double y2) { return Line2D.ptSegDistSq(x1, y1, x2, y2, cx, cy); } | public static double getFlatnessSq(double x1, double y1, double cx, double cy, double x2, double y2) { return Line2D.ptSegDistSq(x1, y1, x2, y2, cx, cy); } | 28,167 |
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... | 28,168 |
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... | 28,169 |
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... | 28,170 |
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... | 28,171 |
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... | 28,172 |
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... | 28,173 |
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... | 28,174 |
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... | 28,175 |
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... | 28,176 |
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... | 28,177 |
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... | 28,178 |
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(... | 28,179 |
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(... | 28,180 |
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(... | 28,181 |
public int getWindingRule() { return WIND_NON_ZERO; } | public int getWindingRule() { return WIND_NON_ZERO; } | 28,182 |
public boolean isDone() { return current < 2; } | public boolean isDone() { return current < 2; } | 28,183 |
public void next() { current++; } | public void next() { current++; } | 28,184 |
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... | 28,185 |
public abstract void setCurve(double x1, double y1, double cx, double cy, double x2, double y2); | public abstract void setCurve(double x1, double y1, double cx, double cy, double x2, double y2); | 28,186 |
public static int solveQuadratic(double[] eqn) { return solveQuadratic(eqn, eqn); } | public static int solveQuadratic(double[] eqn) { return solveQuadratic(eqn, eqn); } | 28,187 |
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,... | 28,188 |
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,... | 28,189 |
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,... | 28,190 |
public static double ptSegDistSq(double x1, double y1, double x2, double y2, double px, double py) { double pd2 = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2); double x, y; if (pd2 == 0) { // Points are coincident. x = x1; y = y2; } else { double u = ((px - x1) * (x2 - x1) + (py - y1) * (y2 - y1)) / pd2; ... | public static double ptSegDistSq(double x1, double y1, double x2, double y2, double px, double py) { double pd2 = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2); double x, y; if (pd2 == 0) { // Points are coincident. x = x1; y = y2; } else { double u = ((px - x1) * (x2 - x1) + (py - y1) * (y2 - y1)) / pd2; ... | 28,191 |
public static double ptSegDistSq(double x1, double y1, double x2, double y2, double px, double py) { double pd2 = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2); double x, y; if (pd2 == 0) { // Points are coincident. x = x1; y = y2; } else { double u = ((px - x1) * (x2 - x1) + (py - y1) * (y2 - y1)) / pd2; ... | public static double ptSegDistSq(double x1, double y1, double x2, double y2, double px, double py) { double pd2 = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2); double x, y; if (pd2 == 0) { // Points are coincident. x = x1; y = y2; } else { double u = ((px - x1) * (x2 - x1) + (py - y1) * (y2 - y1)) / pd2; ... | 28,192 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.