Changeset 29126 in osm for applications/editors/josm/plugins/smed2/src/symbols/Symbols.java
- Timestamp:
- 2012-12-26T19:31:12+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/symbols/Symbols.java
r29123 r29126 119 119 double dy = 0.0; 120 120 if (dd != null) { 121 g2.transform(dd.t); 121 122 switch (dd.h) { 122 123 case CC: 123 124 dx = bbox.x + (bbox.width / 2.0); 124 dy = bbox.y -(bbox.height / 2.0);125 dy = bbox.y + (bbox.height / 2.0); 125 126 break; 126 127 case TL: … … 138 139 case LC: 139 140 dx = bbox.x; 140 dy = bbox.y -(bbox.height / 2.0);141 dy = bbox.y + (bbox.height / 2.0); 141 142 break; 142 143 case RC: 143 144 dx = bbox.x + bbox.width; 144 dy = bbox.y -(bbox.height / 2.0);145 dy = bbox.y + (bbox.height / 2.0); 145 146 break; 146 147 case BL: 147 148 dx = bbox.x; 148 dy = bbox.y -bbox.height;149 dy = bbox.y + bbox.height; 149 150 break; 150 151 case BR: 151 152 dx = bbox.x + bbox.width; 152 dy = bbox.y -bbox.height;153 dy = bbox.y + bbox.height; 153 154 break; 154 155 case BC: 155 156 dx = bbox.x + (bbox.width / 2.0); 156 dy = bbox.y -bbox.height;157 dy = bbox.y + bbox.height; 157 158 break; 158 159 } 159 g2.translate(dx, dy); 160 g2.transform(dd.t); 160 g2.translate(-dx, -dy); 161 161 } 162 162 break;
Note:
See TracChangeset
for help on using the changeset viewer.