001// License: GPL. For details, see LICENSE file. 002package org.openstreetmap.josm.gui.mappaint.xml; 003 004import org.openstreetmap.josm.gui.mappaint.MapPaintStyles.IconReference; 005import org.openstreetmap.josm.gui.mappaint.Range; 006 007public class IconPrototype extends Prototype { 008 009 public IconReference icon; 010 public Boolean annotate; 011 012 public IconPrototype (IconPrototype i, Range range) { 013 super(range); 014 this.icon = i.icon; 015 this.annotate = i.annotate; 016 this.priority = i.priority; 017 this.conditions = i.conditions; 018 } 019 020 public IconPrototype() { init(); } 021 022 public final void init() { 023 priority = 0; 024 range = Range.ZERO_TO_INFINITY; 025 icon = null; 026 annotate = null; 027 } 028}