bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
setIndex(int index){ return(ci.setIndex(index));}
setIndex(int index){ return(ci.setIndex(index));}
8,372
ISO_8859_1 () { super ("ISO-8859-1", new String[]{"ISO-LATIN-1"}); }
ISO_8859_1 () { super ("ISO-8859-1", new String[] { "iso-ir-100", "ISO_8859-1", "latin1", "l1", "IBM819", "CP819", "csISOLatin1", "8859_1", "ISO8859_1", "ISO_8859_1", "ibm-819", "ISO_8859-1:1987", "819" }); }
8,373
private void markThreadStack(VmThread thread) { // For now do it stupid, but safe, just scan the whole stack. final int stackSize = thread.getStackSize(); final Object stack = helper.getStack(thread); if (stack != null) { for (int i = 0; i < stackSize; i += slotSize) { ...
private void markThreadStack(VmThread thread) { // For now do it stupid, but safe, just scan the whole stack. final int stackSize = thread.getStackSize(); final Object stack = helper.getStack(thread); if (stack != null) { for (int i = 0; i < stackSize; i += slotSize) { ...
8,374
private void processChild(Object child) { final int gcColor = helper.getObjectColor(child); if (gcColor <= GC_WHITE) { // Yellow or White helper.atomicChangeObjectColor(child, gcColor, GC_GREY); try { // TEST for a valid vmclass. helper.ge...
final void processChild(Object child) { final int gcColor = helper.getObjectColor(child); if (gcColor <= GC_WHITE) { // Yellow or White helper.atomicChangeObjectColor(child, gcColor, GC_GREY); try { // TEST for a valid vmclass. helper.getV...
8,375
public void postActionEvent() { ActionEvent event = new ActionEvent(this, 0, actionCommand); ActionListener[] listeners = getActionListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].actionPerformed(event); }
public void postActionEvent() { String command = actionCommand != null ? actionCommand : getText(); ActionEvent event = new ActionEvent(this, 0, command); ActionListener[] listeners = getActionListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].actionPerformed(event); ...
8,377
public void setActionCommand(String command) { this.actionCommand = command; }
public void setActionCommand(String command) { actionCommand = command; }
8,378
public int checkImage(Image img, int width, int height, ImageObserver o) { return toolkit.checkImage(img, width, height, o); }
public final int checkImage(Image img, int width, int height, ImageObserver o) { return toolkit.checkImage(img, width, height, o); }
8,379
public void coalescePaintEvent(PaintEvent e) { //System.err.println( "coalescePaintEvent: " + e ); }
public final void coalescePaintEvent(PaintEvent e) { //System.err.println( "coalescePaintEvent: " + e ); }
8,380
public void createBuffers(int x, BufferCapabilities bufferCapabilities) { }
public final void createBuffers(int x, BufferCapabilities bufferCapabilities) { }
8,381
public void destroyBuffers() { }
public final void destroyBuffers() { }
8,382
public void disable() { setEnabled(false); }
public final void disable() { setEnabled(false); }
8,383
void fireComponentEvent(final int oldWidth, int width, final int oldHeight, int height) { if ((oldWidth != width) || (oldHeight != height)) { fireComponentEvent(ComponentEvent.COMPONENT_RESIZED); } else { fireComponentEvent(ComponentEvent.COMPONENT_MOVED); } }
final void fireComponentEvent(final int oldWidth, int width, final int oldHeight, int height) { if ((oldWidth != width) || (oldHeight != height)) { fireComponentEvent(ComponentEvent.COMPONENT_RESIZED); } else { fireComponentEvent(ComponentEvent.COMPONENT_MOVED); } }
8,384
public FontMetrics getFontMetrics(Font font) { return toolkit.getFontMetrics(font); }
public final FontMetrics getFontMetrics(Font font) { return toolkit.getFontMetrics(font); }
8,385
public Graphics getGraphics() { //log.debug("getGraphics"); final Component parent = ((Component)component).getParent(); if (parent != null) { final int x = jComponent.getX(); final int y = jComponent.getY(); final int width = jComponent.getWidth(); final int height...
public Graphics getGraphics() { //log.debug("getGraphics"); final Component parent = component.getParent(); if (parent != null) { final int x = jComponent.getX(); final int y = jComponent.getY(); final int width = jComponent.getWidth(); final int height = jComponent...
8,386
public GraphicsConfiguration getGraphicsConfiguration() { return toolkit.getGraphicsConfiguration(); }
public final GraphicsConfiguration getGraphicsConfiguration() { return toolkit.getGraphicsConfiguration(); }
8,387
public Point getLocationOnScreen() { return computeLocationOnScreen(((Component)component)); }
public Point getLocationOnScreen() { return computeLocationOnScreen(component); }
8,388
public boolean isFocusTraversable() { return jComponent.isFocusTraversable(); }
public final boolean isFocusTraversable() { return jComponent.isFocusTraversable(); }
8,389
public boolean isFocusable() { return jComponent.isFocusable(); }
public final boolean isFocusable() { return jComponent.isFocusable(); }
8,390
public boolean prepareImage(Image img, int width, int height, ImageObserver o) { return toolkit.prepareImage(img, width, height, o); }
public final boolean prepareImage(Image img, int width, int height, ImageObserver o) { return toolkit.prepareImage(img, width, height, o); }
8,391
protected void layoutMinorAxis(int targetSpan, int axis, int[] offsets, int[] spans) { SizeRequirements[] childReqs = getChildRequirements(axis); // Calculate the spans and offsets using the SizeRequirements uility // methods. SizeRequirements.calculateAlignedPositions(tar...
protected void layoutMinorAxis(int targetSpan, int axis, int[] offsets, int[] spans) { SizeRequirements[] childReqs = getChildRequirements(axis); // Calculate the spans and offsets using the SizeRequirements uility // methods. SizeRequirements total = baselineRequirements(...
8,392
private void writeToFile(String sc,File file) { FileOutputStream out = null; try { out = new FileOutputStream(file); out.write(sc.getBytes()); out.flush(); out.close(); } catch (FileNotFoundException fnfe) {System.out.println("fnfe: " + fnfe.getMessage());} ca...
private void writeToFile(String sc,File file) { FileOutputStream out = null; try { out = new FileOutputStream(file); for (int x = 0; x < sc.length(); x++) out.write(sc.charAt(x)); out.flush(); out.close(); } catch (FileNotFoundException fnfe) {System.out.println("f...
8,393
public DateEditor(JSpinner spinner) { super(spinner); init(new SimpleDateFormat()); }
public DateEditor(JSpinner spinner) { super(spinner); DateEditorFormatter nef = new DateEditorFormatter(); nef.setMinimum(getModel().getStart()); nef.setMaximum(getModel().getEnd()); ftf.setFormatterFactory(new DefaultFormatterFactory(nef)); }
8,394
public SimpleDateFormat getFormat() { return dateFormat; }
public SimpleDateFormat getFormat() { DateFormatter formatter = (DateFormatter) ftf.getFormatter(); return (SimpleDateFormat) formatter.getFormat(); }
8,395
public DecimalFormat getFormat() { return null; }
public DecimalFormat getFormat() { NumberFormatter formatter = (NumberFormatter) ftf.getFormatter(); return (DecimalFormat) formatter.getFormat(); }
8,400
public void setEditor(JComponent editor) { if (editor == null) throw new IllegalArgumentException("editor may not be null"); if (this.editor instanceof DefaultEditor) ((DefaultEditor) editor).dismiss(this); else if (this.editor instanceof ChangeListener) removeChangeListener((ChangeListener) ...
public void setEditor(JComponent editor) { if (editor == null) throw new IllegalArgumentException("editor may not be null"); if (this.editor instanceof DefaultEditor) ((DefaultEditor) editor).dismiss(this); else if (this.editor instanceof ChangeListener) removeChangeListener((ChangeListener) ...
8,402
public void setModel(SpinnerModel newModel) { if (newModel == null) throw new IllegalArgumentException(); if (model == newModel) return; SpinnerModel oldModel = model; model = newModel; firePropertyChange("model", oldModel, newModel); if (editor == null) setEditor(createEditor(mo...
public void setModel(SpinnerModel newModel) { if (newModel == null) throw new IllegalArgumentException(); if (model == newModel) return; SpinnerModel oldModel = model; model = newModel; firePropertyChange("model", oldModel, newModel); setEditor(createEditor(model)); }
8,404
public synchronized void draw(Shape shape, AffineTransform tx, Color color, int mode) { vgaIO.setGRAF(0, convertColor(color)); vgaIO.setGRAF(3, (mode == PAINT_MODE) ? LOGOP_NONE : LOGOP_XOR); draw(shape, tx, 0, mode); }
public synchronized void draw(Shape shape, Shape clip, AffineTransform tx, Color color, int mode) { vgaIO.setGRAF(0, convertColor(color)); vgaIO.setGRAF(3, (mode == PAINT_MODE) ? LOGOP_NONE : LOGOP_XOR); draw(shape, tx, 0, mode); }
8,405
public synchronized void draw(Shape shape, AffineTransform tx, Color color, int mode) { vgaIO.setGRAF(0, convertColor(color)); vgaIO.setGRAF(3, (mode == PAINT_MODE) ? LOGOP_NONE : LOGOP_XOR); draw(shape, tx, 0, mode); }
public synchronized void draw(Shape shape, AffineTransform tx, Color color, int mode) { vgaIO.setGRAF(0, convertColor(color)); vgaIO.setGRAF(3, (mode == PAINT_MODE) ? LOGOP_NONE : LOGOP_XOR); draw(shape, clip, tx, 0, mode); }
8,406
protected void setExpandedState(TreePath path, boolean state) { if (path == null) return; TreePath parent = path.getParentPath(); try { if (parent != null) checkExpandParents(parent); } catch (ExpandVetoException e) { // Expansion vetoed. return; } doExpandParents(path, st...
protected void setExpandedState(TreePath path, boolean state) { if (path == null) return; TreePath parent = path.getParentPath(); try { if (parent != null) checkExpandParents(parent); } catch (ExpandVetoException e) { // Expansion vetoed. return; } doExpandParents(path, st...
8,407
public void setModel(TreeModel model) { if (treeModel == model) return; TreeModel oldValue = treeModel; treeModel = model; firePropertyChange(TREE_MODEL_PROPERTY, oldValue, model); // add treeModelListener to the new model if (treeModelListener == null) treeModelListener = createTreeModel...
public void setModel(TreeModel model) { if (treeModel == model) return; TreeModel oldValue = treeModel; treeModel = model; firePropertyChange(TREE_MODEL_PROPERTY, oldValue, model); // add treeModelListener to the new model if (treeModelListener == null) treeModelListener = createTreeModel...
8,408
public Dimension getMaximumSize(JComponent c) { return maxSize; }
public Dimension getMaximumSize(JComponent c) { return new Dimension(Short.MAX_VALUE, Short.MAX_VALUE); }
8,409
public Dimension getMinimumSize(JComponent c) { return minSize; }
public Dimension getMinimumSize(JComponent c) { return new Dimension(0, 0); }
8,410
public Dimension getPreferredSize(JComponent c) { Dimension pref = verticalPrefSize; if (c instanceof JSeparator) { JSeparator s = (JSeparator) c; if (s.getOrientation() == JSeparator.HORIZONTAL) pref = horizontalPrefSize; } return pref; }
public Dimension getPreferredSize(JComponent c) { Dimension pref = new Dimension(2, 0); if (c instanceof JSeparator) { JSeparator s = (JSeparator) c; if (s.getOrientation() == JSeparator.HORIZONTAL) pref = horizontalPrefSize; } return pref; }
8,411
public Dimension getPreferredSize(JComponent c) { Dimension pref = verticalPrefSize; if (c instanceof JSeparator) { JSeparator s = (JSeparator) c; if (s.getOrientation() == JSeparator.HORIZONTAL) pref = horizontalPrefSize; } return pref; }
public Dimension getPreferredSize(JComponent c) { Dimension pref = verticalPrefSize; if (c instanceof JSeparator) { JSeparator s = (JSeparator) c; if (s.getOrientation() == JSeparator.HORIZONTAL) pref = new Dimension(0, 2); } return pref; }
8,412
private void loadConfigurationResource() { sesProps = new Properties(); try { FileInputStream in = new FileInputStream(settingsDirectory() + getConfigurationResource()); sesProps.load(in); if (sesProps.size() == 0) loadDefaults(); } catch (IOException ioe) { ...
private void loadConfigurationResource() { sesProps = new Properties(); try { FileInputStream in = new FileInputStream(settingsDirectory() + getConfigurationResource()); sesProps.load(in); if (sesProps.size() == 0) loadDefaults(); } catch (IOException ioe) { ...
8,413
private void loadConfigurationResource() { sesProps = new Properties(); try { FileInputStream in = new FileInputStream(settingsDirectory() + getConfigurationResource()); sesProps.load(in); if (sesProps.size() == 0) loadDefaults(); } catch (IOException ioe) { ...
private void loadConfigurationResource() { sesProps = new Properties(); try { FileInputStream in = new FileInputStream(settingsDirectory() + getConfigurationResource()); sesProps.load(in); if (sesProps.size() == 0) loadDefaults(); } catch (IOException ioe) { ...
8,414
protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { //open the code writeOut(outputstream, "<" + classXDFNodeName); writeOut(outputstream, " count=\"" + getCount() + "\""); writeOut(outputstream, ">"); //write out nodes in formatCommandList synchronized (formatComm...
protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { //open the code writeOut(outputstream, "<" + classXDFNodeName); writeOut(outputstream, " count=\"" + getCount() + "\""); writeOut(outputstream, ">"); //write out nodes in formatCommandList synchronized (formatComm...
8,415
protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { //open the code writeOut(outputstream, "<" + classXDFNodeName); writeOut(outputstream, " count=\"" + getCount() + "\""); writeOut(outputstream, ">"); //write out nodes in formatCommandList synchronized (formatComm...
protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { //open the code writeOut(outputstream, "<" + classXDFNodeName); writeOut(outputstream, " count=\"" + getCount() + "\""); writeOut(outputstream, ">"); //write out nodes in formatCommandList synchronized (formatComm...
8,416
static public void main(String[] args) { if (isSpecified("-MDI",args)) { useMDIFrames = true; } if (!isSpecified("-nc",args)) { if (!checkBootStrapper(args)) { // if we did not find a running instance and the -d options is // specified start up the bootstrap de...
static public void main(String[] args) { if (isSpecified("-MDI",args)) { useMDIFrames = true; } if (!isSpecified("-nc",args)) { if (!checkBootStrapper(args)) { // if we did not find a running instance and the -d options is // specified start up the bootstrap de...
8,418
synchronized void newSession(String sel,String[] args) { Properties sesProps = new Properties(); String propFileName = null; String session = args[0]; // Start loading properties sesProps.put(SESSION_HOST,session); if (isSpecified("-e",args)) sesProps.put(SESSION_TN_ENHANCED,"1"...
synchronized void newSession(String sel,String[] args) { Properties sesProps = new Properties(); String propFileName = null; String session = args[0]; // Start loading properties sesProps.put(SESSION_HOST,session); if (isSpecified("-e",args)) sesProps.put(SESSION_TN_ENHANCED,"1"...
8,419
public OutputStream _invoke(String method, InputStream in, ResponseHandler rh) { OutputStream out = null; Integer call_method = (Integer) _NamingContextImplBase.methods.get(method); if (call_method == null) throw new BAD_OPERATION(0, CompletionStatus.COMPLETED_MAYBE); switch (call_method.intValue())...
public OutputStream _invoke(String method, InputStream in, ResponseHandler rh) { OutputStream out = null; Integer call_method = (Integer) _NamingContextImplBase.methods.get(method); if (call_method == null) throw new BAD_OPERATION(Minor.Method, CompletionStatus.COMPLETED_MAYBE); switch (call_method....
8,420
public synchronized void registerFileSystem(FileSystem fs) { filesystems.put(fs.getDevice(), fs); }
public synchronized void registerFileSystem(FileSystem fs) { filesystems.put(fs.getDevice(), fs); }
8,421
protected String paramString() { return "JMenuBar"; }
protected String paramString() { StringBuffer sb = new StringBuffer(); sb.append(super.paramString()); sb.append(",margin="); if (getMargin() != null) sb.append(getMargin()); sb.append(",paintBorder=").append(isBorderPainted()); return sb.toString(); }
8,422
public void setBorderPainted(boolean b) { boolean old = borderPainted; borderPainted = b; if (b != old) { firePropertyChange(BORDER_PAINTED_CHANGED_PROPERTY, old, b); revalidate(); repaint(); } }
public void setBorderPainted(boolean b) { boolean old = borderPainted; borderPainted = b; if (b != old) { firePropertyChange(BORDER_PAINTED_CHANGED_PROPERTY, old, b); revalidate(); repaint(); } }
8,423
public void setMargin(Insets m) { if (m.equals(this.margin)) { Insets oldMargin = this.margin; this.margin = m; firePropertyChange(MARGIN_CHANGED_PROPERTY, oldMargin, margin); } this.margin = m; }
public void setMargin(Insets m) { if (m != margin) { Insets oldMargin = this.margin; this.margin = m; firePropertyChange(MARGIN_CHANGED_PROPERTY, oldMargin, margin); } this.margin = m; }
8,424
public void setMargin(Insets m) { if (m.equals(this.margin)) { Insets oldMargin = this.margin; this.margin = m; firePropertyChange(MARGIN_CHANGED_PROPERTY, oldMargin, margin); } this.margin = m; }
public void setMargin(Insets m) { if (m.equals(this.margin)) { Insets oldMargin = this.margin; this.margin = m; firePropertyChange(MARGIN_CHANGED_PROPERTY, oldMargin, margin); } this.margin = m; }
8,425
public void setMargin(Insets m) { if (m.equals(this.margin)) { Insets oldMargin = this.margin; this.margin = m; firePropertyChange(MARGIN_CHANGED_PROPERTY, oldMargin, margin); } this.margin = m; }
public void setMargin(Insets m) { if (m.equals(this.margin)) { Insets oldMargin = this.margin; firePropertyChange(MARGIN_CHANGED_PROPERTY, oldMargin, margin); } }
8,426
public void setSelectionModel(SingleSelectionModel model) { selectionModel = model; if (selectionModel != model) { SingleSelectionModel oldModel = selectionModel; selectionModel = model; firePropertyChange(MODEL_CHANGED_PROPERTY, oldModel, this.selectionModel); } }
public void setSelectionModel(SingleSelectionModel model) { if (selectionModel != model) { SingleSelectionModel oldModel = selectionModel; firePropertyChange(MODEL_CHANGED_PROPERTY, oldModel, this.selectionModel); } }
8,427
public void setSelectionModel(SingleSelectionModel model) { selectionModel = model; if (selectionModel != model) { SingleSelectionModel oldModel = selectionModel; selectionModel = model; firePropertyChange(MODEL_CHANGED_PROPERTY, oldModel, this.selectionModel); } }
public void setSelectionModel(SingleSelectionModel model) { selectionModel = model; if (selectionModel != model) { SingleSelectionModel oldModel = selectionModel; selectionModel = model; firePropertyChange(MODEL_CHANGED_PROPERTY, oldModel, this.selectionModel); } }
8,428
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
public ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : exte...
8,429
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
8,430
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; if (w < 0 || h < 0) limit = -1; else ...
8,431
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
8,432
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
8,433
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
8,434
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
8,435
public boolean contains(double x, double y) { double w = getWidth(); double h = getHeight(); if (w <= 0 || h <= 0) return false; // XXX Finish implementing. throw new Error("not implemented"); }
public boolean contains(double x, double y) { double w = getWidth(); double h = getHeight(); double extent = getAngleExtent(); if (w <= 0 || h <= 0 || extent == 0) return false; double mx = getX() + w / 2; double my = getY() + h / 2; double dx = (x - mx) * 2 / w; double dy = (y - my) * 2 / h; if ((dx * dx + dy *...
8,436
public boolean contains(double x, double y) { double w = getWidth(); double h = getHeight(); if (w <= 0 || h <= 0) return false; // XXX Finish implementing. throw new Error("not implemented"); }
public boolean contains(double x, double y) { double w = getWidth(); double h = getHeight(); if (w <= 0 || h <= 0) return false; // XXX Finish implementing. return sgn < 0; } }
8,437
public boolean containsAngle(double a) { double start = getAngleStart(); double end = start + getAngleExtent(); start %= 360; if (start < 0) start += 360; end %= 360; if (end < 0) end += 360; a %= 360; if (a < 0) a += 360; return a >= start && a <= end; }
public boolean containsAngle(double a) { double start = getAngleStart(); double extent = getAngleExtent(); double end = start + extent; if (extent >= 360 || extent <= -360) return true; if (extent < 0) { end = start; start += extent; } start %= 360; if (start < 0) start += 360; end %= 360; i...
8,438
public boolean containsAngle(double a) { double start = getAngleStart(); double end = start + getAngleExtent(); start %= 360; if (start < 0) start += 360; end %= 360; if (end < 0) end += 360; a %= 360; if (a < 0) a += 360; return a >= start && a <= end; }
public boolean containsAngle(double a) { double start = getAngleStart(); double end = start + getAngleExtent(); start %= 360; while (start < 0) start += 360; end %= 360; if (end < 0) end += 360; a %= 360; if (a < 0) a += 360; return a >= start && a <= end; }
8,439
public boolean containsAngle(double a) { double start = getAngleStart(); double end = start + getAngleExtent(); start %= 360; if (start < 0) start += 360; end %= 360; if (end < 0) end += 360; a %= 360; if (a < 0) a += 360; return a >= start && a <= end; }
public boolean containsAngle(double a) { double start = getAngleStart(); double end = start + getAngleExtent(); start %= 360; if (start < 0) start += 360; end %= 360; while (end < start) end += 360; a %= 360; if (a < 0) a += 360; return a >= start && a <= end; }
8,440
public boolean containsAngle(double a) { double start = getAngleStart(); double end = start + getAngleExtent(); start %= 360; if (start < 0) start += 360; end %= 360; if (end < 0) end += 360; a %= 360; if (a < 0) a += 360; return a >= start && a <= end; }
public boolean containsAngle(double a) { double start = getAngleStart(); double end = start + getAngleExtent(); start %= 360; if (start < 0) start += 360; end %= 360; if (end < 0) end += 360; a %= 360; while (a < start) a += 360; return a >= start && a <= end; }
8,441
public boolean intersects(double x, double y, double w, double h) { double mw = getWidth(); double mh = getHeight(); if (mw <= 0 || mh <= 0 || w <= 0 || h <= 0) return false; // XXX Finish implementing. throw new Error("not implemented"); }
public boolean intersects(double x, double y, double w, double h) { double mw = getWidth(); double mh = getHeight(); if (mw <= 0 || mh <= 0 || w <= 0 || h <= 0) return false; // XXX Finish implementing. throw new Error("not implemented"); }
8,442
public boolean intersects(double x, double y, double w, double h) { double mw = getWidth(); double mh = getHeight(); if (mw <= 0 || mh <= 0 || w <= 0 || h <= 0) return false; // XXX Finish implementing. throw new Error("not implemented"); }
public boolean intersects(double x, double y, double w, double h) { double mw = getWidth(); double mh = getHeight(); if (mw <= 0 || mh <= 0 || w <= 0 || h <= 0) return false; // XXX Finish implementing. }
8,443
public void setArcByTangent(Point2D p1, Point2D p2, Point2D p3, double r) { // XXX Implement. throw new Error("not implemented"); }
public void setArcByTangent(Point2D p1, Point2D p2, Point2D p3, double r) { // XXX Implement. if ((p2.getX() - p1.getX()) * (p3.getY() - p1.getY()) - (p3.getX() - p1.getX()) * (p2.getY() - p1.getY()) > 0) { Point2D p = p3; p3 = p1; p1 = p; } double dx1 = (p1.getX() - p2.getX()) / p1.distance(p2); double dy1 = (p...
8,444
protected AbstractDocument.AbstractElement createDefaultRoot() { BranchElement root = (BranchElement) createBranchElement(null, SimpleAttributeSet.EMPTY); Element[] array = new Element[1]; array[0] = createLeafElement(root, SimpleAttributeSet.EMPTY, 0, 1); root.replace(0, 0, array); return ro...
protected AbstractDocument.AbstractElement createDefaultRoot() { BranchElement root = (BranchElement) createBranchElement(null, null); Element[] array = new Element[1]; array[0] = createLeafElement(root, SimpleAttributeSet.EMPTY, 0, 1); root.replace(0, 0, array); return root; }
8,445
protected AbstractDocument.AbstractElement createDefaultRoot() { BranchElement root = (BranchElement) createBranchElement(null, SimpleAttributeSet.EMPTY); Element[] array = new Element[1]; array[0] = createLeafElement(root, SimpleAttributeSet.EMPTY, 0, 1); root.replace(0, 0, array); return ro...
protected AbstractDocument.AbstractElement createDefaultRoot() { BranchElement root = (BranchElement) createBranchElement(null, SimpleAttributeSet.EMPTY); Element[] array = new Element[1]; array[0] = createLeafElement(root, null, 0, 1); root.replace(0, 0, array); return root; }
8,446
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
8,447
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
8,448
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
8,449
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
8,450
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
8,451
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
8,452
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
8,453
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
8,454
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
8,455
protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); // added and removed are Element arrays used to add an ElementEdit // to the DocumentEvent if there were entire lines added or removed // from the Document Element[] added = new Element[1]; Element[] removed; in...
protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); // added and removed are Element arrays used to add an ElementEdit // to the DocumentEvent if there were entire lines added or removed // from the Document Element[] added = new Element[1]; Element[] removed; in...
8,456
static Class defineClass(ClassLoader loader, String name, byte[] data, int offset, int length, ProtectionDomain protDomain) { ByteBuffer buffer = ByteBuffer.wrap(data, offset, length); VmType<?> vmType = LoadCompileService.defineClass(name, buffer, prot...
static Class defineClass(ClassLoader loader, String name, byte[] data, int offset, int length, ProtectionDomain protDomain) { ByteBuffer buffer = ByteBuffer.wrap(data, offset, length); VmType<?> vmType = LoadCompileService.defineClass(name, buffer, prot...
8,457
private void init() { classXDFNodeName = "axis"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"valueList"); attribOrder.add(0,"axisIdRef"); attribOrder.add(0,"axisId"); attribOrder.add(0,"align"); //not sure what it is??? attribOrder.a...
private void init() { classXDFNodeName = "axis"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"valueList"); attribOrder.add(0,"axisIdRef"); attribOrder.add(0,"axisId"); attribOrder.add(0,"align"); //not sure what it is??? attribOrder.a...
8,459
private void init() { classXDFNodeName = "axis"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"valueList"); attribOrder.add(0,"axisIdRef"); attribOrder.add(0,"axisId"); attribOrder.add(0,"align"); //not sure what it is??? attribOrder.a...
private void init() { classXDFNodeName = "axis"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"valueList"); attribOrder.add(0,"axisIdRef"); attribOrder.add(0,"axisId"); attribOrder.add(0,"align"); //not sure what it is??? attribOrder.a...
8,460
public static ImplicitActivationPolicyValue from_int(int code) { try { return enume [ code ]; } catch (ArrayIndexOutOfBoundsException ex) { throw new BAD_OPERATION("Invalid enumeration code " + code); } }
public static ImplicitActivationPolicyValue from_int(int code) { try { return enume [ code ]; } catch (ArrayIndexOutOfBoundsException ex) { BAD_OPERATION bad = new BAD_OPERATION("Invalid policy code " + code); bad.minor = Minor.PolicyType; throw bad; } }
8,461
public AxisInterface addAxis(AxisInterface axis) { if (axis instanceof FieldAxis) { setFieldAxis((FieldAxis) axis); } else if (canAddAxisObjToArray((Axis) axis)) { //check if the axis can be added// getDataCube().incrementDimension((Axis) axis); //increment the DataCube ...
public AxisInterface addAxis(AxisInterface axis) { if (axis instanceof FieldAxis) { setFieldAxis((FieldAxis) axis); } else if (canAddAxisObjToArray((Axis) axis)) { //check if the axis can be added// getDataCube().incrementDimension((Axis) axis); //increment the DataCube ...
8,462
public FieldAxis getFieldAxis() { List axisList = getAxes(); if (axisList.size() == 0 || !this.hasFieldAxis() ){ //empty axisList or lacks field Axis return null; } Object axisObj = axisList.get(0); if (axisObj instanceof FieldAxis) return (FieldAxis) axisObj; ...
public FieldAxis getFieldAxis() { List axisList = getAxes(); if (axisList.size() == 0 || !this.hasFieldAxis() ){ //empty axisList or lacks field Axis return null; } Object axisObj = axisList.get(0); if (axisObj instanceof FieldAxis) return (FieldAxis) axisObj; ...
8,463
protected void init() { super.init(); classXDFNodeName = "array"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0, NOTES_XML_ATTRIBUTE_NAME); attribOrder.add(0, DATACUBE_XML_ATTRIBUTE_NAME); attribOrder.add(0, XML...
protected void init() { super.init(); classXDFNodeName = "array"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0, NOTES_XML_ATTRIBUTE_NAME); attribOrder.add(0, DATACUBE_XML_ATTRIBUTE_NAME); attribOrder.add(0, XML...
8,464
public boolean removeAxis (AxisInterface axisObj) { boolean isRemoveSuccess = removeFromList(axisObj, getAxes(), AXISLIST_XML_ATTRIBUTE_NAME); if (isRemoveSuccess) { //remove successful getDataCube().reset(); // reset data within the datacube updateChildLocators(axisObj, "remove");...
public boolean removeAxis (AxisInterface axisObj) { boolean isRemoveSuccess = removeFromList(axisObj, getAxes(), AXISLIST_XML_ATTRIBUTE_NAME); if (isRemoveSuccess) { //remove successful getDataCube().reset(); // reset data within the datacube updateChildLocators(axisObj, "remove");...
8,465
public void setAxisList (List axisList) { // remove the existing axes List oldAxisList = getAxes(); int lastindex = oldAxisList.size()-1; for (int i = lastindex; i >= 0; i--) { removeAxis(i); } //add new axes if (axisList != null && axisList.size() > 0) { Iterator iter = axis...
public void setAxisList (List axisList) { // remove the existing axes List oldAxisList = getAxes(); int lastindex = oldAxisList.size()-1; for (int i = lastindex; i >= 0; i--) { removeAxis(i); } //add new axes if (axisList != null && axisList.size() > 0) { Iterator iter = axis...
8,466
public boolean setFieldAxis (FieldAxis fieldAxis) { if (!canAddAxisObjToArray(fieldAxis)) return false; hasFieldAxis = false; if (getFieldAxis() != null) { // replace or removal List axisList = getAxes(); axisList.remove(0); if (fieldAxis != null) { ...
public boolean setFieldAxis (FieldAxis fieldAxis) { if (fieldAxis != null && !canAddAxisObjToArray(fieldAxis)) return false; hasFieldAxis = false; if (getFieldAxis() != null) { // replace or removal List axisList = getAxes(); axisList.remove(0); if (fieldAxis !=...
8,467
public boolean setFieldAxis (FieldAxis fieldAxis) { if (!canAddAxisObjToArray(fieldAxis)) return false; hasFieldAxis = false; if (getFieldAxis() != null) { // replace or removal List axisList = getAxes(); axisList.remove(0); if (fieldAxis != null) { ...
public boolean setFieldAxis (FieldAxis fieldAxis) { if (!canAddAxisObjToArray(fieldAxis)) return false; if (getFieldAxis() != null) { // replace or removal List axisList = getAxes(); axisList.remove(0); if (fieldAxis != null) { axisList.add(0, field...
8,468
public boolean setFieldAxis (FieldAxis fieldAxis) { if (!canAddAxisObjToArray(fieldAxis)) return false; hasFieldAxis = false; if (getFieldAxis() != null) { // replace or removal List axisList = getAxes(); axisList.remove(0); if (fieldAxis != null) { ...
public boolean setFieldAxis (FieldAxis fieldAxis) { if (!canAddAxisObjToArray(fieldAxis)) return false; hasFieldAxis = false; if (getFieldAxis() != null) { // replace or removal List axisList = getAxes(); axisList.remove(0); if (fieldAxis != null) { ...
8,469
public String[] getAxisTags() { List axisList = getParentArray().getAxes(); int stop = axisList.size(); String[] tags = new String[stop]; String tag; String axisId; String tempTag; int counter = stop; for (int i = 0; i < stop; i++) { axisId = ((AxisInterface)axisList.get(i)).getAxisId(); ...
public String[] getAxisTags() { List axisList = getParentArray().getAxes(); int stop = axisList.size(); String[] tags = new String[stop]; String tag; String axisId; String tempTag; int counter = stop; for (int i = 0; i < stop; i++) { axisId = ((AxisInterface)axisList.get(i)).getAxisId(); ...
8,470
public String[] getAxisTags() { List axisList = getParentArray().getAxes(); int stop = axisList.size(); String[] tags = new String[stop]; String tag; String axisId; String tempTag; int counter = stop; for (int i = 0; i < stop; i++) { axisId = ((AxisInterface)axisList.get(i)).getAxisId(); ...
public String[] getAxisTags() { List axisList = getParentArray().getAxes(); int stop = axisList.size(); String[] tags = new String[stop]; String tag; String axisId; String tempTag; int counter = stop; for (int i = 0; i < stop; i++) { axisId = ((AxisInterface)axisList.get(i)).getAxisId(); ...
8,471
protected String removeAxisTag(String axisId) { return (String) getTagHash().remove(axisId); }
protected String removeAxisTag(String axisId) { return (String) getTagHash().remove(axisId); }
8,472
public void setAxisTag(String tag, String axisId) { //insert in hash table, return tag value tagHash.put(axisId, tag); }
public void setAxisTag(String tag, String axisId) { //insert in hash table, return tag value tagHash.put(axisId, tag); }
8,473
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
8,474
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
8,475
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
8,476
public long getAtime() { return Ext2Utils.get32(data, 8); }
public synchronized long getAtime() { return Ext2Utils.get32(data, 8); }
8,477
public long getBlocks() { return Ext2Utils.get32(data, 28); }
public synchronized long getBlocks() { return Ext2Utils.get32(data, 28); }
8,478
public long getCtime() { return Ext2Utils.get32(data, 12); }
public synchronized long getCtime() { return Ext2Utils.get32(data, 12); }
8,479
public long getDirACL() { return Ext2Utils.get32(data, 108); }
public synchronized long getDirACL() { return Ext2Utils.get32(data, 108); }
8,480