Changeset 173:97c2675aca38
- Timestamp:
- 03/02/08 17:12:38
(10 months ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- branch:
- default
- Message:
Fix: missing styles in StyleRange?
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r155 |
r173 |
|
| 45 | 45 | */ |
|---|
| 46 | 46 | public int fontStyle = DWT.NORMAL; |
|---|
| | 47 | |
|---|
| | 48 | /++ |
|---|
| | 49 | + DWT extension for clone implementation |
|---|
| | 50 | +/ |
|---|
| | 51 | protected this( StyleRange other ){ |
|---|
| | 52 | super( other ); |
|---|
| | 53 | start = other.start; |
|---|
| | 54 | length = other.length; |
|---|
| | 55 | fontStyle = other.fontStyle; |
|---|
| | 56 | } |
|---|
| 47 | 57 | |
|---|
| 48 | 58 | /** |
|---|
| … | … | |
| 157 | 167 | */ |
|---|
| 158 | 168 | public /+override+/ Object clone() { |
|---|
| 159 | | return new StyleRange( start, length, foreground, background, fontStyle ); |
|---|
| | 169 | return new StyleRange( this ); |
|---|
| 160 | 170 | } |
|---|
| 161 | 171 | |
|---|
| r172 |
r173 |
|
| 84 | 84 | */ |
|---|
| 85 | 85 | public int rise; |
|---|
| | 86 | |
|---|
| | 87 | /++ |
|---|
| | 88 | + DWT extension for clone implementation |
|---|
| | 89 | +/ |
|---|
| | 90 | protected this( TextStyle other ){ |
|---|
| | 91 | font = other.font; |
|---|
| | 92 | foreground = other.foreground; |
|---|
| | 93 | background = other.background; |
|---|
| | 94 | underline = other.underline; |
|---|
| | 95 | strikeout = other.strikeout; |
|---|
| | 96 | metrics = other.metrics; |
|---|
| | 97 | rise = other.rise; |
|---|
| | 98 | } |
|---|
| 86 | 99 | |
|---|
| 87 | 100 | /** |
|---|