Skip to content

Commit

Permalink
Merge pull request #36 from don-vip/master
Browse files Browse the repository at this point in the history
update to JOSM 9278
  • Loading branch information
michaz committed Jan 6, 2016
2 parents cdc39e2 + 11f4c64 commit 065fce2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ jar {
manifest {
attributes(
"Plugin-Date": new Date().format("yyyy-MM-dd HH:mm"),
"Plugin-Version": "v0.5.3",
"Plugin-Mainversion": 9060,
"Plugin-Version": "v0.5.4",
"Plugin-Mainversion": 9278,
"Created-By": System.getProperty('java.version') + ' (' + System.getProperty('java.vendor') + ')',
"Built-With": "gradle-${project.getGradle().getGradleVersion()}, groovy-${GroovySystem.getVersion()}",
"Author" : "Nico Kuehnel",
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/org/matsim/contrib/josm/MapRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import org.openstreetmap.josm.data.osm.visitor.paint.MapRendererFactory;
import org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer;
import org.openstreetmap.josm.gui.NavigatableComponent;
import org.openstreetmap.josm.gui.mappaint.LabelCompositionStrategy;
import org.openstreetmap.josm.gui.mappaint.TextElement;
import org.openstreetmap.josm.gui.mappaint.styleelement.LabelCompositionStrategy;
import org.openstreetmap.josm.gui.mappaint.styleelement.TextLabel;

import java.awt.*;
import java.util.HashMap;
Expand Down Expand Up @@ -72,7 +72,7 @@ public void drawWay(Way way, Color color, BasicStroke line, BasicStroke dashes,
if (way2Links != null && way2Links.containsKey(way) && !way2Links.get(way).isEmpty()) {
if (!way.isSelected()) {
if (Properties.showIds) { // draw id on path
drawTextOnPath(way, new TextElement(Properties.getInstance(), Properties.FONT, 0, textOffset(way), Properties.MATSIMCOLOR, 0.f,
drawTextOnPath(way, new TextLabel(Properties.getInstance(), Properties.FONT, 0, textOffset(way), Properties.MATSIMCOLOR, 0.f,
null));
}
if (way.hasTag("modes", TransportMode.pt)) { // draw
Expand All @@ -95,7 +95,7 @@ public void drawWay(Way way, Color color, BasicStroke line, BasicStroke dashes,
} else {
if (Properties.showIds) { // draw ids on selected ways
// also
drawTextOnPath(way, new TextElement(Properties.getInstance(), Properties.FONT, 0, textOffset(way), selectedColor, 0.f, null));
drawTextOnPath(way, new TextLabel(Properties.getInstance(), Properties.FONT, 0, textOffset(way), selectedColor, 0.f, null));
}
}
}
Expand Down

0 comments on commit 065fce2

Please sign in to comment.