rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
if (!inDTD) throw new SAXException("external entity decl outside DTD"); | public void externalEntityDecl(String name, String publicId, String systemId) throws SAXException { if (interrupted) { return; } DomDoctype doctype = (DomDoctype) ctx; Entity entity = doctype.declareEntity(name, publicId, systemId, null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/SAXEventSink.java/buggy/core/src/classpath/gnu/gnu/xml/dom/ls/SAXEventSink.java | |
if (!inDTD) throw new SAXException("internal entity decl outside DTD"); | public void internalEntityDecl(String name, String value) throws SAXException { if (interrupted) { return; } DomDoctype doctype = (DomDoctype) ctx; Entity entity = doctype.declareEntity(name, null, null, null); if (entity != null) { Node text = doc.createTextNode(value); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/SAXEventSink.java/buggy/core/src/classpath/gnu/gnu/xml/dom/ls/SAXEventSink.java | |
if (!inDTD) throw new SAXException("notation decl outside DTD"); | public void notationDecl(String name, String publicId, String systemId) throws SAXException { if (interrupted) { return; } DomDoctype doctype = (DomDoctype) ctx; doctype.declareNotation(name, publicId, systemId); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/SAXEventSink.java/buggy/core/src/classpath/gnu/gnu/xml/dom/ls/SAXEventSink.java | |
{ ctx = doctype; | public void startEntity(String name) throws SAXException { DocumentType doctype = doc.getDoctype(); if (doctype == null) { throw new SAXException("SAX parser error: " + "reference to entity in undeclared doctype"); } if ("[dtd]".equals(name) || name.charAt(0... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/SAXEventSink.java/buggy/core/src/classpath/gnu/gnu/xml/dom/ls/SAXEventSink.java | |
} if ("lt".equals(name) || "gt".equals(name) || "amp".equals(name) || "apos".equals(name) || "quot".equals(name)) { | if (PREDEFINED_ENTITIES.contains(name)) | public void startEntity(String name) throws SAXException { DocumentType doctype = doc.getDoctype(); if (doctype == null) { throw new SAXException("SAX parser error: " + "reference to entity in undeclared doctype"); } if ("[dtd]".equals(name) || name.charAt(0... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/SAXEventSink.java/buggy/core/src/classpath/gnu/gnu/xml/dom/ls/SAXEventSink.java |
} | public void startEntity(String name) throws SAXException { DocumentType doctype = doc.getDoctype(); if (doctype == null) { throw new SAXException("SAX parser error: " + "reference to entity in undeclared doctype"); } if ("[dtd]".equals(name) || name.charAt(0... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/SAXEventSink.java/buggy/core/src/classpath/gnu/gnu/xml/dom/ls/SAXEventSink.java | |
pushEntity(entity); | EntityReference ref = doc.createEntityReference(name); Node child = ref.getFirstChild(); while (child != null) { Node nextChild = child.getNextSibling(); ref.removeChild(child); child = nextChild; } ctx.appendChild(ref); ctx = ref; | public void startEntity(String name) throws SAXException { DocumentType doctype = doc.getDoctype(); if (doctype == null) { throw new SAXException("SAX parser error: " + "reference to entity in undeclared doctype"); } if ("[dtd]".equals(name) || name.charAt(0... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/SAXEventSink.java/buggy/core/src/classpath/gnu/gnu/xml/dom/ls/SAXEventSink.java |
if (!inDTD) throw new SAXException("unparsed entity decl outside DTD"); | public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException { if (interrupted) { return; } DomDoctype doctype = (DomDoctype) ctx; Entity entity = doctype.declareEntity(name, publicId, systemId, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/SAXEventSink.java/buggy/core/src/classpath/gnu/gnu/xml/dom/ls/SAXEventSink.java | |
protected int checkHorizontalKey(int key, String message) { return 0; } | protected int checkHorizontalKey(int key, String message) { return 0; } | protected int checkHorizontalKey(int key, String message) { // Verify that key is a legal value for the horizontalAlignment properties. return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java |
protected int checkVerticalKey(int key, String message) { return 0; } | protected int checkVerticalKey(int key, String message) { return 0; } | protected int checkVerticalKey(int key, String message) { // Verify that key is a legal value for the verticalAlignment or verticalTextPosition properties. return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java |
public AccessibleContext getAccessibleContext() { return null; } | public AccessibleContext getAccessibleContext() { return null; } | public AccessibleContext getAccessibleContext() { // Get the AccessibleContext of this object return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java |
public Icon getDisabledIcon() { return null; } | public Icon getDisabledIcon() { return null; } | public Icon getDisabledIcon() { // Returns the value of the disabledIcon property if it's been set, If it hasn't been set and the value of the icon property is an ImageIcon, we compute a "grayed out" version of the icon and update the disabledIcon property with that. return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java |
public int getDisplayedMnemonic() { return 0; } | public int getDisplayedMnemonic() { return 0; } | public int getDisplayedMnemonic() { // Return the keycode that indicates a mnemonic key. return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java |
public int getHorizontalAlignment() { return hor_align; } | public int getHorizontalAlignment() { return hor_align; } | public int getHorizontalAlignment() { // Returns the alignment of the label's contents along the X axis. return hor_align; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java |
public int getHorizontalTextPosition() { return hor_text_pos; } | public int getHorizontalTextPosition() { return hor_text_pos; } | public int getHorizontalTextPosition() { // Returns the horizontal position of the label's text, relative to its image. return hor_text_pos; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java |
public int getIconTextGap() { return 0; } | public int getIconTextGap() { return 0; } | public int getIconTextGap() { // Returns the amount of space between the text and the icon displayed in this label. return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java |
public Component getLabelFor() { return null; } | public Component getLabelFor() { return null; } | public Component getLabelFor() { // Get the component this is labelling. return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java |
public String getText() { return text; } | public String getText() { return text; } | public String getText() { return text; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java |
public String getUIClassID() { return "JLabel"; } | public String getUIClassID() { return "LabelUI"; } | public String getUIClassID() { return "JLabel"; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java |
public int getVerticalAlignment() { return vert_align; } | public int getVerticalAlignment() { return vert_align; } | public int getVerticalAlignment() { // Returns the alignment of the label's contents along the Y axis. return vert_align; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java |
public int getVerticalTextPosition() { return vert_text_pos; } | public int getVerticalTextPosition() { return vert_text_pos; } | public int getVerticalTextPosition() { // Returns the vertical position of the label's text, relative to its image. return vert_text_pos; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java |
public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h) { return (img == icon); } | public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h) { return (img == icon); } | public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h) { // This is overriden to return false if the current Icon's Image is not equal to the passed in Image img. return (img == icon); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java |
protected String paramString() { return "JLabel"; } | protected String paramString() { return "JLabel"; } | protected String paramString() { // Returns a string representation of this JLabel. return "JLabel"; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java |
public void setDisabledIcon(Icon disabledIcon) { } | public void setDisabledIcon(Icon disabledIcon) { } | public void setDisabledIcon(Icon disabledIcon) { // Set the icon to be displayed if this JLabel is "disabled" (JLabel.setEnabled(false)). } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java |
public void setDisplayedMnemonic(char aChar) { } | public void setDisplayedMnemonic(char aChar) { } | public void setDisplayedMnemonic(char aChar) { // Specifies the displayedMnemonic as a char value. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java |
public void setIconTextGap(int iconTextGap) { gap = iconTextGap; } | public void setIconTextGap(int iconTextGap) { gap = iconTextGap; } | public void setIconTextGap(int iconTextGap) { gap = iconTextGap; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java |
public void setLabelFor(Component c) { } | public void setLabelFor(Component c) { } | public void setLabelFor(Component c) { // Set the component this is labelling. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java |
public void setVerticalAlignment(int alignment) { vert_align = alignment; } | public void setVerticalAlignment(int alignment) { vert_align = alignment; } | public void setVerticalAlignment(int alignment) { // Sets the alignment of the label's contents along the Y axis. vert_align = alignment; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java |
public void setVerticalTextPosition(int textPosition) { vert_text_pos = textPosition; } | public void setVerticalTextPosition(int textPosition) { vert_text_pos = textPosition; } | public void setVerticalTextPosition(int textPosition) { // Sets the vertical position of the label's text, relative to its image. vert_text_pos = textPosition; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java |
public void updateUI() { LabelUI b = (LabelUI) UIManager.getUI(this); setUI(b); } | public void updateUI() { LabelUI b = (LabelUI)UIManager.getUI(this); setUI(b); } | public void updateUI() { LabelUI b = (LabelUI) UIManager.getUI(this); setUI(b); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java |
pixel = new int[4]; | protected AbstractGraphics2D() { transform = new AffineTransform(); background = Color.WHITE; composite = AlphaComposite.SrcOver; stroke = new BasicStroke(); HashMap hints = new HashMap(); hints.put(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_DEFAULT); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java | |
public void clearRect(int x, int y, int width, int height) { Paint savedForeground = getPaint(); setPaint(getBackground()); //System.err.println("clearRect transform type: " + transform.getType()); fillRect(x, y, width, height); setPaint(savedForeground); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java | ||
} | public void clearRect(int x, int y, int width, int height) { Paint savedForeground = getPaint(); setPaint(getBackground()); //System.err.println("clearRect transform type: " + transform.getType()); fillRect(x, y, width, height); setPaint(savedForeground); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java | |
throw new UnsupportedOperationException("Not yet implemented"); | if (isOptimized) rawCopyArea(x, y, width, height, dx, dy); else copyAreaImpl(x, y, width, height, dx, dy); | public void copyArea(int x, int y, int width, int height, int dx, int dy) { // FIXME: Implement this. throw new UnsupportedOperationException("Not yet implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
public void draw(Shape shape) { // Stroke the shape. Shape strokedShape = stroke.createStrokedShape(shape); // Clip the stroked shape.// Shape clipped = clipShape(strokedShape);// if (clipped != null)// {// // Fill the shape.// fillShape(clipped, false);// } // FIXME: Cl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java | ||
AffineTransform t = new AffineTransform(); t.translate(x, y); | translate(x, y); | public void drawGlyphVector(GlyphVector gv, float x, float y) { int numGlyphs = gv.getNumGlyphs(); AffineTransform t = new AffineTransform(); t.translate(x, y);// // TODO: We could use fill(gv.getOutline()), but that seems to be // slightly more inefficient. for (int i = 0; i < numGlyphs; i++) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
GeneralPath p = new GeneralPath(gv.getGlyphOutline(i)); p.transform(t); fillShape(p, true); | Shape o = gv.getGlyphOutline(i); fillShape(o, true); | public void drawGlyphVector(GlyphVector gv, float x, float y) { int numGlyphs = gv.getNumGlyphs(); AffineTransform t = new AffineTransform(); t.translate(x, y);// // TODO: We could use fill(gv.getOutline()), but that seems to be // slightly more inefficient. for (int i = 0; i < numGlyphs; i++) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
translate(-x, -y); | public void drawGlyphVector(GlyphVector gv, float x, float y) { int numGlyphs = gv.getNumGlyphs(); AffineTransform t = new AffineTransform(); t.translate(x, y);// // TODO: We could use fill(gv.getOutline()), but that seems to be // slightly more inefficient. for (int i = 0; i < numGlyphs; i++) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java | |
public boolean drawImage(Image image, AffineTransform xform, ImageObserver obs) | public boolean drawImage(Image image, AffineTransform xform, ImageObserver obs) | public boolean drawImage(Image image, AffineTransform xform, ImageObserver obs) { // FIXME: Implement this. throw new UnsupportedOperationException("Not yet implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
throw new UnsupportedOperationException("Not yet implemented"); | boolean ret = false; Rectangle areaOfInterest = new Rectangle(0, 0, image.getWidth(obs), image.getHeight(obs)); return drawImageImpl(image, xform, obs, areaOfInterest); | public boolean drawImage(Image image, AffineTransform xform, ImageObserver obs) { // FIXME: Implement this. throw new UnsupportedOperationException("Not yet implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
throw new UnsupportedOperationException("Not yet implemented"); | Rectangle areaOfInterest = new Rectangle((int) image.getMinX(), (int) image.getHeight(), (int) image.getWidth(), (int) image.getHeight()); drawRenderableImageImpl(image, xform, areaOfInterest); | public void drawRenderableImage(RenderableImage image, AffineTransform xform) { // FIXME: Implement this. throw new UnsupportedOperationException("Not yet implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
throw new UnsupportedOperationException("Not yet implemented"); | Rectangle areaOfInterest = new Rectangle(image.getMinX(), image.getHeight(), image.getWidth(), image.getHeight()); drawRenderedImageImpl(image, xform, areaOfInterest); | public void drawRenderedImage(RenderedImage image, AffineTransform xform) { // FIXME: Implement this. throw new UnsupportedOperationException("Not yet implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
} | public void drawString(String text, int x, int y) { FontRenderContext ctx = getFontRenderContext(); GlyphVector gv = font.createGlyphVector(ctx, text.toCharArray()); drawGlyphVector(gv, x, y); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java | |
public void fill(Shape shape) {// Shape clipped = clipShape(shape);// if (clipped != null)// fillShape(clipped, false); fillShape(shape, false); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java | ||
cCtx.compose(paintRaster, destinationRaster, destinationRaster); | WritableRaster targetChild = destinationRaster.createWritableTranslatedChild(-x0,- y); cCtx.compose(paintRaster, targetChild, targetChild); | protected void fillScanline(PaintContext pCtx, int x0, int x1, int y) { Raster paintRaster = pCtx.getRaster(x0, y, x1 - x0, 1); ColorModel paintColorModel = pCtx.getColorModel(); CompositeContext cCtx = composite.createContext(paintColorModel, getColorModel... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
private void fillScanlineAA(int[] alpha, int x0, int y, int numScanlinePixels, PaintContext pCtx) | private void fillScanlineAA(int[] alpha, int x0, int yy, int numPixels, PaintContext pCtx, int offs) | private void fillScanlineAA(int[] alpha, int x0, int y, int numScanlinePixels, PaintContext pCtx) { // FIXME: This doesn't work. Fixit. CompositeContext cCtx = composite.createContext(pCtx.getColorModel(), getColorModel(), ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
private void fillScanlineAA(int[] alpha, int x0, int y, int numScanlinePixels, PaintContext pCtx) { // FIXME: This doesn't work. Fixit. CompositeContext cCtx = composite.createContext(pCtx.getColorModel(), getColorModel(), ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java | ||
Raster paintRaster = pCtx.getRaster(x0, y, numScanlinePixels, 1); System.err.println("paintColorModel: " + pCtx.getColorModel()); | Raster paintRaster = pCtx.getRaster(x0, yy, numPixels, 1); | private void fillScanlineAA(int[] alpha, int x0, int y, int numScanlinePixels, PaintContext pCtx) { // FIXME: This doesn't work. Fixit. CompositeContext cCtx = composite.createContext(pCtx.getColorModel(), getColorModel(), ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
int[] pixels = new int[numScanlinePixels + paintRaster.getNumBands()]; pixels = paintRaster.getPixels(x0, y, numScanlinePixels, 1, pixels); | private void fillScanlineAA(int[] alpha, int x0, int y, int numScanlinePixels, PaintContext pCtx) { // FIXME: This doesn't work. Fixit. CompositeContext cCtx = composite.createContext(pCtx.getColorModel(), getColorModel(), ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java | |
private void fillScanlineAA(int[] alpha, int x0, int y, int numScanlinePixels, PaintContext pCtx) { // FIXME: This doesn't work. Fixit. CompositeContext cCtx = composite.createContext(pCtx.getColorModel(), getColorModel(), ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java | ||
int[] components = new int[4]; | private void fillScanlineAA(int[] alpha, int x0, int y, int numScanlinePixels, PaintContext pCtx) { // FIXME: This doesn't work. Fixit. CompositeContext cCtx = composite.createContext(pCtx.getColorModel(), getColorModel(), ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java | |
for (int i = 0; i < pixels.length; i++) | Object pixel = null; int[] comps = null; int x1 = x0 + numPixels; for (int x = x0; x < x1; x++) | private void fillScanlineAA(int[] alpha, int x0, int y, int numScanlinePixels, PaintContext pCtx) { // FIXME: This doesn't work. Fixit. CompositeContext cCtx = composite.createContext(pCtx.getColorModel(), getColorModel(), ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
lastAlpha = lastAlphaInt / AA_SAMPLING; | lastAlpha = (double) lastAlphaInt / (double) AA_SAMPLING; alpha[i] = 0; | private void fillScanlineAA(int[] alpha, int x0, int y, int numScanlinePixels, PaintContext pCtx) { // FIXME: This doesn't work. Fixit. CompositeContext cCtx = composite.createContext(pCtx.getColorModel(), getColorModel(), ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
components = cm.getComponents(pixel[i], components, 0); components[0] = (int) (components[0] * lastAlpha); pixel[i] = cm.getDataElement(components, 0); | pixel = paintRaster.getDataElements(x - x0, 0, pixel); comps = cm.getComponents(pixel, comps, 0); if (cm.hasAlpha() && ! cm.isAlphaPremultiplied()) comps[comps.length - 1] *= lastAlpha; else { int max; if (cm.hasAlpha()) max = comps.length - 2; else max = comps.length - 1; for (int j = 0; j < max; j++) comps[j] *= last... | private void fillScanlineAA(int[] alpha, int x0, int y, int numScanlinePixels, PaintContext pCtx) { // FIXME: This doesn't work. Fixit. CompositeContext cCtx = composite.createContext(pCtx.getColorModel(), getColorModel(), ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
aaRaster.setPixels(0, 0, numScanlinePixels, 1, pixels); cCtx.compose(aaRaster, destinationRaster, destinationRaster); updateRaster(destinationRaster, x0, y, numScanlinePixels, 1); | WritableRaster targetChild = destinationRaster.createWritableTranslatedChild(-x0, -yy); cCtx.compose(aaRaster, targetChild, targetChild); updateRaster(destinationRaster, x0, yy, numPixels, 1); | private void fillScanlineAA(int[] alpha, int x0, int y, int numScanlinePixels, PaintContext pCtx) { // FIXME: This doesn't work. Fixit. CompositeContext cCtx = composite.createContext(pCtx.getColorModel(), getColorModel(), ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
antialias = (v == RenderingHints.VALUE_TEXT_ANTIALIAS_ON || v == RenderingHints.VALUE_TEXT_ANTIALIAS_DEFAULT); | antialias = (v == RenderingHints.VALUE_TEXT_ANTIALIAS_ON); | protected void fillShape(Shape s, boolean isFont) { // Determine if we need to antialias stuff. boolean antialias = false; if (isFont) { Object v = renderingHints.get(RenderingHints.KEY_TEXT_ANTIALIASING); // We default to antialiasing on for text as long as we have no // good hint... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
PathIterator path = s.getPathIterator(getTransform(), 1.0); double[] seg = new double[6]; ArrayList segs = new ArrayList(); double segX = 0.; double segY = 0.; double polyX = 0.; double polyY = 0.; double minX = Integer.MAX_VALUE; double maxX = Integer.MIN_VALUE; double minY = Integer.MAX_VALUE; double maxY =... | Rectangle2D deviceBounds = new Rectangle2D.Double(); ArrayList segs = getSegments(s, transform, deviceBounds, false); Rectangle2D clipBounds = new Rectangle2D.Double(); ArrayList clipSegs = getSegments(clip, transform, clipBounds, true); segs.addAll(clipSegs); Rectangle2D inclClipBounds = new Rectangle2D.Double(); Rect... | protected void fillShape(Shape s, boolean isFont) { // Determine if we need to antialias stuff. boolean antialias = false; if (isFont) { Object v = renderingHints.get(RenderingHints.KEY_TEXT_ANTIALIASING); // We default to antialiasing on for text as long as we have no // good hint... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
fillShapeAntialias(segs, minX, minY, maxX, maxY, userBounds); | fillShapeAntialias(segs, deviceBounds, userBounds, inclClipBounds); | protected void fillShape(Shape s, boolean isFont) { // Determine if we need to antialias stuff. boolean antialias = false; if (isFont) { Object v = renderingHints.get(RenderingHints.KEY_TEXT_ANTIALIASING); // We default to antialiasing on for text as long as we have no // good hint... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
rawFillShape(segs, minX, minY, maxX, maxY, userBounds); | fillShapeImpl(segs, deviceBounds, userBounds, inclClipBounds); | protected void fillShape(Shape s, boolean isFont) { // Determine if we need to antialias stuff. boolean antialias = false; if (isFont) { Object v = renderingHints.get(RenderingHints.KEY_TEXT_ANTIALIASING); // We default to antialiasing on for text as long as we have no // good hint... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
private void fillShapeAntialias(ArrayList segs, double minX, double minY, double maxX, double maxY, Rectangle2D userBounds) | private void fillShapeAntialias(ArrayList segs, Rectangle2D deviceBounds2D, Rectangle2D userBounds, Rectangle2D inclClipBounds) | private void fillShapeAntialias(ArrayList segs, double minX, double minY, double maxX, double maxY, Rectangle2D userBounds) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
PaintContext pCtx = paint.createContext(getColorModel(), deviceBounds, | PaintContext pCtx = paint.createContext(ColorModel.getRGBdefault(), deviceBounds, | private void fillShapeAntialias(ArrayList segs, double minX, double minY, double maxX, double maxY, Rectangle2D userBounds) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
int numScanlines = (int) Math.ceil(maxY) - (int) minY; int numScanlinePixels = (int) Math.ceil(maxX) - (int) minX + 1; | int numScanlines = (int) Math.ceil(icMaxY) - (int) icMinY; int numScanlinePixels = (int) Math.ceil(icMaxX) - (int) icMinX + 1; | private void fillShapeAntialias(ArrayList segs, double minX, double minY, double maxX, double maxY, Rectangle2D userBounds) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
int firstLine = (int) minY; | int firstLine = (int) icMinY; | private void fillShapeAntialias(ArrayList segs, double minX, double minY, double maxX, double maxY, Rectangle2D userBounds) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
int firstSubline = (int) (Math.ceil((minY - Math.floor(minY)) * AA_SAMPLING)); | int firstSubline = (int) (Math.ceil((icMinY - Math.floor(icMinY)) * AA_SAMPLING)); | private void fillShapeAntialias(ArrayList segs, double minX, double minY, double maxX, double maxY, Rectangle2D userBounds) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
for (int y = firstLine; y <= maxY; y++) | for (int y = firstLine; y <= icMaxY; y++) | private void fillShapeAntialias(ArrayList segs, double minX, double minY, double maxX, double maxY, Rectangle2D userBounds) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
boolean active = false; | boolean insideClip = false; boolean insideShape = false; | private void fillShapeAntialias(ArrayList segs, double minX, double minY, double maxX, double maxY, Rectangle2D userBounds) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
if (active) | if (edge.y1 <= (y + (subY / (double) AA_SAMPLING))) continue; if (insideClip && insideShape) | private void fillShapeAntialias(ArrayList segs, double minX, double minY, double maxX, double maxY, Rectangle2D userBounds) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
alpha[x0 - (int) minX]++; alpha[x1 - (int) minX + 1]--; previous = edge; active = false; | int left = x0 - (int) minX; int right = x1 - (int) minX + 1; alpha[left]++; alpha[right]--; leftX = Math.min(x0, leftX); rightX = Math.max(x1+2, rightX); emptyScanline = false; | private void fillShapeAntialias(ArrayList segs, double minX, double minY, double maxX, double maxY, Rectangle2D userBounds) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
{ if (edge.y1 > (y + (subY / (double) AA_SAMPLING))) { previous = edge; active = true; } } | insideShape = ! insideShape; | private void fillShapeAntialias(ArrayList segs, double minX, double minY, double maxX, double maxY, Rectangle2D userBounds) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
fillScanlineAA(alpha, (int) minX, (int) y, numScanlinePixels, pCtx); | if (! emptyScanline) fillScanlineAA(alpha, leftX, (int) y, rightX - leftX, pCtx, (int) minX); | private void fillShapeAntialias(ArrayList segs, double minX, double minY, double maxX, double maxY, Rectangle2D userBounds) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
if (paint instanceof Color && composite == AlphaComposite.SrcOver) rawSetForeground((Color) paint); | private void fillShapeAntialias(ArrayList segs, double minX, double minY, double maxX, double maxY, Rectangle2D userBounds) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java | |
return new FontRenderContext(new AffineTransform(), false, false); | return new FontRenderContext(transform, false, true); | public FontRenderContext getFontRenderContext() { //return new FontRenderContext(transform, false, false); return new FontRenderContext(new AffineTransform(), false, false); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
destinationRaster = getDestinationRaster(); | protected void init() { setPaint(Color.BLACK); setFont(new Font("SansSerif", Font.PLAIN, 12)); isOptimized = true; // FIXME: Should not be necessary. A clip of null should mean // 'clip against device bounds. clip = getDeviceBounds(); destinationRaster = getDestinationRaster(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java | |
int dy = y1 - y0; int dx = x1 - x0; int stepx, stepy; if (dy < 0) { dy = -dy; stepy = -1; | draw(new Line2D.Float(x0, y0, x1, y1)); | protected void rawDrawLine(int x0, int y0, int x1, int y1) { // This is an implementation of Bresenham's line drawing algorithm. int dy = y1 - y0; int dx = x1 - x0; int stepx, stepy; if (dy < 0) { dy = -dy; stepy = -1; } else { stepy = 1; } if (dx < 0) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
else { stepy = 1; } if (dx < 0) { dx = -dx; stepx = -1; } else { stepx = 1; } dy <<= 1; dx <<= 1; drawPixel(x0, y0); if (dx > dy) { int fraction = dy - (dx >> 1); while (x0 != x1) { if (fraction >= 0) { y0 += stepy; fraction -= dx; } x0 += stepx; fraction += dy; drawPixel(x0, y0); } } else { int fraction = dx - (dy >>... | protected void rawDrawLine(int x0, int y0, int x1, int y1) { // This is an implementation of Bresenham's line drawing algorithm. int dy = y1 - y0; int dx = x1 - x0; int stepx, stepy; if (dy < 0) { dy = -dy; stepy = -1; } else { stepy = 1; } if (dx < 0) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java | |
int x2 = x + w; int y2 = y + h; for (int xc = x; xc < x2; xc++) { for (int yc = y; yc < y2; yc++) { drawPixel(xc, yc); } } | fill(new Rectangle(x, y, w, h)); | protected void rawFillRect(int x, int y, int w, int h) { int x2 = x + w; int y2 = y + h; for (int xc = x; xc < x2; xc++) { for (int yc = y; yc < y2; yc++) { drawPixel(xc, yc); } } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
clipTransform.scale(-scaleX, -scaleY); | clipTransform.scale(1 / scaleX, 1 / scaleY); | public void scale(double scaleX, double scaleY) { transform.scale(scaleX, scaleY); if (clip != null) { AffineTransform clipTransform = new AffineTransform(); clipTransform.scale(-scaleX, -scaleY); updateClip(clipTransform); } updateOptimization(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java |
rawSetForeground((Color) paint); | public void setPaint(Paint p) { if (p != null) { paint = p; if (! (paint instanceof Color)) isOptimized = false; else { updateOptimization(); rawSetForeground((Color) paint); } } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AbstractGraphics2D.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AbstractGraphics2D.java | |
public Area(Shape s) | public Area() | public Area(Shape s) { this(); Vector p = makeSegment(s); // empty path if (p == null) return; // delete empty paths for (int i = 0; i < p.size(); i++) if (((Segment) p.elementAt(i)).getSignedArea() == 0.0) p.remove(i--); /* * Resolve self intersecting paths into non-intersecting ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/Area.java/buggy/core/src/classpath/java/java/awt/geom/Area.java |
this(); Vector p = makeSegment(s); if (p == null) return; for (int i = 0; i < p.size(); i++) if (((Segment) p.elementAt(i)).getSignedArea() == 0.0) p.remove(i--); /* * Resolve self intersecting paths into non-intersecting * solids and holes. * Algorithm is as follows: * 1: Create nodes at all self intersections *... | solids = new Vector(); holes = new Vector(); | public Area(Shape s) { this(); Vector p = makeSegment(s); // empty path if (p == null) return; // delete empty paths for (int i = 0; i < p.size(); i++) if (((Segment) p.elementAt(i)).getSignedArea() == 0.0) p.remove(i--); /* * Resolve self intersecting paths into non-intersecting ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/Area.java/buggy/core/src/classpath/java/java/awt/geom/Area.java |
public GlyphVector createGlyphVector (FontRenderContext ctx, CharacterIterator i) | public GlyphVector createGlyphVector (FontRenderContext ctx, String str) | public GlyphVector createGlyphVector (FontRenderContext ctx, CharacterIterator i){ return peer.createGlyphVector (this, ctx, i);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/Font.java/buggy/core/src/classpath/java/java/awt/Font.java |
return peer.createGlyphVector (this, ctx, i); | return peer.createGlyphVector (this, ctx, new StringCharacterIterator (str)); | public GlyphVector createGlyphVector (FontRenderContext ctx, CharacterIterator i){ return peer.createGlyphVector (this, ctx, i);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/Font.java/buggy/core/src/classpath/java/java/awt/Font.java |
PolyEdge(double x0, double y0, double x1, double y1) | PolyEdge(double x0, double y0, double x1, double y1, boolean clip) | PolyEdge(double x0, double y0, double x1, double y1) { if (y0 < y1) { this.x0 = x0; this.y0 = y0; this.x1 = x1; this.y1 = y1; } else { this.x0 = x1; this.y0 = y1; this.x1 = x0; this.y1 = y0; } slope = (this.x1 - this.x0) / (this.y1 ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/PolyEdge.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/PolyEdge.java |
isClip = clip; | PolyEdge(double x0, double y0, double x1, double y1) { if (y0 < y1) { this.x0 = x0; this.y0 = y0; this.x1 = x1; this.y1 = y1; } else { this.x0 = x1; this.y0 = y1; this.x1 = x0; this.y1 = y0; } slope = (this.x1 - this.x0) / (this.y1 ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/PolyEdge.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/PolyEdge.java | |
public FontRenderContext (AffineTransform tx, boolean isAntiAliased, boolean usesFractionalMetrics) | protected FontRenderContext() | public FontRenderContext (AffineTransform tx, boolean isAntiAliased, boolean usesFractionalMetrics) { if (tx != null && !tx.isIdentity ()) { this.affineTransform = new AffineTransform (tx); } this.isAntiAliased = isAntiAliased; this.usesFractionalMetric... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac47f92e4c558fe929f5cc64f85d3154701fcd9c/FontRenderContext.java/buggy/core/src/classpath/java/java/awt/font/FontRenderContext.java |
if (tx != null && !tx.isIdentity ()) { this.affineTransform = new AffineTransform (tx); } this.isAntiAliased = isAntiAliased; this.usesFractionalMetrics = usesFractionalMetrics; | public FontRenderContext (AffineTransform tx, boolean isAntiAliased, boolean usesFractionalMetrics) { if (tx != null && !tx.isIdentity ()) { this.affineTransform = new AffineTransform (tx); } this.isAntiAliased = isAntiAliased; this.usesFractionalMetric... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac47f92e4c558fe929f5cc64f85d3154701fcd9c/FontRenderContext.java/buggy/core/src/classpath/java/java/awt/font/FontRenderContext.java | |
{ | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new WhenNode(test.clone(stylesheet)); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/WhenNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/WhenNode.java | |
} | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new WhenNode(test.clone(stylesheet)); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/WhenNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/WhenNode.java | |
{ | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new WhenNode(test.clone(stylesheet)); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/WhenNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/WhenNode.java | |
} | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new WhenNode(test.clone(stylesheet)); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/WhenNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/WhenNode.java | |
{ | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = test.evaluate(context, pos, len); boolean success = (ret instanceof Boolean) ? ((Boolean) ret).booleanValue() : Expr._bo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/WhenNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/WhenNode.java | |
} | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = test.evaluate(context, pos, len); boolean success = (ret instanceof Boolean) ? ((Boolean) ret).booleanValue() : Expr._bo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/WhenNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/WhenNode.java | |
{ | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = test.evaluate(context, pos, len); boolean success = (ret instanceof Boolean) ? ((Boolean) ret).booleanValue() : Expr._bo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/WhenNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/WhenNode.java | |
} | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = test.evaluate(context, pos, len); boolean success = (ret instanceof Boolean) ? ((Boolean) ret).booleanValue() : Expr._bo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/WhenNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/WhenNode.java | |
{ | public boolean references(QName var) { if (test != null && test.references(var)) { return true; } return super.references(var); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/WhenNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/WhenNode.java | |
} | public boolean references(QName var) { if (test != null && test.references(var)) { return true; } return super.references(var); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/WhenNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/WhenNode.java | |
StringBuffer buf = new StringBuffer(getClass().getName()); | StringBuffer buf = new StringBuffer("when"); | public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("test="); buf.append(test); buf.append(']'); return buf.toString(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/WhenNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/WhenNode.java |
} | public void insertUpdate(DocumentEvent event) { int dot = getDot(); setDot(dot + event.getLength()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/DefaultCaret.java/clean/core/src/classpath/javax/javax/swing/text/DefaultCaret.java | |
else if (policy == NEVER_UPDATE) { int docLength = event.getDocument().getLength(); if (getDot() > docLength) setDot(docLength); } } | public void removeUpdate(DocumentEvent event) { int dot = getDot(); setDot(dot - event.getLength()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/DefaultCaret.java/clean/core/src/classpath/javax/javax/swing/text/DefaultCaret.java | |
if (!(event.getButton() == MouseEvent.BUTTON1)) return; setDot(textComponent.viewToModel(event.getPoint())); | public void mousePressed(MouseEvent event) { // FIXME: Implement this properly. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/DefaultCaret.java/clean/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.