Statistics
| Revision:

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

History | View | Annotate | Download (4.04 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.core.v02.FSymbol;
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.geom.Rectangle2D;
54
import java.io.IOException;
55

    
56

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

    
70
        /**
71
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#toJTSGeometry()
72
         */
73
        public Geometry toJTSGeometry() {
74
                return null;
75
        }
76

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

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

    
91
        /* (non-Javadoc)
92
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#getBounds2D()
93
         */
94
        public Rectangle2D getBounds2D() {
95
                return null;
96
        }
97

    
98
        /**
99
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#getGeometryType()
100
         */
101
        public int getGeometryType() {
102
                return FShape.NULL;
103
        }
104

    
105
        /* (non-Javadoc)
106
         * @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)
107
         */
108
        public void draw(Graphics2D g, ViewPort vp, FSymbol symbol) {
109
        }
110

    
111
        /* (non-Javadoc)
112
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#cloneGeometry()
113
         */
114
        public IGeometry cloneGeometry() {
115
                return null;
116
        }
117

    
118
        /* (non-Javadoc)
119
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#reProject(org.cresques.cts.ICoordTrans)
120
         */
121
        public void reProject(ICoordTrans ct) {
122
        }
123

    
124
        
125
        /**
126
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#getGeneralPathXIterator()
127
         */
128
        public GeneralPathXIterator getGeneralPathXIterator() {
129
                //TODO falta implementar.
130
                return null;
131
        }
132

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

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

    
148
    /* (non-Javadoc)
149
     * @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)
150
     */
151
    public void drawInts(Graphics2D g, ViewPort vp, FSymbol symbol) {
152
        // TODO Auto-generated method stub
153
        
154
    }
155
}