001    // License: GPL. For details, see LICENSE file.
002    package org.openstreetmap.josm.gui.mappaint.xml;
003    
004    import java.awt.Color;
005    
006    import org.openstreetmap.josm.gui.mappaint.Range;
007    
008    public 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() { init(); }
021    
022        public void init()
023        {
024            priority = 0;
025            range = new Range();
026            closed = false;
027            color = null;
028        }
029    }