bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
protected int checkVerticalKey(int key, String message) { // Verify that key is a legal value for the verticalAlignment or verticalTextPosition properties. return 0; }
protected int checkVerticalKey(int key, String message) { // Verify that key is a legal value for the verticalAlignment or verticalTextPosition properties. return 0; }
16,909
public AccessibleContext getAccessibleContext() { // Get the AccessibleContext of this object return null; }
public AccessibleContext getAccessibleContext() { // Get the AccessibleContext of this object return null; }
16,910
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; }
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; }
16,911
public int getDisplayedMnemonic() { // Return the keycode that indicates a mnemonic key. return 0; }
public int getDisplayedMnemonic() { // Return the keycode that indicates a mnemonic key. return 0; }
16,912
public int getHorizontalAlignment() { // Returns the alignment of the label's contents along the X axis. return hor_align; }
public int getHorizontalAlignment() { // Returns the alignment of the label's contents along the X axis. return hor_align; }
16,913
public int getHorizontalTextPosition() { // Returns the horizontal position of the label's text, relative to its image. return hor_text_pos; }
public int getHorizontalTextPosition() { // Returns the horizontal position of the label's text, relative to its image. return hor_text_pos; }
16,914
public int getIconTextGap() { // Returns the amount of space between the text and the icon displayed in this label. return 0; }
public int getIconTextGap() { // Returns the amount of space between the text and the icon displayed in this label. return 0; }
16,915
public Component getLabelFor() { // Get the component this is labelling. return null; }
public Component getLabelFor() { // Get the component this is labelling. return null; }
16,916
public String getText() { return text; }
public String getText() { return text; }
16,917
public String getUIClassID() { return "JLabel"; }
public String getUIClassID() { return "JLabel"; }
16,918
public int getVerticalAlignment() { // Returns the alignment of the label's contents along the Y axis. return vert_align; }
public int getVerticalAlignment() { // Returns the alignment of the label's contents along the Y axis. return vert_align; }
16,919
public int getVerticalTextPosition() { // Returns the vertical position of the label's text, relative to its image. return vert_text_pos; }
public int getVerticalTextPosition() { // Returns the vertical position of the label's text, relative to its image. return vert_text_pos; }
16,920
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); }
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); }
16,921
protected String paramString() { // Returns a string representation of this JLabel. return "JLabel"; }
protected String paramString() { // Returns a string representation of this JLabel. return "JLabel"; }
16,922
public void setDisabledIcon(Icon disabledIcon) { // Set the icon to be displayed if this JLabel is "disabled" (JLabel.setEnabled(false)). }
public void setDisabledIcon(Icon disabledIcon) { // Set the icon to be displayed if this JLabel is "disabled" (JLabel.setEnabled(false)). }
16,923
public void setDisplayedMnemonic(char aChar) { // Specifies the displayedMnemonic as a char value. }
public void setDisplayedMnemonic(char aChar) { // Specifies the displayedMnemonic as a char value. }
16,924
public void setIconTextGap(int iconTextGap) { gap = iconTextGap; }
public void setIconTextGap(int iconTextGap) { gap = iconTextGap; }
16,925
public void setLabelFor(Component c) { // Set the component this is labelling. }
public void setLabelFor(Component c) { // Set the component this is labelling. }
16,926
public void setVerticalAlignment(int alignment) { // Sets the alignment of the label's contents along the Y axis. vert_align = alignment; }
public void setVerticalAlignment(int alignment) { // Sets the alignment of the label's contents along the Y axis. vert_align = alignment; }
16,927
public void setVerticalTextPosition(int textPosition) { // Sets the vertical position of the label's text, relative to its image. 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; }
16,928
public void updateUI() { LabelUI b = (LabelUI) UIManager.getUI(this); setUI(b); }
public void updateUI() { LabelUI b = (LabelUI) UIManager.getUI(this); setUI(b); }
16,929
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); ...
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); ...
16,930
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); }
publicvoidclearRect(intx,inty,intwidth,intheight){PaintsavedForeground=getPaint();setPaint(getBackground());//System.err.println("clearRecttransformtype:"+transform.getType());fillRect(x,y,width,height);setPaint(savedForeground);}
16,931
public void copyArea(int x, int y, int width, int height, int dx, int dy) { // FIXME: Implement this. throw new UnsupportedOperationException("Not yet implemented"); }
public void copyArea(int x, int y, int width, int height, int dx, int dy) { // FIXME: Implement this. if (isOptimized) rawCopyArea(x, y, width, height, dx, dy); else copyAreaImpl(x, y, width, height, dx, dy); }
16,933
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...
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...
16,934
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++) ...
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++) ...
16,935
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++) ...
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++) ...
16,936
public boolean drawImage(Image image, AffineTransform xform, ImageObserver obs) { // FIXME: Implement this. throw new UnsupportedOperationException("Not yet implemented"); }
public boolean drawImage(Image image, AffineTransform xform, ImageObserver obs) { // FIXME: Implement this. throw new UnsupportedOperationException("Not yet implemented"); }
16,938
public boolean drawImage(Image image, AffineTransform xform, ImageObserver obs) { // FIXME: Implement this. throw new UnsupportedOperationException("Not yet implemented"); }
public boolean drawImage(Image image, AffineTransform xform, ImageObserver obs) { // FIXME: Implement this. boolean ret = false; Rectangle areaOfInterest = new Rectangle(0, 0, image.getWidth(obs), image.getHeight(obs)); return drawImageImpl(image, xform, obs, areaOfInterest); }
16,939
public void drawRenderableImage(RenderableImage image, AffineTransform xform) { // FIXME: Implement this. throw new UnsupportedOperationException("Not yet implemented"); }
public void drawRenderableImage(RenderableImage image, AffineTransform xform) { // FIXME: Implement this. Rectangle areaOfInterest = new Rectangle((int) image.getMinX(), (int) image.getHeight(), (int) image.getWidth(), (int) image.getHeight()); drawRenderableImageImpl(image, xform, areaOfInterest); }
16,940
public void drawRenderedImage(RenderedImage image, AffineTransform xform) { // FIXME: Implement this. throw new UnsupportedOperationException("Not yet implemented"); }
public void drawRenderedImage(RenderedImage image, AffineTransform xform) { // FIXME: Implement this. Rectangle areaOfInterest = new Rectangle(image.getMinX(), image.getHeight(), image.getWidth(), image.getHeight()); drawRenderedImageImpl(image, xform, areaOfInterest); }
16,941
public void fill(Shape shape) {// Shape clipped = clipShape(shape);// if (clipped != null)// fillShape(clipped, false); fillShape(shape, false); }
public void fill(Shape shape) {// Shape clipped = clipShape(shape);// if (clipped != null)//fillShape(clipped, false); fillShape(shape, false); }
16,943
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...
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...
16,944
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(), ...
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(), ...
16,945
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(), ...
privatevoidfillScanlineAA(int[]alpha,intx0,inty,intnumScanlinePixels,PaintContextpCtx){//FIXME:Thisdoesn'twork.Fixit.CompositeContextcCtx=composite.createContext(pCtx.getColorModel(),getColorModel(),renderingHints);RasterpaintRaster=pCtx.getRaster(x0,y,numScanlinePixels,1);System.err.println("paintColorModel:"+pCtx.get...
16,946
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(), ...
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(), ...
16,947
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(), ...
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(), ...
16,948
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(), ...
privatevoidfillScanlineAA(int[]alpha,intx0,inty,intnumScanlinePixels,PaintContextpCtx){//FIXME:Thisdoesn'twork.Fixit.CompositeContextcCtx=composite.createContext(pCtx.getColorModel(),getColorModel(),renderingHints);RasterpaintRaster=pCtx.getRaster(x0,y,numScanlinePixels,1);System.err.println("paintColorModel:"+pCtx.get...
16,949
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(), ...
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(), ...
16,950
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(), ...
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(), ...
16,951
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(), ...
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(), ...
16,952
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(), ...
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(), ...
16,953
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(), ...
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(), ...
16,954
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...
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...
16,955
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...
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...
16,956
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...
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...
16,957
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...
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...
16,958
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...
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...
16,959
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...
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...
16,960
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...
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...
16,961
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...
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...
16,962
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...
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...
16,963
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...
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...
16,964
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...
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...
16,965
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...
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...
16,966
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...
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...
16,967
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...
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...
16,968
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...
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...
16,969
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...
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...
16,970
public FontRenderContext getFontRenderContext() { //return new FontRenderContext(transform, false, false); return new FontRenderContext(new AffineTransform(), false, false); }
public FontRenderContext getFontRenderContext() { //return new FontRenderContext(transform, false, false); return new FontRenderContext(transform, false, true); }
16,971
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(); }
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(); }
16,972
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) ...
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) ...
16,973
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) ...
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) ...
16,974
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); } } }
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); } } }
16,975
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(); }
public void scale(double scaleX, double scaleY) { transform.scale(scaleX, scaleY); if (clip != null) { AffineTransform clipTransform = new AffineTransform(); clipTransform.scale(1 / scaleX, 1 / scaleY); updateClip(clipTransform); } updateOptimization(); }
16,976
public void setPaint(Paint p) { if (p != null) { paint = p; if (! (paint instanceof Color)) isOptimized = false; else { updateOptimization(); rawSetForeground((Color) paint); } } }
public void setPaint(Paint p) { if (p != null) { paint = p; if (! (paint instanceof Color)) isOptimized = false; else { updateOptimization(); } } }
16,977
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 ...
public Area() { 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 * so...
16,978
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 ...
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 ...
16,979
public GlyphVector createGlyphVector (FontRenderContext ctx, CharacterIterator i){ return peer.createGlyphVector (this, ctx, i);}
public GlyphVector createGlyphVector (FontRenderContext ctx, CharacterIterator i){ return peer.createGlyphVector (this, ctx, i);}
16,980
public GlyphVector createGlyphVector (FontRenderContext ctx, CharacterIterator i){ return peer.createGlyphVector (this, ctx, i);}
public GlyphVector createGlyphVector (FontRenderContext ctx, CharacterIterator i){ return peer.createGlyphVector (this, ctx, i);}
16,981
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 ...
PolyEdge(double x0, double y0, double x1, double y1, boolean clip) { 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.x...
16,982
public FontRenderContext (AffineTransform tx, boolean isAntiAliased, boolean usesFractionalMetrics) { if (tx != null && !tx.isIdentity ()) { this.affineTransform = new AffineTransform (tx); } this.isAntiAliased = isAntiAliased; this.usesFractionalMetric...
public FontRenderContext (AffineTransform tx, boolean isAntiAliased, boolean usesFractionalMetrics) { if (tx != null && !tx.isIdentity ()) { this.affineTransform = new AffineTransform (tx); } this.isAntiAliased = isAntiAliased; this.usesFractionalMetric...
16,984
public FontRenderContext (AffineTransform tx, boolean isAntiAliased, boolean usesFractionalMetrics) { if (tx != null && !tx.isIdentity ()) { this.affineTransform = new AffineTransform (tx); } this.isAntiAliased = isAntiAliased; this.usesFractionalMetric...
public FontRenderContext (AffineTransform tx, boolean isAntiAliased, boolean usesFractionalMetrics) { if (tx != null && !tx.isIdentity ()) { this.affineTransform = new AffineTransform (tx); } this.isAntiAliased = isAntiAliased; this.usesFractionalMetric...
16,985
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; }
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; }
16,986
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; }
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; }
16,987
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; }
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; }
16,988
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; }
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; }
16,989
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...
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._bool...
16,990
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...
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...
16,991
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...
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._bool...
16,992
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...
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...
16,993
public boolean references(QName var) { if (test != null && test.references(var)) { return true; } return super.references(var); }
public boolean references(QName var) if (test != null && test.references(var)) return true; } return super.references(var); }
16,994
public boolean references(QName var) { if (test != null && test.references(var)) { return true; } return super.references(var); }
public boolean references(QName var) { if (test != null && test.references(var)) { return true; return super.references(var); }
16,995
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("test="); buf.append(test); buf.append(']'); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer("when"); buf.append('['); buf.append("test="); buf.append(test); buf.append(']'); return buf.toString(); }
16,996
protected final void repaint() { // FIXME: Is this good? This possibly causes alot of the component // hierarchy to be repainted on every caret blink. if (textComponent != null) textComponent.repaint(); }
protected final void repaint() { // FIXME: Is this good? This possibly causes alot of the component // hierarchy to be repainted on every caret blink. if (textComponent != null) textComponent.repaint(); }
17,000
public CannotProceedHolder(CannotProceed initialValue) { value = initialValue; }
public CannotProceedHolder() { value = initialValue; }
17,002
public CannotProceedHolder(CannotProceed initialValue) { value = initialValue; }
public CannotProceedHolder(CannotProceed initialValue) { }
17,003
public static short[] read(InputStream input) { ShortSeqHolder h = new ShortSeqHolder(); h._read(input); return h.value; }
public static short[] read(InputStream input) { ShortSeqHolder h = new ShortSeqHolder(); h._read(input); return h.value; }
17,004
public static void write(OutputStream output, short[] value) { ShortSeqHolder h = new ShortSeqHolder(value); h._write(output); }
public static void write(OutputStream output, short[] value) { ShortSeqHolder h = new ShortSeqHolder(value); h._write(output); }
17,005
public ShortSeqHolder(short[] initial_value) { value = initial_value; typecode.setLength(value.length); }
public ShortSeqHolder() { value = initial_value; typecode.setLength(value.length); }
17,006
public ShortSeqHolder(short[] initial_value) { value = initial_value; typecode.setLength(value.length); }
public ShortSeqHolder(short[] initial_value) { value = initial_value; typecode.setLength(value.length); }
17,007
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R...
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R...
17,009
public void doClick() { doClick(100); }
public void doClick() { doClick(100); }
17,010
public int getVerticalAlignment() { return vert_align; }
public int getVerticalAlignment() { return vert_align; }
17,011
public int getHorizontalAlignment() { return hori_align; }
public int getHorizontalAlignment() { return hori_align; }
17,012
public int getVerticalTextPosition() { return vert_text_pos; }
public int getVerticalTextPosition() { return vert_text_pos; }
17,013
public int getHorizontalTextPosition() { return hori_text_pos; }
public int getHorizontalTextPosition() { return hori_text_pos; }
17,014
public boolean isContentAreaFilled() { // Checks whether the "content area" of the button should be filled. return false; }
public boolean isContentAreaFilled() { // Checks whether the "content area" of the button should be filled. return false; }
17,015
public Icon getIcon() { return default_icon; }
public Icon getIcon() { return default_icon; }
17,016
public FrameWrapper(JInternalFrame iFrame) { this.frame = iFrame; this.setText(iFrame.getTitle()); this.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { try { JInternalFrame frame =...
public FrameWrapper(JInternalFrame iFrame) { this.frame = iFrame; this.setText(iFrame.getTitle()); this.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { try { JInternalFrame frame =...
17,017