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/OsmPrimitive.java

    r3056 r3116  
    229229     * If allowNegativeId is not set, then id will have to be 0 (in that case new unique id will be generated) or 
    230230     * positive number. 
    231      *  
     231     * 
    232232     * If id is not > 0 version is ignored and set to 0. 
    233233     * 
     
    475475     * show which ways/nodes will connect 
    476476     */ 
    477     public volatile boolean highlighted = false; 
     477    private volatile boolean highlighted = false; 
    478478 
    479479    private int timestamp; 
     
    12881288        return dataSet != null && dataSet.isSelected(this); 
    12891289    } 
     1290 
     1291    public void setHighlighted(boolean highlighted) { 
     1292        if (this.highlighted != highlighted) { 
     1293            this.highlighted = highlighted; 
     1294            if (dataSet != null) { 
     1295                dataSet.fireHighlightingChanged(this); 
     1296            } 
     1297        } 
     1298    } 
     1299 
     1300    public boolean isHighlighted() { 
     1301        return highlighted; 
     1302    } 
    12901303} 
Note: See TracChangeset for help on using the changeset viewer.