Changeset 10874 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2016-08-22T20:44:34+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/PaintColors.java
r10869 r10874 34 34 private final String name; 35 35 private final Color defaultColor; 36 private final ColorProperty baseProperty; 36 37 private final CachingProperty<Color> property; 37 38 … … 56 57 57 58 PaintColors(String name, Color defaultColor) { 58 property = new ColorProperty(name, defaultColor).cached(); 59 baseProperty = new ColorProperty(name, defaultColor); 60 property = baseProperty.cached(); 59 61 this.name = name; 60 62 this.defaultColor = defaultColor; … … 96 98 } 97 99 } 100 101 /** 102 * Get the color property 103 * @return The property that is used to access the color. 104 * @since 10874 105 */ 106 public ColorProperty getProperty() { 107 return baseProperty; 108 } 98 109 }
Note:
See TracChangeset
for help on using the changeset viewer.