Changeset 29275 in osm for applications/editors/josm/plugins/smed2/src/seamap
- Timestamp:
- 2013-02-22T13:53:24+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/smed2/src/seamap
- Files:
-
- 3 edited
-
Renderer.java (modified) (1 diff)
-
Rules.java (modified) (1 diff)
-
SeaMap.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/seamap/Renderer.java
r29271 r29275 157 157 if (!gap) { 158 158 Symbols.drawSymbol(g2, symbol, sScale, curr.getX(), curr.getY(), 159 new Delta(Handle.BC, AffineTransform.getRotateInstance(Math.atan2((succ.getY() - curr.getY()), (succ.getX() - curr.getX()) + Math.toRadians(90 )))), null);159 new Delta(Handle.BC, AffineTransform.getRotateInstance(Math.atan2((succ.getY() - curr.getY()), (succ.getX() - curr.getX())) + Math.toRadians(90))), null); 160 160 } 161 161 if (space > 0) gap = !gap; -
applications/editors/josm/plugins/smed2/src/seamap/Rules.java
r29266 r29275 294 294 case ACHARE: 295 295 if (zoom >= 12) { 296 Renderer.symbol(feature, Harbours.Anchorage, null, null); 296 if (feature.flag != Fflag.LINE) 297 Renderer.symbol(feature, Harbours.Anchorage, null, null); 297 298 Renderer.lineSymbols(feature, Areas.Restricted, 1.0, Areas.LineAnchor, 10); 298 299 if ((zoom >= 15) && ((name) != null)) { -
applications/editors/josm/plugins/smed2/src/seamap/SeaMap.java
r29272 r29275 201 201 202 202 public boolean hasNext() { 203 return (edge != null) && ((it == null) || (edge.nodes.isEmpty()) || (forward && it.hasNext()) || (!forward && it.hasPrevious()));203 return (edge != null); 204 204 } 205 205 … … 253 253 254 254 public boolean hasNext() { 255 return side != null; 255 return (side != null) && ((sit.hasNext()) || (eit.hasNext())); 256 256 } 257 257 … … 502 502 llon = lon; 503 503 } 504 double frac = harc / sarc; 505 return new Snode(llat + ((lat - llat) / frac), llon + ((lon - llon) / frac)); 504 return new Snode(llat + ((lat - llat) * harc / sarc), llon + ((lon - llon) * harc / sarc)); 506 505 case AREA: 507 506 Bound bound = areas.get(feature.refs).get(0);
Note:
See TracChangeset
for help on using the changeset viewer.
