Changeset 5206 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2012-04-29T22:23:26+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPainter.java
r5054 r5206 127 127 * @param onewayReversed for oneway=-1 and similar 128 128 */ 129 public void drawWay(Way way, Color color, BasicStroke line, BasicStroke dashes, Color dashedColor, int offset,129 public void drawWay(Way way, Color color, BasicStroke line, BasicStroke dashes, Color dashedColor, float offset, 130 130 boolean showOrientation, boolean showHeadArrowOnly, 131 131 boolean showOneway, boolean onewayReversed) { … … 259 259 260 260 private List<Node> nodes; 261 private int offset;261 private float offset; 262 262 private int idx; 263 263 … … 269 269 private int x_prev0, y_prev0; 270 270 271 public OffsetIterator(List<Node> nodes, int offset) {271 public OffsetIterator(List<Node> nodes, float offset) { 272 272 this.nodes = nodes; 273 273 this.offset = offset; … … 282 282 @Override 283 283 public Point next() { 284 if ( offset == 0) return nc.getPoint(nodes.get(idx++));284 if (Math.abs(offset) < 0.1f) return nc.getPoint(nodes.get(idx++)); 285 285 286 286 Point current = nc.getPoint(nodes.get(idx)); … … 861 861 if ((pb.width >= nb.getWidth() && pb.height >= nb.getHeight()) && // quick check 862 862 area.contains(centeredNBounds) // slow but nice 863 863 ) { 864 864 g.setColor(text.color); 865 865 Font defaultFont = g.getFont();
Note:
See TracChangeset
for help on using the changeset viewer.