rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
public void testDeletionSync() throws IOException, InterruptedException { // file "host" and "client" folder1.setSyncProfile(SyncProfile.MANUAL_DOWNLOAD); folder2.setSyncProfile(SyncProfile.SYNCHRONIZE_PCS); File file1 = createTestFile(folder1, "/TestFile.txt", "This are the c...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/277ea8b19ea90026784553f8d75a4b9eae65c2c0/DeletionSyncTest.java/buggy/src/test/de/dal33t/powerfolder/test/DeletionSyncTest.java
folder1.setSyncProfile(SyncProfile.SYNCHRONIZE_PCS); folder2.setSyncProfile(SyncProfile.MANUAL_DOWNLOAD); RecycleBin recycleBin = getContoller2().getRecycleBin(); List<FileInfo> deletedFiles = getContoller2().getRecycleBin() .getAllRecycledFiles(); for (FileInfo deletedFileInfo : deletedFiles) { recycleBin.restoreFr...
public void testDeletionSync() throws IOException, InterruptedException { // file "host" and "client" folder1.setSyncProfile(SyncProfile.MANUAL_DOWNLOAD); folder2.setSyncProfile(SyncProfile.SYNCHRONIZE_PCS); File file1 = createTestFile(folder1, "/TestFile.txt", "This are the c...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/277ea8b19ea90026784553f8d75a4b9eae65c2c0/DeletionSyncTest.java/buggy/src/test/de/dal33t/powerfolder/test/DeletionSyncTest.java
return RubyFixnum.newFixnum(getRuntime(), method.getArity().getValue());
return getRuntime().newFixnum(method.getArity().getValue());
public RubyFixnum arity() { return RubyFixnum.newFixnum(getRuntime(), method.getArity().getValue()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyMethod.java/buggy/src/org/jruby/RubyMethod.java
throw new ArgumentError(getRuntime(), "");
throw getRuntime().newArgumentError("");
public IRubyObject call(IRubyObject[] args) { if (args == null) { args = IRubyObject.NULL_ARRAY; } if (args.length != method.getArity().getValue()) { throw new ArgumentError(getRuntime(), ""); } getRuntime().getIterStack().push(getRuntime().isBlockGiven(...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyMethod.java/buggy/src/org/jruby/RubyMethod.java
return runtime.iterate(
return getRuntime().iterate(
public IRubyObject to_proc() { return runtime.iterate( callbackFactory().getSingletonMethod(RubyMethod.class, "mproc"), runtime.getNil(), callbackFactory().getBlockMethod(RubyMethod.class, "bmcall"), this); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyMethod.java/buggy/src/org/jruby/RubyMethod.java
runtime.getNil(),
getRuntime().getNil(),
public IRubyObject to_proc() { return runtime.iterate( callbackFactory().getSingletonMethod(RubyMethod.class, "mproc"), runtime.getNil(), callbackFactory().getBlockMethod(RubyMethod.class, "bmcall"), this); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyMethod.java/buggy/src/org/jruby/RubyMethod.java
double x = pf.getImageableX(); double y = pf.getImageableY(); double w = pf.getImageableWidth(); double h = pf.getImageableHeight(); g2.translate(x, y);
public int print(Graphics g, PageFormat pf, int page) { try { Graphics2D g2 = (Graphics2D) g; double x = pf.getImageableX(); double y = pf.getImageableY(); double w = pf.getImageableWidth(); double h = pf.getImageableHeight(); g2.translate(x, ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/374d17ea4f8f5f5914c5c65d8a4c5a5ce9f4749d/XHTMLPrintable.java/clean/src/java/org/xhtmlrenderer/simple/XHTMLPrintable.java
if (h * page > height) { return Printable.NO_SUCH_PAGE; } int trans = (int) (-h * page); g2.translate(0, trans);
public int print(Graphics g, PageFormat pf, int page) { try { Graphics2D g2 = (Graphics2D) g; double x = pf.getImageableX(); double y = pf.getImageableY(); double w = pf.getImageableWidth(); double h = pf.getImageableHeight(); g2.translate(x, ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/374d17ea4f8f5f5914c5c65d8a4c5a5ce9f4749d/XHTMLPrintable.java/clean/src/java/org/xhtmlrenderer/simple/XHTMLPrintable.java
public int print(Graphics g, PageFormat pf, int page) { try { Graphics2D g2 = (Graphics2D) g; double x = pf.getImageableX(); double y = pf.getImageableY(); double w = pf.getImageableWidth(); double h = pf.getImageableHeight(); g2.translate(x, ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/374d17ea4f8f5f5914c5c65d8a4c5a5ce9f4749d/XHTMLPrintable.java/clean/src/java/org/xhtmlrenderer/simple/XHTMLPrintable.java
Dimension dim = new Dimension((int) w, (int) h); g2r.layout(g2, dim); Rectangle rect = g2r.getMinimumSize(); height = (int) rect.getHeight();
g2r.layout(g2, null); g2r.getPanel().assignPagePaintingPositions(g2, 0); } if (page >= g2r.getPanel().getRootLayer().getPages().size()) { return Printable.NO_SUCH_PAGE;
public int print(Graphics g, PageFormat pf, int page) { try { Graphics2D g2 = (Graphics2D) g; double x = pf.getImageableX(); double y = pf.getImageableY(); double w = pf.getImageableWidth(); double h = pf.getImageableHeight(); g2.translate(x, ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/374d17ea4f8f5f5914c5c65d8a4c5a5ce9f4749d/XHTMLPrintable.java/clean/src/java/org/xhtmlrenderer/simple/XHTMLPrintable.java
g2r.render(g2);
g2r.getPanel().paintPage(g2, page);
public int print(Graphics g, PageFormat pf, int page) { try { Graphics2D g2 = (Graphics2D) g; double x = pf.getImageableX(); double y = pf.getImageableY(); double w = pf.getImageableWidth(); double h = pf.getImageableHeight(); g2.translate(x, ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/374d17ea4f8f5f5914c5c65d8a4c5a5ce9f4749d/XHTMLPrintable.java/clean/src/java/org/xhtmlrenderer/simple/XHTMLPrintable.java
AnonymousBlockBox block = new AnonymousBlockBox(text, c);
AnonymousBlockBox block = new AnonymousBlockBox(content);
public Box createBox(Context c, Content content) { AnonymousBlockBox block = new AnonymousBlockBox(text, c); return block; }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bbe26e114cd1f823901a5ca3d63b5fccfdfedf81/AnonymousBoxLayout.java/buggy/src/java/org/xhtmlrenderer/layout/AnonymousBoxLayout.java
System.out.println("Drawing image");
private void addControlListeners() { control.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent event) { dispose(); } }); control.addFocusListener(new FocusListener() { public void focusGained(FocusEvent event) { hasFocus = true; if (showOnlyOnFocus) { update(); ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/a35b4342bcb72b08139991a25639f7288451a819/ControlDecoration.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ControlDecoration.java
System.out.println("Drawing image");
public void paintControl(PaintEvent event) { Control control = (Control) event.widget; Rectangle rect = getDecorationRectangle(control); if (shouldShowDecoration()) { event.gc.drawImage(decoration.getImage(), rect.x, rect.y); System.out.println("Drawing image"); //$NON-NLS-1$ } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/a35b4342bcb72b08139991a25639f7288451a819/ControlDecoration.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ControlDecoration.java
public Object getContent(Context c) {
public List getContent(Context c) {
public Object getContent(Context c) { return ContentUtil.getInlineContentList(_elem, c); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bbe26e114cd1f823901a5ca3d63b5fccfdfedf81/BlockContent.java/buggy/src/java/org/xhtmlrenderer/layout/content/BlockContent.java
timeClass.defineMethod("strftime", CallbackFactory.getMethod(RubyTime.class, "strftime", RubyObject.class)); timeClass.defineMethod("tv_usec", CallbackFactory.getMethod(RubyTime.class, "usec")); timeClass.defineMethod("usec", CallbackFactory.getMethod(RubyTime.class, "usec")); timeClass.defineMethod("tv_sec", Callba...
public static RubyClass createTimeClass(Ruby ruby) { RubyClass timeClass = ruby.defineClass("Time", ruby.getClasses().getObjectClass()); Callback s_new = CallbackFactory.getSingletonMethod(RubyTime.class, "s_new"); timeClass.defineSingletonMethod("new", s_new); timeClass.defineSingletonM...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/34c3fc5f55ea30c0bf3f66a309ac42090f75cca6/RubyTime.java/buggy/org/jruby/RubyTime.java
Platform .getPlugin(PlatformUI.PLUGIN_ID)
IDEWorkbenchPlugin.getDefault()
private void performFileImport(File[] files, IContainer target, IProgressMonitor monitor) { IOverwriteQuery query = new IOverwriteQuery() { public String queryOverwrite(String pathString) { if (alwaysOverwrite) return ALL; final String re...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/b44617ebe568f7f4382cb371e3d1a291dd46bd17/CopyFilesAndFoldersOperation.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
ActivityDefinition castedObject = (ActivityDefinition) object; boolean equals = true; equals &= Util.equals(id, castedObject.id); equals &= Util.equals(name, castedObject.name); equals &= Util.equals(sourceId, castedObject.sourceId); return equals;
final ActivityDefinition castedObject = (ActivityDefinition) object; if (!Util.equals(id, castedObject.id)) { return false; } if (!Util.equals(name, castedObject.name)) { return false; } return Util.equals(sourceId, castedObject.sourceId);
public boolean equals(Object object) { if (!(object instanceof ActivityDefinition)) return false; ActivityDefinition castedObject = (ActivityDefinition) object; boolean equals = true; equals &= Util.equals(id, castedObject.id); equals &= Util.equals(name, castedObject.n...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/93a9ee73087009b29275c4fd77412f1b5a0354e8/ActivityDefinition.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/activities/ActivityDefinition.java
new IRubyObject[] { result, RubyString.newString(runtime, bean.type.getName())});
new IRubyObject[] { result, runtime.newString(bean.type.getName())});
public IRubyObject getValue() { IRubyObject result = JavaUtil.convertJavaToRuby(runtime, bean.bean, bean.type); if (result instanceof JavaObject) { runtime.getLoadService().require("java"); result = runtime.getClasses().getObjectClass().getC...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JRubyEngine.java/buggy/src/org/jruby/javasupport/bsf/JRubyEngine.java
new IRubyObject[] { result, RubyString.newString(runtime, BSFFunctions.class.getName())});
new IRubyObject[] { result, runtime.newString(BSFFunctions.class.getName())});
public IRubyObject getValue() { IRubyObject result = JavaUtil.convertJavaToRuby(runtime, functions, BSFFunctions.class); if (result instanceof JavaObject) { runtime.getLoadService().require("java"); result = runtime.getClasses().getObjectCla...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JRubyEngine.java/buggy/src/org/jruby/javasupport/bsf/JRubyEngine.java
obj, RubyString.newString(runtime, obj.getClass().getName())
obj, runtime.newString(obj.getClass().getName())
public Object call(Object recv, String method, Object[] args) throws BSFException { try { IRubyObject rubyRecv = recv != null ? JavaUtil.convertJavaToRuby(runtime, recv) : runtime.getTopSelf(); IRubyObject[] rubyArgs = JavaUtil.convertJavaArrayToRuby(runtime, args); // Create...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JRubyEngine.java/buggy/src/org/jruby/javasupport/bsf/JRubyEngine.java
new IRubyObject[] { result, RubyString.newString(runtime, value.getClass().getName())});
new IRubyObject[] { result, runtime.newString(value.getClass().getName())});
private IRubyObject convertToRuby(Object value) { IRubyObject result = JavaUtil.convertJavaToRuby(runtime, value); if (result instanceof JavaObject) { runtime.getLoadService().require("java"); result = runtime.getClasses().getObjectClass().getConstant("JavaUtilitie...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JRubyEngine.java/buggy/src/org/jruby/javasupport/bsf/JRubyEngine.java
Callback clone = new ReflectionCallbackMethod(RubyObject.class, "rbClone"); Callback dup = new ReflectionCallbackMethod(RubyObject.class, "dup"); Callback equal = new ReflectionCallbackMethod(RubyObject.class, "equal", RubyObject.class); Callback respond_to = new ReflectionCallbackMethod(RubyObject.class, "respond_to"...
kernelModule.defineMethod("==", CallbackFactory.getMethod(RubyObject.class, "equal", RubyObject.class));
public static void createObjectClass(RubyModule kernelModule) { // TODO: convert to CallbackFactory invokes. Callback clone = new ReflectionCallbackMethod(RubyObject.class, "rbClone"); Callback dup = new ReflectionCallbackMethod(RubyObject.class, "dup"); Callback equal = new ReflectionCa...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4e4c0a90262b62b83d3fc5717371745bcc928c2b/RubyObject.java/clean/org/jruby/RubyObject.java
kernelModule.defineMethod("==", equal); kernelModule.defineMethod("respond_to?", respond_to); kernelModule.defineMethod("class", type); kernelModule.defineMethod("clone", clone); kernelModule.defineMethod("dup", dup); kernelModule.defineMethod("eql?", equal); kernelModule.defineMethod("extend", extend); kernelModule.de...
kernelModule.defineMethod("clone", CallbackFactory.getMethod(RubyObject.class, "rbClone")); kernelModule.defineMethod("dup", CallbackFactory.getMethod(RubyObject.class, "dup")); kernelModule.defineMethod("eql?", CallbackFactory.getMethod(RubyObject.class, "equal", RubyObject.class)); kernelModule.defineMethod("respond_...
public static void createObjectClass(RubyModule kernelModule) { // TODO: convert to CallbackFactory invokes. Callback clone = new ReflectionCallbackMethod(RubyObject.class, "rbClone"); Callback dup = new ReflectionCallbackMethod(RubyObject.class, "dup"); Callback equal = new ReflectionCa...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4e4c0a90262b62b83d3fc5717371745bcc928c2b/RubyObject.java/clean/org/jruby/RubyObject.java
kernelModule.defineMethod("taint", taint); kernelModule.defineMethod("tainted?", tainted); kernelModule.defineMethod("to_a", to_a); kernelModule.defineMethod("to_s", to_s); kernelModule.defineMethod("type", type); kernelModule.defineMethod("untaint", untaint);
kernelModule.defineMethod("taint", CallbackFactory.getMethod(RubyObject.class, "taint")); kernelModule.defineMethod("tainted?", CallbackFactory.getMethod(RubyObject.class, "tainted")); kernelModule.defineMethod("to_a", CallbackFactory.getMethod(RubyObject.class, "to_a")); kernelModule.defineMethod("to_s", CallbackFacto...
public static void createObjectClass(RubyModule kernelModule) { // TODO: convert to CallbackFactory invokes. Callback clone = new ReflectionCallbackMethod(RubyObject.class, "rbClone"); Callback dup = new ReflectionCallbackMethod(RubyObject.class, "dup"); Callback equal = new ReflectionCa...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4e4c0a90262b62b83d3fc5717371745bcc928c2b/RubyObject.java/clean/org/jruby/RubyObject.java
kernelModule.defineAlias("class", "type");
public static void createObjectClass(RubyModule kernelModule) { // TODO: convert to CallbackFactory invokes. Callback clone = new ReflectionCallbackMethod(RubyObject.class, "rbClone"); Callback dup = new ReflectionCallbackMethod(RubyObject.class, "dup"); Callback equal = new ReflectionCa...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4e4c0a90262b62b83d3fc5717371745bcc928c2b/RubyObject.java/clean/org/jruby/RubyObject.java
return RubyNumeric.fix2int(funcall("hash"));
long rubyHash = RubyNumeric.fix2long(funcall("hash")); int result = (int) rubyHash; result ^= (rubyHash >> 32); return result;
public int hashCode() { return RubyNumeric.fix2int(funcall("hash")); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4e4c0a90262b62b83d3fc5717371745bcc928c2b/RubyObject.java/clean/org/jruby/RubyObject.java
public RubyBoolean respond_to(RubySymbol sym) {
public RubyBoolean respond_to(RubyObject methodName) { String name; if (methodName instanceof RubySymbol) { name = ((RubySymbol) methodName).toId(); } else if (methodName instanceof RubyString) { name = ((RubyString) methodName).getValue(); } else { throw new ArgumentError(getRuby(), "not a symbol"); }
public RubyBoolean respond_to(RubySymbol sym) { //Look in cache CacheEntry ent = getRuby().getMethodCache().getEntry(getRubyClass(), sym.toId()); if (ent != null) { //Check to see if it's private and we're not including privates(return false) //otherwise return true ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4e4c0a90262b62b83d3fc5717371745bcc928c2b/RubyObject.java/clean/org/jruby/RubyObject.java
CacheEntry ent = getRuby().getMethodCache().getEntry(getRubyClass(), sym.toId());
CacheEntry ent = getRuby().getMethodCache().getEntry(getRubyClass(), name);
public RubyBoolean respond_to(RubySymbol sym) { //Look in cache CacheEntry ent = getRuby().getMethodCache().getEntry(getRubyClass(), sym.toId()); if (ent != null) { //Check to see if it's private and we're not including privates(return false) //otherwise return true ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4e4c0a90262b62b83d3fc5717371745bcc928c2b/RubyObject.java/clean/org/jruby/RubyObject.java
IMethod method = getRubyClass().searchMethod(sym.toId());
IMethod method = getRubyClass().searchMethod(name);
public RubyBoolean respond_to(RubySymbol sym) { //Look in cache CacheEntry ent = getRuby().getMethodCache().getEntry(getRubyClass(), sym.toId()); if (ent != null) { //Check to see if it's private and we're not including privates(return false) //otherwise return true ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4e4c0a90262b62b83d3fc5717371745bcc928c2b/RubyObject.java/clean/org/jruby/RubyObject.java
if (widget instanceof Item && widget.getData() != null && !isExpandable((Item) widget, null, widget.getData())) { return; }
protected void internalExpandToLevel(Widget widget, int level) { if (level == ALL_LEVELS || level > 0) { createChildren(widget); if (widget instanceof Item) { setExpanded((Item) widget, true); } if (level == ALL_LEVELS || level > 1) { Item[] children = getChildren(widget); if (children != null) { ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9b73a19afff49dea05eeb3f356b148fe442d77dc/AbstractTreeViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
if (path.length() == 0) { return part.getTitle();
String title = part.getTitle(); if (title == null || path == null || path.length() == 0) { return title;
public String getColumnText(Object element, int columnIndex) { if (element instanceof IWorkbenchPart) { IWorkbenchPart part = (IWorkbenchPart)element; String path = part.getTitleToolTip(); if (path.length() == 0) { return part.getTitle(); } else { return part.getTitle() + " [" + part.getTitleToolTip() + "]"; /...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9f092cdf294dcfa5c3aee77338af2d191c5f7370/WorkbenchPartLabelProvider.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPartLabelProvider.java
return part.getTitle() + " [" + part.getTitleToolTip() + "]";
return title + " [" + path + "]";
public String getColumnText(Object element, int columnIndex) { if (element instanceof IWorkbenchPart) { IWorkbenchPart part = (IWorkbenchPart)element; String path = part.getTitleToolTip(); if (path.length() == 0) { return part.getTitle(); } else { return part.getTitle() + " [" + part.getTitleToolTip() + "]"; /...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9f092cdf294dcfa5c3aee77338af2d191c5f7370/WorkbenchPartLabelProvider.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPartLabelProvider.java
public Object getContent(Context c) { return _sb.toString();
public List getContent(Context c) { return null;
public Object getContent(Context c) { return _sb.toString(); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bbe26e114cd1f823901a5ca3d63b5fccfdfedf81/TextContent.java/clean/src/java/org/xhtmlrenderer/layout/content/TextContent.java
setModified(true);
public void setDescription(String description) { if (((description == null) && (_description != null)) || ((description != null) && (_description == null)) || ((description != null) && (_description != null) && !description.equals(_description))) { if (!XSS_ALLOW_DESCRIPTION) { description = XSSUtil.str...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingItemFieldModel.java/clean/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingItemFieldModel.java
setModified(true);
public void setItemFieldId(String itemFieldId) { if (((itemFieldId == null) && (_itemFieldId != null)) || ((itemFieldId != null) && (_itemFieldId == null)) || ((itemFieldId != null) && (_itemFieldId != null) && !itemFieldId.equals(_itemFieldId))) { if (!XSS_ALLOW_ITEMFIELDID) { itemFieldId = XSSUtil.str...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingItemFieldModel.java/clean/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingItemFieldModel.java
setModified(true);
public void setItemId(String itemId) { if (((itemId == null) && (_itemId != null)) || ((itemId != null) && (_itemId == null)) || ((itemId != null) && (_itemId != null) && !itemId.equals(_itemId))) { if (!XSS_ALLOW_ITEMID) { itemId = XSSUtil.strip(itemId); } _itemId = itemId; setModified(true); } ...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingItemFieldModel.java/clean/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingItemFieldModel.java
setModified(true);
public void setName(String name) { if (((name == null) && (_name != null)) || ((name != null) && (_name == null)) || ((name != null) && (_name != null) && !name.equals(_name))) { if (!XSS_ALLOW_NAME) { name = XSSUtil.strip(name); } _name = name; setModified(true); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingItemFieldModel.java/clean/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingItemFieldModel.java
setModified(true);
public void setValues(String values) { if (((values == null) && (_values != null)) || ((values != null) && (_values == null)) || ((values != null) && (_values != null) && !values.equals(_values))) { if (!XSS_ALLOW_VALUES) { values = XSSUtil.strip(values); } _values = values; setModified(true); } ...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingItemFieldModel.java/clean/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingItemFieldModel.java
void handleSetChange(IObservableSet source, SetDiff diff);
void handleSetChange(SetChangeEvent event);
void handleSetChange(IObservableSet source, SetDiff diff);
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/ISetChangeListener.java/buggy/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/set/ISetChangeListener.java
public static InlineBox generateFloatedBlockInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) {
public static InlineBox generateFloatedBlockInlineBox(Context c, Content content, int avail, InlineBox prev_align, Font font) {
public static InlineBox generateFloatedBlockInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) { // u.p("generate floated block inline box: avail = " + avail); /* joshy: change this to just modify the existing block instead of creating ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bbe26e114cd1f823901a5ca3d63b5fccfdfedf81/FloatUtil.java/buggy/src/java/org/xhtmlrenderer/layout/inline/FloatUtil.java
BoxLayout layout = (BoxLayout) c.getLayout(node);
BoxLayout layout = (BoxLayout) c.getLayout(content.getElement());
public static InlineBox generateFloatedBlockInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) { // u.p("generate floated block inline box: avail = " + avail); /* joshy: change this to just modify the existing block instead of creating ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bbe26e114cd1f823901a5ca3d63b5fccfdfedf81/FloatUtil.java/buggy/src/java/org/xhtmlrenderer/layout/inline/FloatUtil.java
inline_block.setNode(node);
inline_block.setNode(content.getElement()); inline_block.setContent(content);
public static InlineBox generateFloatedBlockInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) { // u.p("generate floated block inline box: avail = " + avail); /* joshy: change this to just modify the existing block instead of creating ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bbe26e114cd1f823901a5ca3d63b5fccfdfedf81/FloatUtil.java/buggy/src/java/org/xhtmlrenderer/layout/inline/FloatUtil.java
LineBreaker.newBox(c, node, 0, 0, prev, text, bounds, prev_align, font, inline_block);
CascadedStyle firstLineStyle = c.css.getPseudoElementStyle(content.getElement(), "first-line"); LineBreaker.styleBox(c, content.getElement(), 0, 0, null, bounds, prev_align, font, inline_block, firstLineStyle);
public static InlineBox generateFloatedBlockInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) { // u.p("generate floated block inline box: avail = " + avail); /* joshy: change this to just modify the existing block instead of creating ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bbe26e114cd1f823901a5ca3d63b5fccfdfedf81/FloatUtil.java/buggy/src/java/org/xhtmlrenderer/layout/inline/FloatUtil.java
if (! box.getStyle().isCleared()) { remaining_width -= c.getBlockFormattingContext().getFloatDistance( c, prev_line, bounds.width);
if (!box.getStyle().isCleared()) { remaining_width -= c.getBlockFormattingContext().getFloatDistance(c, prev_line, bounds.width);
public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/84c49e5f6931ce245212756a3af63d4c69677805/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/84c49e5f6931ce245212756a3af63d4c69677805/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
float indent = parentStyle.getFloatPropertyProportionalWidth( CSSName.TEXT_INDENT, bounds.width, c);
float indent = parentStyle.getFloatPropertyProportionalWidth(CSSName.TEXT_INDENT, bounds.width, c);
public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/84c49e5f6931ce245212756a3af63d4c69677805/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
if (pushedOnFirstLine == null) { pushedOnFirstLine = new ArrayList(); for (Iterator i = c.getFirstLineStyles().iterator(); i.hasNext();) { c.pushStyle((CascadedStyle) i.next()); } }
public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/84c49e5f6931ce245212756a3af63d4c69677805/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
if (pushedOnFirstLine == null) { pushedOnFirstLine = new ArrayList(); for (Iterator i = c.getFirstLineStyles().iterator(); i.hasNext();) { c.pushStyle((CascadedStyle) i.next()); } }
public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/84c49e5f6931ce245212756a3af63d4c69677805/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
remaining_width -= c.getBlockFormattingContext().getFloatDistance( c, curr_line, remaining_width);
remaining_width -= c.getBlockFormattingContext().getFloatDistance(c, curr_line, remaining_width);
public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/84c49e5f6931ce245212756a3af63d4c69677805/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
remaining_width -= c.getBlockFormattingContext().getFloatDistance( c, curr_line, remaining_width);
remaining_width -= c.getBlockFormattingContext().getFloatDistance(c, curr_line, remaining_width);
public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/84c49e5f6931ce245212756a3af63d4c69677805/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
if (! block.getStyle().isClearLeft()) { line_to_save.x += c.getBlockFormattingContext().getLeftFloatDistance( c, line_to_save, bounds.width);
if (!block.getStyle().isClearLeft()) { line_to_save.x += c.getBlockFormattingContext().getLeftFloatDistance(c, line_to_save, bounds.width);
private static void saveLine(LineBox line_to_save, LineBox prev_line, Rectangle bounds, LayoutContext c, Box block, int minHeight, List pushedOnFirstLine, List pendingFloats) { line_to_save.isFirstLine = c.isFirstLine(); c.setFirstLine(fa...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/84c49e5f6931ce245212756a3af63d4c69677805/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
newWizardAction = new NewWizardAction();
protected void makeActions() { Shell shell = navigator.getSite().getShell(); IWorkbench workbench = navigator.getSite().getWorkbenchWindow().getWorkbench(); addBookmarkAction = new AddBookmarkAction(shell); addTaskAction = new AddTaskAction(shell); newWizardAction = new NewWizardAction(); propertyDialogAction ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/b5ff95c2dec300844ac72bd554e4f0f8365497fb/MainActionGroup.java/clean/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/navigator/MainActionGroup.java
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) {
private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) {
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegi...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
int rightCorner = (((sides & RIGHT) == RIGHT) ? border.right : adjust); int leftCorner = (((sides & LEFT) == LEFT) ? border.left - adjust : 0); int topCorner = (((sides & TOP) == TOP) ? border.top - adjust : 0); int bottomCorner = (((sides & BOTTOM) == BOTTOM) ? border.bottom : adjust);
int rightCorner = (((sides & RIGHT) == RIGHT) ? (int)border.right() : adjust); int leftCorner = (((sides & LEFT) == LEFT) ? (int)border.left() - adjust : 0); int topCorner = (((sides & TOP) == TOP) ? (int)border.top() - adjust : 0); int bottomCorner = (((sides & BOTTOM) == BOTTOM) ? (int)border.bottom() : adjust);
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegi...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
if (border.top != 1) {
if ((int)border.top() != 1) {
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegi...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
poly.addPoint(bounds.x + bounds.width - rightCorner, bounds.y + border.top - adjust); poly.addPoint(bounds.x + leftCorner, bounds.y + border.top - adjust);
poly.addPoint(bounds.x + bounds.width - rightCorner, bounds.y + (int)border.top() - adjust); poly.addPoint(bounds.x + leftCorner, bounds.y + (int)border.top() - adjust);
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegi...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
if (border.bottom != 1) {
if ((int)border.bottom() != 1) {
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegi...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
poly.addPoint(bounds.x + bounds.width - rightCorner, bounds.y + bounds.height - border.bottom);
poly.addPoint(bounds.x + bounds.width - rightCorner, bounds.y + bounds.height - (int)border.bottom());
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegi...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
poly.addPoint(bounds.x + leftCorner, bounds.y + bounds.height - border.bottom);
poly.addPoint(bounds.x + leftCorner, bounds.y + bounds.height - (int)border.bottom());
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegi...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
if (border.right != 1) {
if ((int)border.right() != 1) {
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegi...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
poly.addPoint(bounds.x + bounds.width - border.right, bounds.y + topCorner - snuggle); poly.addPoint(bounds.x + bounds.width - border.right, bounds.y + bounds.height - bottomCorner + snuggle);
poly.addPoint(bounds.x + bounds.width - (int)border.right(), bounds.y + topCorner - snuggle); poly.addPoint(bounds.x + bounds.width - (int)border.right(), bounds.y + bounds.height - bottomCorner + snuggle);
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegi...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
if (border.left != 1) {
if ((int)border.left() != 1) {
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegi...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
poly.addPoint(bounds.x + border.left - adjust, bounds.y + topCorner - snuggle); poly.addPoint(bounds.x + border.left - adjust, bounds.y + bounds.height - bottomCorner + snuggle);
poly.addPoint(bounds.x + (int)border.left() - adjust, bounds.y + topCorner - snuggle); poly.addPoint(bounds.x + (int)border.left() - adjust, bounds.y + bounds.height - bottomCorner + snuggle);
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegi...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
BorderColor border_color = style.getBorderColor(); Border border = style.getBorderWidth(ctx); IdentValue topStyle = null; IdentValue leftStyle = null; IdentValue bottomStyle = null; IdentValue rightStyle = null;
BorderPropertySet border = style.getBorder(ctx);
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWi...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
topStyle = style.getIdent(CSSName.BORDER_STYLE_TOP); if (topStyle == IdentValue.NONE || border.top == 0) {
if ( border.noTop()) {
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWi...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
leftStyle = style.getIdent(CSSName.BORDER_STYLE_LEFT); if (leftStyle == IdentValue.NONE || border.left == 0) {
if ( border.noLeft() ) {
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWi...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
bottomStyle = style.getIdent(CSSName.BORDER_STYLE_BOTTOM); if (bottomStyle == IdentValue.NONE || border.bottom == 0) {
if ( border.noBottom()) {
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWi...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
rightStyle = style.getIdent(CSSName.BORDER_STYLE_RIGHT); if (rightStyle == IdentValue.NONE || border.right == 0) {
if ( border.noRight()) {
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWi...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
paintBorderSide(border, g, bounds, border_color, sides, TOP, topStyle, xOffset);
paintBorderSide(border, g, bounds, sides, TOP, border.topStyle(), xOffset);
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWi...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
paintBorderSide(border, g, bounds, border_color, sides, LEFT, leftStyle, xOffset);
paintBorderSide(border, g, bounds, sides, LEFT, border.leftStyle(), xOffset);
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWi...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
paintBorderSide(border, g, bounds, border_color, sides, BOTTOM, bottomStyle, xOffset);
paintBorderSide(border, g, bounds, sides, BOTTOM, border.bottomStyle(), xOffset);
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWi...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
paintBorderSide(border, g, bounds, border_color, sides, RIGHT, rightStyle, xOffset);
paintBorderSide(border, g, bounds, sides, RIGHT, border.rightStyle(), xOffset);
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWi...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) {
private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) {
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
Border bd2 = new Border(); bd2.top = border.top / 2; bd2.bottom = border.bottom / 2; bd2.left = border.left / 2; bd2.right = border.right / 2;
BorderPropertySet bd2 = new BorderPropertySet( (int)(border.top() / 2), (int)(border.right() / 2), (int)(border.bottom() / 2), (int)(border.left() / 2));
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
paintGoodBevel(g2, bounds, border, border_color.darker(borderSideStyle), border_color.brighter(borderSideStyle), sides, currentSide); paintGoodBevel(g2, bounds, bd2, border_color.brighter(borderSideStyle), border_color.darker(borderSideStyle), sides, currentSide);
paintGoodBevel(g2, bounds, border, border.darker(borderSideStyle), border.brighter(borderSideStyle), sides, currentSide); paintGoodBevel(g2, bounds, bd2, border.brighter(borderSideStyle), border.darker(borderSideStyle), sides, currentSide);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
paintGoodBevel(g2, bounds, border, border_color.brighter(borderSideStyle), border_color.darker(borderSideStyle), sides, currentSide); paintGoodBevel(g2, bounds, bd2, border_color.darker(borderSideStyle), border_color.brighter(borderSideStyle), sides, currentSide);
paintGoodBevel(g2, bounds, border, border.brighter(borderSideStyle), border.darker(borderSideStyle), sides, currentSide); paintGoodBevel(g2, bounds, bd2, border.darker(borderSideStyle), border.brighter(borderSideStyle), sides, currentSide);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
border_color.brighter(borderSideStyle), border_color.darker(borderSideStyle), sides, currentSide);
border.brighter(borderSideStyle), border.darker(borderSideStyle), sides, currentSide);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
border_color.darker(borderSideStyle), border_color.brighter(borderSideStyle), sides, currentSide);
border.darker(borderSideStyle), border.brighter(borderSideStyle), sides, currentSide);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
paintSolid(g2, bounds, border, border_color, sides, currentSide);
paintSolid(g2, bounds, border, border, sides, currentSide);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
Border outer = new Border(); outer.top = border.top / 3; outer.bottom = border.bottom / 3; outer.left = border.left / 3; outer.right = border.right / 3; Border center = new Border(outer);
BorderPropertySet outer = new BorderPropertySet( (int)(border.top() / 3), (int)(border.bottom() / 3), (int)(border.left() / 3), (int)(border.right() / 3)); BorderPropertySet center = new BorderPropertySet(outer);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
Border inner = new Border(outer); if (border.top == 1) { outer.top = 1; center.top = 0;
BorderPropertySet inner = new BorderPropertySet(outer); if ((int)border.top() == 1) { outer.setTop(1f); center.setTop(0f);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
if (border.bottom == 1) { outer.bottom = 1; center.bottom = 0;
if ((int)border.bottom() == 1) { outer.setBottom(1f); center.setBottom(0f);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
if (border.left == 1) { outer.left = 1; center.left = 0;
if ((int)border.left() == 1) { outer.setLeft(1f); center.setLeft(0f);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
if (border.right == 1) { outer.right = 1; center.right = 0;
if ((int)border.right() == 1) { outer.setRight(1f); center.setRight(0f);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
if (border.top == 2) { outer.top = 1; center.top = 0; inner.top = 1;
if ((int)border.top() == 2) { outer.setTop(1f); center.setTop(0f); inner.setTop(1f);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
if (border.bottom == 2) { outer.bottom = 1; center.bottom = 0; inner.bottom = 1;
if ((int)border.bottom() == 2) { outer.setBottom(1f); center.setBottom(0f); inner.setBottom(1f);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
if (border.left == 2) { outer.left = 1; center.left = 0; inner.left = 1;
if ((int)border.left() == 2) { outer.setLeft(1f); center.setLeft(0f); inner.setLeft(1f);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
if (border.right == 2) { outer.right = 1; center.right = 0; inner.right = 1;
if ((int)border.right() == 2) { outer.setRight(1f); center.setRight(0f); inner.setRight(1f);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
paintSolid((Graphics2D) g, bounds, outer, border_color, sides, currentSide);
paintSolid((Graphics2D) g, bounds, outer, border, sides, currentSide);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
paintSolid((Graphics2D) g, b2, inner, border_color, sides, currentSide);
paintSolid((Graphics2D) g, b2, inner, border, sides, currentSide);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
if (currentSide == TOP) thickness = border.top; if (currentSide == BOTTOM) thickness = border.bottom; if (currentSide == RIGHT) thickness = border.right; if (currentSide == LEFT) thickness = border.left;
if (currentSide == TOP) thickness = (int)border.top(); if (currentSide == BOTTOM) thickness = (int)border.bottom(); if (currentSide == RIGHT) thickness = (int)border.right(); if (currentSide == LEFT) thickness = (int)border.left();
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
paintPatternedRect(g2, bounds, border, border_color, new float[]{8.0f + thickness * 2, 4.0f + thickness}, sides, currentSide, xOffset);
paintPatternedRect(g2, bounds, border, border, new float[]{8.0f + thickness * 2, 4.0f + thickness}, sides, currentSide, xOffset);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
paintPatternedRect(g2, bounds, border, border_color, new float[]{thickness, thickness}, sides, currentSide, xOffset);
paintPatternedRect(g2, bounds, border, border, new float[]{thickness, thickness}, sides, currentSide, xOffset);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
private static void paintGoodBevel(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor high, final BorderColor low, final int sides, int currentSide) {
private static void paintGoodBevel(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet high, final BorderPropertySet low, final int sides, int currentSide) {
private static void paintGoodBevel(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor high, final BorderColor low, final int sides, int currentSide) { if (currentSide == TOP) { paintSolid(g2, bounds, border, high, sides, currentSide); } else if (currentSide ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final float[] pattern, final int sides, final int currentSide, int xOffset) {
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) {
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); Shape old_clip = ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
g2.setColor(color.topColor); g2.setStroke(new BasicStroke(border.top, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, xOffset)); g2.drawLine(x, y + border.top / 2, x + w - 1, y + border.top / 2);
g2.setColor(color.topColor()); g2.setStroke(new BasicStroke((int)border.top(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, xOffset)); g2.drawLine(x, y + (int)(border.top() / 2), x + w - 1, y + (int)(border.top() / 2));
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); Shape old_clip = ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
g2.setColor(color.leftColor); g2.setStroke(new BasicStroke(border.left, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, 0)); g2.drawLine(x + border.left / 2, y, x + border.left / 2, y + h - 1);
g2.setColor(color.leftColor()); g2.setStroke(new BasicStroke((int)border.left(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, 0)); g2.drawLine(x + (int)(border.left() / 2), y, x + (int)(border.left() / 2), y + h - 1);
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); Shape old_clip = ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
g2.setColor(color.rightColor); g2.setStroke(new BasicStroke(border.right, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, 0)); g2.drawLine(x + w - border.right / 2, y, x + w - border.right / 2, y + h);
g2.setColor(color.rightColor()); g2.setStroke(new BasicStroke((int)border.right(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, 0)); g2.drawLine(x + w - (int)(border.right() / 2), y, x + w - (int)(border.right() / 2), y + h);
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); Shape old_clip = ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
g2.setColor(color.bottomColor); g2.setStroke(new BasicStroke(border.bottom, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, xOffset)); g2.drawLine(x, y + h - border.bottom / 2, x + w, y + h - border.bottom / 2);
g2.setColor(color.bottomColor()); g2.setStroke(new BasicStroke((int)border.bottom(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, xOffset)); g2.drawLine(x, y + h - (int)(border.bottom() / 2), x + w, y + h - (int)(border.bottom() / 2));
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); Shape old_clip = ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java