PageRenderTime 30ms CodeModel.GetById 15ms app.highlight 10ms RepoModel.GetById 1ms app.codeStats 0ms

/src/worldwind/kml/model/KMLStyle.java

http://wwj-kml.googlecode.com/
Java | 54 lines | 33 code | 14 blank | 7 comment | 0 complexity | 1f6ce3f1021d9c6b19bfe537ef7ec1d3 MD5 | raw file
 1package worldwind.kml.model;
 2
 3import java.util.Map;
 4import java.util.HashMap;
 5
 6/**
 7 * Created by IntelliJ IDEA.
 8 * User: tgleason
 9 * Date: Sep 3, 2008
10 * Time: 9:30:47 PM
11 * To change this template use File | Settings | File Templates.
12 */
13public class KMLStyle {
14    Map <String, Object> iconStyle = new HashMap<String, Object>();
15    Map <String, Object> lineStyle = new HashMap<String, Object>();
16    Map <String, Object> polyStyle = new HashMap<String, Object>();
17    Map <String, Object> bubbleStyle = new HashMap<String, Object>();
18
19    public void setIconStyle (String name, Object val) {
20        iconStyle.put(name, val);
21    }
22
23    public Object getIconStyle (String name) {
24        return iconStyle.get(name);
25    }
26
27    public void setLineStyle (String name, Object val) {
28        lineStyle.put(name, val);
29    }
30
31    public Object getLineStyle (String name) {
32        return lineStyle.get(name);
33    }
34
35    public void setPolyStyle (String name, Object val) {
36        polyStyle.put(name, val);
37    }
38
39    public Object getPolyStyle (String name) {
40        return polyStyle.get(name);
41    }
42
43    public void setBubbleStyle (String name, Object val) {
44        bubbleStyle.put(name, val);
45    }
46
47    public Object getBubbleStyle (String name) {
48        return bubbleStyle.get(name);
49    }
50
51
52
53
54}