001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.gui.mappaint.xml;
003
004import java.awt.Color;
005
006import org.openstreetmap.josm.gui.mappaint.Range;
007
008public class AreaPrototype extends Prototype {
009    public Color color;
010    public boolean closed; // if true, it does not apply to unclosed ways
011
012    public AreaPrototype(AreaPrototype a, Range range) {
013        super(range);
014        this.color = a.color;
015        this.closed = a.closed;
016        this.priority = a.priority;
017        this.conditions = a.conditions;
018    }
019
020    public AreaPrototype() {
021        init();
022    }
023
024    public final void init() {
025        priority = 0;
026        range = Range.ZERO_TO_INFINITY;
027        closed = false;
028        color = null;
029    }
030}