Changeset 2666 in josm for trunk/src/org/openstreetmap/josm/data/osm/visitor
- Timestamp:
- 2009-12-20T16:19:03+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm/visitor/paint
- Files:
-
- 2 added
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintVisitor.java
r2665 r2666 1 1 /* License: GPL. Copyright 2007 by Immanuel Scholz and others */ 2 package org.openstreetmap.josm.data.osm.visitor; 2 package org.openstreetmap.josm.data.osm.visitor.paint; 3 3 4 4 /* To enable debugging or profiling remove the double / signs */ 5 5 6 import static org.openstreetmap.josm.tools.I18n.marktr;7 6 import static org.openstreetmap.josm.tools.I18n.tr; 8 7 … … 41 40 import org.openstreetmap.josm.data.osm.RelationMember; 42 41 import org.openstreetmap.josm.data.osm.Way; 42 import org.openstreetmap.josm.data.osm.visitor.AbstractVisitor; 43 43 import org.openstreetmap.josm.gui.DefaultNameFormatter; 44 44 import org.openstreetmap.josm.gui.mappaint.AreaElemStyle; … … 1248 1248 { 1249 1249 super.getColors(); 1250 untaggedColor = Main.pref.getColor(marktr("untagged"),Color.GRAY);1251 textColor = Main.pref.getColor (marktr("text"), Color.WHITE);1252 areaTextColor = Main.pref.getColor (marktr("areatext"), Color.LIGHT_GRAY);1250 untaggedColor = PaintColors.UNTAGGED.get(); 1251 textColor = PaintColors.TEXT.get(); 1252 areaTextColor = PaintColors.AREA_TEXT.get(); 1253 1253 } 1254 1254 -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/SimplePaintVisitor.java
r2665 r2666 1 1 /* License: GPL. Copyright 2007 by Immanuel Scholz and others */ 2 package org.openstreetmap.josm.data.osm.visitor; 2 package org.openstreetmap.josm.data.osm.visitor.paint; 3 3 4 4 /* To enable debugging or profiling remove the double / signs */ 5 6 import static org.openstreetmap.josm.tools.I18n.marktr;7 5 8 6 import java.awt.BasicStroke; … … 26 24 import org.openstreetmap.josm.data.osm.RelationMember; 27 25 import org.openstreetmap.josm.data.osm.Way; 26 import org.openstreetmap.josm.data.osm.visitor.AbstractVisitor; 28 27 import org.openstreetmap.josm.gui.NavigatableComponent; 29 28 … … 35 34 */ 36 35 public class SimplePaintVisitor extends AbstractVisitor { 37 38 public final static Color darkerblue = new Color(0,0,96);39 public final static Color darkblue = new Color(0,0,128);40 public final static Color darkgreen = new Color(0,128,0);41 public final static Color teal = new Color(0,128,128);42 public final static Color lightteal= new Color(0, 255, 186);43 44 36 /** 45 37 * The environment to paint to. … … 92 84 public void getColors() 93 85 { 94 inactiveColor = Main.pref.getColor(marktr("inactive"), Color.darkGray);95 selectedColor = Main.pref.getColor(marktr("selected"), Color.red);96 nodeColor = Main.pref.getColor(marktr("node"), Color.yellow);97 dfltWayColor = Main.pref.getColor(marktr("way"), darkblue);98 relationColor = Main.pref.getColor(marktr("relation"), teal);99 untaggedWayColor = Main.pref.getColor(marktr("untagged way"), darkgreen);100 incompleteColor = Main.pref.getColor(marktr("incomplete way"), darkerblue);101 backgroundColor = Main.pref.getColor(marktr("background"), Color.BLACK);102 highlightColor = Main.pref.getColor(marktr("highlight"), lightteal);86 inactiveColor = PaintColors.INACTIVE.get(); 87 selectedColor = PaintColors.SELECTED.get(); 88 nodeColor = PaintColors.NODE.get(); 89 dfltWayColor = PaintColors.DEFAULT_WAY.get(); 90 relationColor = PaintColors.RELATION.get(); 91 untaggedWayColor = PaintColors.UNTAGGED_WAY.get(); 92 incompleteColor = PaintColors.INCOMPLETE_WAY.get(); 93 backgroundColor = PaintColors.BACKGROUND.get(); 94 highlightColor = PaintColors.HIGHLIGHT.get(); 103 95 } 104 96
Note:
See TracChangeset
for help on using the changeset viewer.