Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 202595 Details for
Bug 356442
GraphicsConfiguration: setAntialias() causes drawOval() inconsistency
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
Code snippet to test the described behaviour
SWTOvalTest.java (text/x-java), 862 bytes, created by
Matthias Wienand
on 2011-09-01 05:15:43 EDT
(
hide
)
Description:
Code snippet to test the described behaviour
Filename:
MIME Type:
Creator:
Matthias Wienand
Created:
2011-09-01 05:15:43 EDT
Size:
862 bytes
patch
obsolete
>package org.eclipse.gef4.geometry.examples.intersection; > >import org.eclipse.swt.SWT; >import org.eclipse.swt.events.PaintEvent; >import org.eclipse.swt.events.PaintListener; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Shell; > >public class SWTOvalTest { > public static void main(String[] args) { > final Display display = new Display(); > Shell shell = new Shell(display); > > shell.addPaintListener(new PaintListener() { > @Override > public void paintControl(PaintEvent e) { > // e.gc.setAntialias(SWT.OFF); > e.gc.fillOval(235, 5, 200, 0); > e.gc.setBackground(display.getSystemColor(SWT.COLOR_BLUE)); > e.gc.fillOval(340, 0, 10, 10); > e.gc.fillOval(440, 0, 10, 10); > e.gc.fillOval(320, 0, 10, 10); > } > }); > > shell.open(); > > while (!shell.isDisposed()) > if (!display.readAndDispatch()) > display.sleep(); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 356442
:
202595
|
202609
|
202610
|
202611