Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 192597

Summary: ScaledGraphics.drawTextLayout does not function normally
Product: [Tools] GEF Reporter: Hidenori Maeda <maeda.hidenori>
Component: GEF-Legacy Draw2dAssignee: Alexander Nyßen <nyssen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ahunter.eclipse, nyssen
Version: 3.3   
Target Milestone: 3.10.0 (Mars) M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
ScaledGraphics patch none

Description Hidenori Maeda CLA 2007-06-14 02:37:57 EDT
1. font size is not extended
2. color reversal
Comment 1 Hidenori Maeda CLA 2007-06-14 02:39:10 EDT
Created attachment 71267 [details]
ScaledGraphics patch
Comment 2 Hidenori Maeda CLA 2007-06-14 03:50:50 EDT
1. StyleItem font setting does not effect on TextLayout when ScaledGrahics is used.
2. foregound color and background color of ScaledGraphics#drawTextLayout() is reversally passed to SWTGraphics.
Comment 3 Pratik Shah CLA 2007-06-14 12:37:08 EDT
+1 for RC3
Comment 4 Alexander Nyßen CLA 2013-10-17 09:44:27 EDT
Unset target milestone as the specified one is already passed.
Comment 5 Alexander Nyßen CLA 2014-08-24 11:00:31 EDT
The font settings have already been resolved as part of bug #412089. 

What remains is the swapping of selection fore- and background colors, which is not only reversed within ScaledGraphics, but also within XYScaledGraphics.
Comment 6 Alexander Nyßen CLA 2014-08-24 11:06:52 EDT
Implemented the following changes: 

- Fixed implementation of ScaledGraphics#drawTextLayout() and XYScaledGraphics#drawTextLayout() to no longer swap the foreground and background selection colors. 
- Changed the PathExample to make use of the feature (so the fix can be demonstrated there).

Pushed all changes to origin/master. Resolving as fixed in 3.10.0M2