Last change
on this file since 3843 was 3843, checked in by bastiK, 13 years ago |
first version of mapstyle dialog; still hidden because its unfinished (set mappaintdialog.show=true in advanced pref to show it). switching styles on/off and reload from file is supported at the moment.
|
-
Property svn:eol-style
set to
native
|
File size:
796 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.mappaint;
|
---|
3 |
|
---|
4 | import java.io.File;
|
---|
5 |
|
---|
6 | import org.openstreetmap.josm.data.osm.OsmPrimitive;
|
---|
7 | import org.openstreetmap.josm.gui.preferences.SourceEntry;
|
---|
8 |
|
---|
9 | abstract public class StyleSource extends SourceEntry {
|
---|
10 | public boolean hasError = false;
|
---|
11 | public File zipIcons;
|
---|
12 |
|
---|
13 | public StyleSource(String url, String name, String shortdescription) {
|
---|
14 | super(url, name, shortdescription, true);
|
---|
15 | }
|
---|
16 |
|
---|
17 | public StyleSource(SourceEntry entry) {
|
---|
18 | super(entry.url, entry.name, entry.shortdescription, entry.active);
|
---|
19 | }
|
---|
20 |
|
---|
21 | abstract public void apply(MultiCascade mc, OsmPrimitive osm, double scale, OsmPrimitive multipolyOuterWay, boolean pretendWayIsClosed);
|
---|
22 |
|
---|
23 | abstract public void loadStyleSource();
|
---|
24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.