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    /**
021     * Constructs a new {@code IconPrototype}.
022     */
023    public IconPrototype() {
024        init();
025    }
026
027    public final void init() {
028        priority = 0;
029        range = Range.ZERO_TO_INFINITY;
030        icon = null;
031        annotate = null;
032    }
033}