Ignore:
Timestamp:
11.03.2010 21:01:49 (2 years ago)
Author:
jttt
Message:

Reuse offscreenBuffer if layers didn't change

File:
1 edited

Legend:

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

    r3102 r3116  
    5858    // Number of open calls to beginUpdate 
    5959    private int updateCount; 
     60 
     61    private int highlightUpdateCount; 
     62 
     63    /** 
     64     * This method can be used to detect changes in highlight state of primitives. If highlighting was changed 
     65     * then the method will return different number. 
     66     * @return 
     67     */ 
     68    public int getHighlightUpdateCount() { 
     69        return highlightUpdateCount; 
     70    } 
    6071 
    6172    /** 
     
    314325     * Replies an unmodifiable collection of primitives currently selected 
    315326     * in this dataset 
    316      *  
     327     * 
    317328     * @return unmodifiable collection of primitives 
    318329     */ 
     
    897908    } 
    898909 
     910    void fireHighlightingChanged(OsmPrimitive primitive) { 
     911        highlightUpdateCount++; 
     912    } 
     913 
    899914    public void clenupDeletedPrimitives() { 
    900915        if (cleanupDeleted(nodes.iterator()) 
Note: See TracChangeset for help on using the changeset viewer.