1
2
3
4
5
6 package nl.javel.gisbeans.map;
7
8 import java.awt.Color;
9 import java.awt.Dimension;
10
11 /***
12 * This class defines the image as defined in the map
13 *
14 * @author <a href="mailto:paul.jacobs@javel.nl">Paul Jacobs </a>
15 * @since JDK 1.0
16 * @version 1.0
17 */
18 public class Image implements ImageInterface
19 {
20
21 private java.awt.Color backgroundColor = new java.awt.Color(255, 255, 255,
22 255);
23
24 private LegendInterface legend;
25
26 private ScalebarInterface scalebar;
27
28 private java.awt.Dimension size = new java.awt.Dimension(500, 500);
29
30 /***
31 * constructs a new Image
32 */
33 public Image()
34 {
35 super();
36 }
37
38 /***
39 * @see nl.javel.gisbeans.map.ImageInterface#getBackgroundColor()
40 */
41 public java.awt.Color getBackgroundColor()
42 {
43 return this.backgroundColor;
44 }
45
46 /***
47 * @see nl.javel.gisbeans.map.ImageInterface#getLegend()
48 */
49 public LegendInterface getLegend()
50 {
51 return this.legend;
52 }
53
54 /***
55 * @see nl.javel.gisbeans.map.ImageInterface#getScalebar()
56 */
57 public ScalebarInterface getScalebar()
58 {
59 return this.scalebar;
60 }
61
62 /***
63 * @see nl.javel.gisbeans.map.ImageInterface#getSize()
64 */
65 public Dimension getSize()
66 {
67 return this.size;
68 }
69
70 /***
71 * @see nl.javel.gisbeans.map.ImageInterface#setBackgroundColor(java.awt.Color)
72 */
73 public void setBackgroundColor(Color backgroundColor)
74 {
75 this.backgroundColor = backgroundColor;
76 }
77
78 /***
79 * @see nl.javel.gisbeans.map.ImageInterface#setLegend(nl.javel.gisbeans.map.LegendInterface)
80 */
81 public void setLegend(LegendInterface legend)
82 {
83 this.legend = legend;
84 }
85
86 /***
87 * @see nl.javel.gisbeans.map.ImageInterface#setScalebar(nl.javel.gisbeans.map.ScalebarInterface)
88 */
89 public void setScalebar(ScalebarInterface scalebar)
90 {
91 this.scalebar = scalebar;
92 }
93
94 /***
95 * @see nl.javel.gisbeans.map.ImageInterface#setSize(java.awt.Dimension)
96 */
97 public void setSize(Dimension size)
98 {
99 this.size = size;
100 }
101 }