Last change
on this file since 2147 was 1747, checked in by stoecker, 15 years ago |
close #2874 (NPE), improved external style handling
|
-
Property svn:eol-style
set to
native
|
File size:
928 bytes
|
Line | |
---|
1 | package org.openstreetmap.josm.gui.mappaint;
|
---|
2 | import java.awt.Color;
|
---|
3 |
|
---|
4 | public class AreaElemStyle extends ElemStyle
|
---|
5 | {
|
---|
6 | public Color color;
|
---|
7 | public boolean closed;
|
---|
8 | public LineElemStyle line = null;
|
---|
9 |
|
---|
10 | public AreaElemStyle (AreaElemStyle a, long maxScale, long minScale) {
|
---|
11 | this.color = a.color;
|
---|
12 | this.closed = a.closed;
|
---|
13 | this.priority = a.priority;
|
---|
14 | this.maxScale = maxScale;
|
---|
15 | this.minScale = minScale;
|
---|
16 | this.rules = a.rules;
|
---|
17 | }
|
---|
18 |
|
---|
19 | public AreaElemStyle(AreaElemStyle a, LineElemStyle l)
|
---|
20 | {
|
---|
21 | this.color = a.color;
|
---|
22 | this.closed = a.closed;
|
---|
23 | this.priority = a.priority;
|
---|
24 | this.maxScale = a.maxScale;
|
---|
25 | this.minScale = a.minScale;
|
---|
26 | this.rules = a.rules;
|
---|
27 | this.line = l;
|
---|
28 | this.code = a.code;
|
---|
29 | }
|
---|
30 |
|
---|
31 | public AreaElemStyle() { init(); }
|
---|
32 |
|
---|
33 | public void init()
|
---|
34 | {
|
---|
35 | color = null;
|
---|
36 | priority = 0;
|
---|
37 | }
|
---|
38 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.