Ignore:
Timestamp:
2008-08-28T22:07:04+02:00 (16 years ago)
Author:
stoecker
Message:

added multi-style mappaint support. Closes #1186

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/AreaElemStyle.java

    r874 r885  
    44public class AreaElemStyle extends ElemStyle
    55{
    6         public Color colour;
     6        public Color color;
    77        public LineElemStyle line = null;
    88
    9         public AreaElemStyle (Color colour, long maxScale, long minScale) {
    10                 this.colour = colour;
     9        public AreaElemStyle (AreaElemStyle a, long maxScale, long minScale) {
     10                this.color = a.color;
     11                this.priority = a.priority;
    1112                this.maxScale = maxScale;
    1213                this.minScale = minScale;
     
    1516        public AreaElemStyle(AreaElemStyle a, LineElemStyle l)
    1617        {
    17                 this.colour = a.colour;
     18                this.color = a.color;
     19                this.priority = a.priority;
    1820                this.maxScale = a.maxScale;
    1921                this.minScale = a.minScale;
     
    2123        }
    2224
    23         @Override public String toString() {
    24                 return "AreaElemStyle:   colour=" + colour;
     25        public AreaElemStyle() { init(); }
     26
     27        public void init()
     28        {
     29                color = null;
     30                priority = 0;
    2531        }
    2632}
Note: See TracChangeset for help on using the changeset viewer.