Changeset 3836 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/xml/IconPrototype.java
- Timestamp:
- 2011-01-31T14:18:47+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/xml/IconPrototype.java
r3827 r3836 2 2 package org.openstreetmap.josm.gui.mappaint.xml; 3 3 4 import org.openstreetmap.josm.gui.mappaint.IconElemStyle;5 import org.openstreetmap.josm.gui.mappaint.MapPaintStyles;6 4 import org.openstreetmap.josm.gui.mappaint.MapPaintStyles.IconReference; 7 import org.openstreetmap.josm.gui.mappaint.NodeElemStyle; 8 import org.openstreetmap.josm.gui.mappaint.SimpleNodeElemStyle; 5 import org.openstreetmap.josm.gui.mappaint.Range; 9 6 10 7 public class IconPrototype extends Prototype { 11 8 12 9 public IconReference icon; 13 public boolean annotate;10 public Boolean annotate; 14 11 15 public IconPrototype (IconPrototype i, long maxScale, long minScale) {16 super( maxScale, minScale);12 public IconPrototype (IconPrototype i, Range range) { 13 super(range); 17 14 this.icon = i.icon; 18 15 this.annotate = i.annotate; … … 24 21 25 22 public void init() { 23 priority = 0; 24 range = new Range(); 26 25 icon = null; 27 priority = 0; 28 annotate = true; 29 } 30 31 public NodeElemStyle createStyle() { 32 if (icon == null) { 33 return SimpleNodeElemStyle.INSTANCE; 34 } else { 35 IconElemStyle i = new IconElemStyle(minScale, maxScale, MapPaintStyles.getIcon(icon)); 36 i.annotate = annotate; 37 return i; 38 } 26 annotate = null; 39 27 } 40 28 }
Note:
See TracChangeset
for help on using the changeset viewer.