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 101117 Details for
Bug 225539
[Bidi] Support text direction in report presentation engine
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.
[patch]
Patch for rotated text
roratedtext080520.diff (text/plain), 2.90 KB, created by
Lina Kemmel
on 2008-05-20 14:38:09 EDT
(
hide
)
Description:
Patch for rotated text
Filename:
MIME Type:
Creator:
Lina Kemmel
Created:
2008-05-20 14:38:09 EDT
Size:
2.90 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.birt.sample.reportitem.rotatedtext >Index: src/org/eclipse/birt/sample/reportitem/rotatedtext/util/GraphicsUtil.java >=================================================================== >RCS file: /cvsroot/birt/source/org.eclipse.birt.sample.reportitem.rotatedtext/src/org/eclipse/birt/sample/reportitem/rotatedtext/util/GraphicsUtil.java,v >retrieving revision 1.1 >diff -u -r1.1 GraphicsUtil.java >--- src/org/eclipse/birt/sample/reportitem/rotatedtext/util/GraphicsUtil.java 16 Jul 2005 00:12:46 -0000 1.1 >+++ src/org/eclipse/birt/sample/reportitem/rotatedtext/util/GraphicsUtil.java 20 May 2008 18:35:17 -0000 >@@ -7,6 +7,7 @@ > * > * Contributors: > * Actuate Corporation - initial API and implementation >+ * IBM Corporation - Bidi direction of text > *******************************************************************************/ > > package org.eclipse.birt.sample.reportitem.rotatedtext.util; >@@ -91,7 +92,7 @@ > * Note: Only one of the style UP or DOWN may be specified. > * </p> > */ >- public Image createRotatedText(String text, Integer angle ) >+ public Image createRotatedText( String text, Integer angle, boolean rtl ) > { > > >@@ -121,7 +122,10 @@ > stringImage = new Image(display, pt.x, pt.y); > > // Create a gc for the image >- gc = new GC(stringImage); >+ if ( rtl ) >+ gc = new GC( stringImage, SWT.RIGHT_TO_LEFT ); >+ else >+ gc = new GC( stringImage, SWT.LEFT_TO_RIGHT ); > > // Draw the text onto the image > gc.drawText(text, 0, 0); >Index: src/org/eclipse/birt/sample/reportitem/rotatedtext/RotatedTextPresentationImpl.java >=================================================================== >RCS file: /cvsroot/birt/source/org.eclipse.birt.sample.reportitem.rotatedtext/src/org/eclipse/birt/sample/reportitem/rotatedtext/RotatedTextPresentationImpl.java,v >retrieving revision 1.1 >diff -u -r1.1 RotatedTextPresentationImpl.java >--- src/org/eclipse/birt/sample/reportitem/rotatedtext/RotatedTextPresentationImpl.java 16 Jul 2005 00:12:46 -0000 1.1 >+++ src/org/eclipse/birt/sample/reportitem/rotatedtext/RotatedTextPresentationImpl.java 20 May 2008 18:35:17 -0000 >@@ -7,6 +7,7 @@ > * > * Contributors: > * Actuate Corporation - initial API and implementation >+ * IBM Corporation - Bidi direction of text > *******************************************************************************/ > > package org.eclipse.birt.sample.reportitem.rotatedtext; >@@ -158,8 +159,9 @@ > > > >- graphicsUtil = new GraphicsUtil(); >- org.eclipse.swt.graphics.Image rotatedImage = graphicsUtil.createRotatedText(text, angle); >+ graphicsUtil = new GraphicsUtil(); >+ org.eclipse.swt.graphics.Image rotatedImage = graphicsUtil >+ .createRotatedText( text, angle, modelHandle.isDirectionRTL( ) ); > > // Test > ImageLoader imageLoader = new ImageLoader();
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 Diff
View Attachment As Raw
Flags:
bjorn.freeman-benson
:
iplog+
Lina.Kemmel
:
review?
Actions:
View
|
Diff
Attachments on
bug 225539
: 101117