Statistics
| Revision:

root / trunk / libraries / libjni-gdal / src / es / gva / cit / jogr / OGRStyleTable.java @ 7765

History | View | Annotate | Download (3.31 KB)

1
/**********************************************************************
2
 * $Id: OGRStyleTable.java 7765 2006-10-03 07:05:18Z nacho $
3
 *
4
 * Name:     OGRStyleTable.java
5
 * Project:  JGDAL. Interface java to gdal (Frank Warmerdam).
6
 * Purpose:   
7
 * Author:   Nacho Brodin, brodin_ign@gva.es
8
 *
9
 **********************************************************************/
10
/*Copyright (C) 2004  Nacho Brodin <brodin_ign@gva.es>
11

12
 This program is free software; you can redistribute it and/or
13
 modify it under the terms of the GNU General Public License
14
 as published by the Free Software Foundation; either version 2
15
 of the License, or (at your option) any later version.
16

17
 This program is distributed in the hope that it will be useful,
18
 but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 GNU General Public License for more details.
21

22
 You should have received a copy of the GNU General Public License
23
 along with this program; if not, write to the Free Software
24
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25
 */
26

    
27
package es.gva.cit.jogr;
28

    
29

    
30
/** 
31
 * 
32
 * @author Nacho Brodin <brodin_ign@gva.es>.<BR> Equipo de desarrollo gvSIG.<BR> http://www.gvsig.gva.es
33
 * @version 0.0
34
 * @link http://www.gvsig.gva.es
35
 */
36

    
37
public class OGRStyleTable extends JNIBase{
38
        
39
        private native void FreeOGRStyleTable(long cPtr);
40
        private native boolean addStyleNat( long cPtr, String pszName,String pszStyleString);
41
        private native boolean removeStyleNat( long cPtr, String pszName);
42
        private native boolean modifyStyleNat( long cPtr, String pszName, String pszStyleString);
43
        private native boolean saveStyleTableNat( long cPtr, String pszFilename);
44
        private native boolean loadStyleTableNat( long cPtr, String pszFilename);
45
        private native String findNat( long cPtr, String pszStyleString);
46
        private native boolean isExistNat( long cPtr, String pszName);
47
        private native String getStyleNameNat( long cPtr, String pszName);
48
        private native void  printNat( long cPtr, String fpOut);
49
        private native void  clearNat( long cPtr );
50
        
51
        
52
        String[] m_papszStyleTable;  //Averiguar en que momento se carga
53
        
54
        /**
55
         * Constructor
56
         * @param cPtr        direcci?n de memoria al objeto OGRStyleTable de C. 
57
         */
58
        
59
        public OGRStyleTable(long cPtr){
60
                this.cPtr=cPtr;
61
        }
62
        
63
        /**
64
         * Destructor 
65
         */
66
        
67
        protected void finalize(){
68
                if(cPtr > 0)
69
                        FreeOGRStyleTable(cPtr);
70
        }
71
        
72

    
73
        /**
74
         * 
75
         */
76
        
77
        public boolean addStyle(String pszName,String pszStyleString)throws OGRException{
78
                return true;
79
        }
80

    
81
        /**
82
         * 
83
         */
84
        
85
        public boolean removeStyle(String pszName)throws OGRException{
86
                return true;
87
        }
88
        
89
        /**
90
         * 
91
         */
92
        
93
        public boolean modifyStyle(String pszName, String pszStyleString)throws OGRException{
94
                return true;
95
        }
96
        
97

    
98
        /**
99
         * 
100
         */
101
        
102
        public boolean saveStyleTable(String pszFilename)throws OGRException{
103
                return true;
104
        }
105

    
106
        /**
107
         * 
108
         */
109
        
110
        public boolean loadStyleTable(String pszFilename)throws OGRException{
111
                return true;        
112
        }
113

    
114
        /**
115
         * 
116
         */
117
        
118
        public String find(String pszStyleString)throws OGRException{
119
                return null;
120
        }
121

    
122
        /**
123
         * 
124
         */
125
        
126
        public boolean isExist(String pszName)throws OGRException{
127
                return true;
128
        }
129

    
130
        /**
131
         * 
132
         */
133
        
134
        public String getStyleName(String pszName)throws OGRException{
135
                return null;
136
        }
137

    
138
        /**
139
         * 
140
         */
141
        
142
        public void  print(String fpOut)throws OGRException{
143
                
144
        }
145

    
146
        /**
147
         * 
148
         */
149
        
150
        public void  clear()throws OGRException{
151
                
152
        }
153
        
154

    
155
}