Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libFMap_controls / src / org / gvsig / fmap / mapcontrol / PrimitivesDrawer.java @ 30349

History | View | Annotate | Download (2.38 KB)

1
/* gvSIG. Geographic Information System of the Valencian Government
2
*
3
* Copyright (C) 2007-2008 Infrastructures and Transports Department
4
* of the Valencian Government (CIT)
5
* 
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
10
* 
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
* GNU General Public License for more details.
15
* 
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
* MA  02110-1301, USA.
20
* 
21
*/
22

    
23
/*
24
* AUTHORS (In addition to CIT):
25
* 2009 {Iver T.I.}   {Task}
26
*/
27
 
28
package org.gvsig.fmap.mapcontrol;
29

    
30
import java.awt.Color;
31
import java.awt.Graphics;
32

    
33
/**
34
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
35
 */
36
public interface PrimitivesDrawer {
37
        
38
        /**
39
         * This method sets the <code>Graphics</code> where the 
40
         * <code>Drawer</code> has to draw all the objects. 
41
         * @param graphics
42
         * The component where the new objects has to be drawn. 
43
         */
44
        public void setGraphics(Graphics graphics);
45
        
46
        /**
47
         * Sets the color that is used to draw the objects that don't 
48
         * have a symbol.
49
         * @param color
50
         * The color to use on the drawing operations.
51
         */
52
        public void setColor(Color color);
53
                
54
        /**
55
         * It draws a rectangle on the map using the color 
56
         * specified using the {@link #setColor(Color)} method. 
57
         * @param x
58
         * The minimum X coordinate.
59
         * @param y
60
         * The minimum Y coordinate.
61
         * @param width
62
         * The rectangle width.
63
         * @param height
64
         * The rectangle height.
65
         */
66
        public void drawRect(int x, int y, int width, int height);
67
                
68
        /**
69
         * It fills a rectangle on the map using the color 
70
         * specified using the {@link #setColor(Color)} method. 
71
         * @param x
72
         * The minimum X coordinate.
73
         * @param y
74
         * The minimum Y coordinate.
75
         * @param width
76
         * The rectangle width.
77
         * @param height
78
         * The rectangle height.
79
         */
80
        public void fillRect(int x, int y, int width, int height);
81
        
82
        public void drawOval(int i, int j, int sizePixels, int sizePixels2);
83

    
84
        public void drawLine(int x1, int y1, int x3, int y12);
85
}