Statistics
| Revision:

root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / core / FNullGeometry.java @ 9641

History | View | Annotate | Download (5.05 KB)

1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *  Generalitat Valenciana
22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
24
 *   46010 VALENCIA
25
 *   SPAIN
26
 *
27
 *      +34 963862235
28
 *   gvsig@gva.es
29
 *      www.gvsig.gva.es
30
 *
31
 *    or
32
 *
33
 *   IVER T.I. S.A
34
 *   Salamanca 50
35
 *   46005 Valencia
36
 *   Spain
37
 *
38
 *   +34 963163400
39
 *   dac@iver.es
40
 */
41
package com.iver.cit.gvsig.fmap.core;
42

    
43
import com.iver.cit.gvsig.fmap.ViewPort;
44
import com.iver.cit.gvsig.fmap.core.symbols.ISymbol;
45
import com.iver.cit.gvsig.fmap.core.v02.FLabel;
46
import com.iver.cit.gvsig.fmap.rendering.styling.FStyle2D;
47

    
48
import com.vividsolutions.jts.geom.Geometry;
49

    
50
import org.cresques.cts.ICoordTrans;
51

    
52
import java.awt.Graphics2D;
53
import java.awt.Rectangle;
54
import java.awt.Shape;
55
import java.awt.geom.AffineTransform;
56
import java.awt.geom.PathIterator;
57
import java.awt.geom.Point2D;
58
import java.awt.geom.Rectangle2D;
59
import java.io.IOException;
60

    
61

    
62
/**
63
 * DOCUMENT ME!
64
 *
65
 * @author Vicente Caballero Navarro
66
 */
67
public class FNullGeometry implements IGeometry {
68
        /**
69
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#draw(java.awt.Graphics2D,
70
         *                 ViewPort, FStyle2D)
71
         */
72
        public void draw(Graphics2D g, ViewPort vp, FStyle2D symbol) {
73
        }
74

    
75
        /**
76
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#toJTSGeometry()
77
         */
78
        public Geometry toJTSGeometry() {
79
                return null;
80
        }
81

    
82
        /**
83
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#createLabels(int, boolean)
84
         */
85
        public FLabel[] createLabels(int position, boolean duplicates) {
86
                return null;
87
        }
88

    
89
        /* (non-Javadoc)
90
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#intersects(java.awt.geom.Rectangle2D)
91
         */
92
        public boolean intersects(Rectangle2D r) {
93
                return false;
94
        }
95

    
96
        /* (non-Javadoc)
97
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#getBounds2D()
98
         */
99
        public Rectangle2D getBounds2D() {
100
                return null;
101
        }
102

    
103
        /**
104
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#getGeometryType()
105
         */
106
        public int getGeometryType() {
107
                return FShape.NULL;
108
        }
109

    
110
        /* (non-Javadoc)
111
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#draw(java.awt.Graphics2D, com.iver.cit.gvsig.fmap.ViewPort, com.iver.cit.gvsig.fmap.core.v02.FSymbol)
112
         */
113
        public void draw(Graphics2D g, ViewPort vp, ISymbol symbol) {
114
        }
115

    
116
        /* (non-Javadoc)
117
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#cloneGeometry()
118
         */
119
        public IGeometry cloneGeometry() {
120
                return null;
121
        }
122

    
123
        /* (non-Javadoc)
124
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#reProject(org.cresques.cts.ICoordTrans)
125
         */
126
        public void reProject(ICoordTrans ct) {
127
        }
128

    
129

    
130
        /**
131
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#getPathIterator(AffineTransform)
132
         */
133
        public PathIterator getPathIterator(AffineTransform at) {
134
                //TODO falta implementar.
135
                return null;
136
        }
137

    
138
    /* (non-Javadoc)
139
     * @see com.iver.cit.gvsig.fmap.core.IGeometry#fastIntersects(double, double, double, double)
140
     */
141
    public boolean fastIntersects(double x, double y, double w, double h) {
142
        return false;
143
    }
144

    
145
    /**
146
     * @see com.iver.cit.gvsig.fmap.core.IGeometry#toWKB()
147
     */
148
    public byte[] toWKB() throws IOException {
149
        // TODO Auto-generated method stub
150
        return null;
151
    }
152

    
153
    /* (non-Javadoc)
154
     * @see com.iver.cit.gvsig.fmap.core.IGeometry#drawInts(java.awt.Graphics2D, com.iver.cit.gvsig.fmap.ViewPort, com.iver.cit.gvsig.fmap.core.v02.FSymbol)
155
     */
156
    public void drawInts(Graphics2D g, ViewPort vp, ISymbol symbol) {
157
        // TODO Auto-generated method stub
158

    
159
    }
160

    
161
        /* (non-Javadoc)
162
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#getHandlers(int)
163
         */
164
        public Handler[] getHandlers(int type) {
165
                // TODO Auto-generated method stub
166
                return null;
167
        }
168

    
169

    
170
        public void transform(AffineTransform at) {
171

    
172
        }
173

    
174
        public PathIterator getPathIterator(AffineTransform at, double flatness) {
175
                return null;
176
        }
177

    
178
        public boolean contains(double arg0, double arg1) {
179
                return false;
180
        }
181

    
182
        public boolean contains(double arg0, double arg1, double arg2, double arg3) {
183
                return false;
184
        }
185

    
186
        public boolean intersects(double arg0, double arg1, double arg2, double arg3) {
187
                return false;
188
        }
189

    
190
        public Rectangle getBounds() {
191
                return null;
192
        }
193

    
194
        public boolean contains(Point2D arg0) {
195
                return false;
196
        }
197

    
198
        public boolean contains(Rectangle2D arg0) {
199
                return false;
200
        }
201

    
202
        public Shape getInternalShape() {
203
                // TODO Auto-generated method stub
204
                return null;
205
        }
206
}