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 38413 Details for
Bug 134981
Bidi3.2: Text inside Geoshapes diagram objects is not shaped nor ordered.
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.
testing the advanced graphics
PR134981.java (text/plain), 1.12 KB, created by
Mohammed Mostafa
on 2006-04-12 11:10:49 EDT
(
hide
)
Description:
testing the advanced graphics
Filename:
MIME Type:
Creator:
Mohammed Mostafa
Created:
2006-04-12 11:10:49 EDT
Size:
1.12 KB
patch
obsolete
>package gtk.prs; > >import org.eclipse.swt.*; >import org.eclipse.swt.widgets.*; >import org.eclipse.swt.graphics.*; >//import org.eclipse.swt.internal.gtk.*; > >public class PR134981 { >public static void main(String[] args) { > final Display display = new Display(); > > Shell shell = new Shell(display); > shell.addListener(SWT.Paint, new Listener() { > public void handleEvent(Event event) { > GC gc = event.gc; > gc.setAdvanced(true); > if (!gc.getAdvanced()) { > System.out.println("Advance graphics off"); > } > gc.setAntialias(SWT.ON); > String string = "\u0627\u0644\u0627\u0634\u0643\u0627\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628"; > Font font = new Font(display, "Tahoma", 16, SWT.NORMAL); > > TextLayout layout = new TextLayout(event.display); > layout.setFont(font); > layout.setText(string); > layout.draw(gc, 10, 10); > layout.dispose(); > > gc.setFont(font); > gc.drawString(string, 10, 70); > font.dispose(); > } > }); > shell.setSize(280, 240); > shell.open(); > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) display.sleep(); > } > display.dispose (); >} >}
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 134981
:
37711
|
37712
| 38413 |
38507
|
43870