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

Last change on this file since 6561 was 6561, checked in by simon04, 10 years ago

see #9485 - MapCSS: add support for set .class_name instruction (with optional . before class), define Range.ZERO_TO_INFINITY

  • Property svn:eol-style set to native
File size: 729 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 void init()
23 {
24 priority = 0;
25 range = Range.ZERO_TO_INFINITY;
26 closed = false;
27 color = null;
28 }
29}
Note: See TracBrowser for help on using the repository browser.