source: josm/trunk/src/org/openstreetmap/josm/gui/mappaint/xml/AreaPrototype.java@ 8256

Last change on this file since 8256 was 6890, checked in by Don-vip, 10 years ago

fix some Sonar issues (Constructor Calls Overridable Method)

  • Property svn:eol-style set to native
File size: 731 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.mappaint.xml;
3
4import java.awt.Color;
5
6import org.openstreetmap.josm.gui.mappaint.Range;
7
8public class AreaPrototype extends Prototype {
9 public Color color;
10 public boolean closed; // if true, it does not apply to unclosed ways
11
12 public AreaPrototype (AreaPrototype a, Range range) {
13 super(range);
14 this.color = a.color;
15 this.closed = a.closed;
16 this.priority = a.priority;
17 this.conditions = a.conditions;
18 }
19
20 public AreaPrototype() { init(); }
21
22 public final void init() {
23 priority = 0;
24 range = Range.ZERO_TO_INFINITY;
25 closed = false;
26 color = null;
27 }
28}
Note: See TracBrowser for help on using the repository browser.