Changeset 3165 in josm


Ignore:
Timestamp:
Mar 29, 2010 11:19:33 PM (3 years ago)
Author:
bastiK
Message:

change tagged node color in wire frame view

Location:
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintSettings.java

    r3159 r3165  
    3131    private Color inactiveColor; 
    3232    private Color nodeColor; 
     33    private Color taggedColor; 
    3334 
    3435    private MapPaintSettings() { 
     
    4748        inactiveColor = PaintColors.INACTIVE.get(); 
    4849        nodeColor = PaintColors.NODE.get(); 
     50        taggedColor = PaintColors.TAGGED.get(); 
    4951 
    5052        showOrderNumber = Main.pref.getBoolean("draw.segment.order_number", false); 
     
    9597    } 
    9698 
     99    public Color getNodeColor() { 
     100        return nodeColor; 
     101    } 
     102 
     103    public Color getTaggedColor() { 
     104        return taggedColor; 
     105    } 
     106 
    97107    public boolean isShowOrderNumber() { 
    98108        return showOrderNumber; 
     
    113123    public int getUseStrokesDistance() { 
    114124        return useStrokesDistance; 
    115     } 
    116  
    117     public Color getNodeColor() { 
    118         return nodeColor; 
    119125    } 
    120126 
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/PaintColors.java

    r3083 r3165  
    1414    SELECTED(marktr("selected"), Color.red), 
    1515    NODE(marktr("node"), Color.yellow), 
     16    TAGGED(marktr("tagged"), new Color(204, 255, 255)), // turquoise 
    1617    DEFAULT_WAY(marktr("way"),  new Color(0,0,128)), // dark blue 
    1718    RELATION(marktr("relation"), new Color(0,128,128)), // teal 
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/SimplePaintVisitor.java

    r3164 r3165  
    6161    protected Color backgroundColor; 
    6262    protected Color highlightColor; 
     63    protected Color taggedColor; 
    6364    protected boolean showDirectionArrow; 
    6465    protected boolean showRelevantDirectionsOnly; 
     
    9697        backgroundColor = PaintColors.BACKGROUND.get(); 
    9798        highlightColor = PaintColors.HIGHLIGHT.get(); 
     99        taggedColor = PaintColors.TAGGED.get(); 
    98100    } 
    99101 
     
    239241            drawNode( 
    240242                n, 
    241                 (inactive || n.isDisabled()) ? inactiveColor : nodeColor, 
     243                (inactive || n.isDisabled()) ? inactiveColor :  
     244                    (n.isTagged() ? taggedColor : nodeColor), 
    242245                junction ? junctionNodeSize : unselectedNodeSize, 
    243246                junction ? junctionNodeRadius : unselectedNodeRadius, 
Note: See TracChangeset for help on using the changeset viewer.