Statistics
| Revision:

svn-gvsig-desktop / tags / v1_1_Build_1011 / libraries / libFMap / src / com / iver / cit / gvsig / fmap / core / FNullGeometry.java @ 12904

History | View | Annotate | Download (5 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.v02.FLabel;
45
import com.iver.cit.gvsig.fmap.rendering.styling.FStyle2D;
46

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

    
49
import org.cresques.cts.ICoordTrans;
50

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

    
60

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

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

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

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

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

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

    
109
        /* (non-Javadoc)
110
         * @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)
111
         */
112
        public void draw(Graphics2D g, ViewPort vp, ISymbol symbol) {
113
        }
114

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

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

    
128

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

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

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

    
152
    /* (non-Javadoc)
153
     * @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)
154
     */
155
    public void drawInts(Graphics2D g, ViewPort vp, ISymbol symbol) {
156
        // TODO Auto-generated method stub
157

    
158
    }
159

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

    
168

    
169
        public void transform(AffineTransform at) {
170

    
171
        }
172

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

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

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

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

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

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

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

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