Ignore:
Timestamp:
14.01.2009 23:46:14 (3 years ago)
Author:
ulfl
Message:

from Dirk Stoecker: fix multipolygon display after (my) performance tweaks

from myself: some minor changes like adding a "mappaint.showname" option to be able to globally switch off icon annotations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java

    r1254 r1263  
    3939    public Map<String, String> keys; 
    4040 
    41     /** 
    42      * The key/value list for this primitive. 
    43      */ 
     41    /* mappaint data */ 
     42    public ElemStyle mappaintStyle = null; 
     43    public boolean isMappaintArea = false; 
     44    public Integer mappaintVisibleCode = 0; 
     45    public Integer mappaintDrawnCode = 0; 
     46    public Integer mappaintDrawnAreaCode = 0; 
    4447    public Collection<String> errors; 
     48 
     49    public void putError(String text, Boolean isError) 
     50    { 
     51        if(errors == null) 
     52            errors = new ArrayList<String>(); 
     53        String s = isError ? tr("Error: {0}", text) : tr("Warning: {0}", text); 
     54        errors.add(s); 
     55    } 
     56    public void clearErrors() 
     57    { 
     58        errors = null; 
     59    } 
     60    /* end of mappaint data */ 
    4561 
    4662    /** 
     
    140156    private static Collection<String> directionKeys = null; 
    141157 
    142          
    143     /* mappaint style cache */ 
    144     public ElemStyle mappaintStyle = null; 
    145     public boolean isMappaintArea = false; 
    146          
    147158    /** 
    148159     * Implementation of the visitor scheme. Subclasses have to call the correct 
     
    331342        } 
    332343    } 
    333  
    334     public void putError(String text, Boolean isError) 
    335     { 
    336         if(errors == null) 
    337             errors = new ArrayList<String>(); 
    338         String s = isError ? tr("Error: {0}", text) : tr("Warning: {0}", text); 
    339         errors.add(s); 
    340     } 
    341     public void clearErrors() 
    342     { 
    343         errors = null; 
    344     } 
    345344} 
Note: See TracChangeset for help on using the changeset viewer.