| Summary: | Deprecate Graphics#getXXX methods? | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Ralf Sternberg <rsternberg> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | ||
| Version: | 1.4 | ||
| Target Milestone: | 2.0 M4 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Ralf Sternberg
Maybe factory created fonts can be used as an internal undisposable font copy in some cases - see these bug 323183 and bug 321135. I've deprecated the entire class in commit 1966db9a1f021fa86ed93c4ef4c14e26073293db. Factory-created resources are obsolete, resources should always be created using a constructor. The remaining methods were related to text size measurement, which should also be possible using SWT API (GC) with one exception: GC#textExtent() does not support a wrap-width parameter. If there is interest, we could offer a public utility class for text size measurement. I've opened bug 394169 to suggest that. |