1
2
3
4
5
6 package nl.javel.gisbeans.map;
7
8 import java.awt.Color;
9 import java.awt.Font;
10 import java.io.Serializable;
11
12 /***
13 * This class defines the attribute interface
14 *
15 * @author <a href="mailto:paul.jacobs@javel.nl">Paul Jacobs </a>
16 * @since JDK 1.0
17 * @version 1.0
18 */
19 public interface AttributeInterface extends Serializable
20 {
21 /***
22 * returns the angle of the attribute
23 *
24 * @param shapeIndex the shapeIndex
25 * @return the angle
26 */
27 public double getAngle(int shapeIndex);
28
29 /***
30 * @return
31 */
32 public Font getFont();
33
34 /***
35 * @return
36 */
37 public Color getFontColor();
38
39 /***
40 * @return
41 */
42 public int getPosition();
43
44 /***
45 * @param shapeIndex the shapeIndex
46 * @return the value of the attribute
47 */
48 public String getValue(int shapeIndex);
49
50 /***
51 * @param font
52 */
53 public void setFont(Font font);
54
55 /***
56 * @param fontColor
57 */
58 public void setFontColor(Color fontColor);
59
60 /***
61 * @param position
62 */
63 public void setPosition(int position);
64
65 /***
66 * returns the layer
67 *
68 * @return the layer of this attribute
69 */
70 public LayerInterface getLayer();
71
72 /***
73 * @return the maxScale
74 */
75 public double getMaxScale();
76
77 /***
78 * @return the minScale
79 */
80 public double getMinScale();
81
82 /***
83 * sets the minScale of the attribute
84 *
85 * @param minScale
86 */
87 public void setMinScale(double minScale);
88
89 /***
90 * sets the maxScale of the attribute
91 *
92 * @param maxScale
93 */
94 public void setMaxScale(double maxScale);
95 }