1
2
3
4
5
6 package nl.javel.gisbeans.map;
7
8 import java.awt.Color;
9 import java.util.List;
10
11 import nl.javel.gisbeans.io.DataSourceInterface;
12
13 /***
14 * This interface defines the layer of the map
15 *
16 * @author <a href="mailto:paul.jacobs@javel.nl">Paul Jacobs </a>
17 * @since JDK 1.0
18 * @version 1.0
19 */
20 public interface LayerInterface extends java.io.Serializable
21 {
22 /***
23 * sets the symbols for this layer
24 *
25 * @param symbols the symbols
26 */
27 public void setSymbols(List symbols);
28
29 /***
30 * returns the symbols used in this layer
31 *
32 * @return List the symbol list
33 */
34 public List getSymbols();
35
36 /***
37 * Getter for property attributes
38 *
39 * @return List the value of property attributes.
40 */
41 public List getAttributes();
42
43 /***
44 * Getter for property attribute
45 *
46 * @param index
47 * @return AttributeInterface.
48 */
49 public AttributeInterface getAttribute(int index);
50
51 /***
52 * Returns the color of the layer.
53 *
54 * @return Color.
55 */
56 public Color getColor();
57
58
59 /***
60 * sets the color of the layer
61 *
62 * @param color the rgb-color
63 */
64 public void setColor(Color color);
65
66
67 /***
68 * gets the outline color
69 *
70 * @return Color the rgb-color
71 */
72 public Color getOutlineColor();
73
74 /***
75 * sets the outlineColor of the layer
76 *
77 * @param outlineColor the rgb-color
78 */
79 public void setOutlineColor(Color outlineColor);
80
81 /***
82 * Getter for property name.
83 *
84 * @return String of property name.
85 */
86 public String getName();
87
88 /***
89 * Setter for property name.
90 *
91 * @param name New value of property name.
92 */
93 public void setName(String name);
94
95 /***
96 * Getter for property dataSource.
97 *
98 * @return DataSourceInterface the value of property dataSource.
99 */
100 public DataSourceInterface getDataSource();
101
102 /***
103 * Setter for property attributes
104 *
105 * @param attributes
106 */
107 public void setAttributes(List attributes);
108
109 /***
110 * Setter for property dataSource.
111 *
112 * @param dataSource New value of property dataSource.
113 */
114 public void setDataSource(DataSourceInterface dataSource);
115
116 /***
117 * Getter for property minscale.
118 *
119 * @return int the value of property minscale.
120 */
121 public int getMinScale();
122
123 /***
124 * Setter for property minscale.
125 *
126 * @param minscale New value of property minscale.
127 */
128 public void setMinScale(int minscale);
129
130 /***
131 * Getter for property maxScale.
132 *
133 * @return int the value of property maxScale.
134 */
135 public int getMaxScale();
136
137 /***
138 * Setter for property maxScale.
139 *
140 * @param maxScale New value of property maxScale.
141 */
142 public void setMaxScale(int maxScale);
143
144 /***
145 * Getter for property status
146 *
147 * @return bollean the value of property status
148 */
149 public boolean isStatus();
150
151 /***
152 * Setter for property status.
153 *
154 * @param status New value of property status.
155 */
156 public void setStatus(boolean status);
157
158 /***
159 * Getter for property transform.
160 *
161 * @return boolean the value of property transform.
162 */
163 public boolean isTransform();
164
165 /***
166 * Setter for property transform.
167 *
168 * @param transform New value of property transform.
169 */
170 public void setTransform(boolean transform);
171 }