Statistics
| Revision:

svn-gvsig-desktop / branches / CqCMSDvp / libraries / libCq CMS for java.old / src / org / cresques / io / WriterSupportOptions.java @ 2312

History | View | Annotate | Download (2.41 KB)

1
/*
2
 * Cresques Mapping Suite. Graphic Library for constructing mapping applications.
3
 * 
4
 * Copyright (C) 2004-5. 
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., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
19
 *
20
 * For more information, contact:
21
 * 
22
 * cresques@gmail.com
23
 */
24
package org.cresques.io;
25

    
26
/**
27
* Opciones soportadas por los drivers de escritura
28
* @author Nacho Brodin (brodin_ign@gva.es)
29
*/
30
public class WriterSupportOptions{
31

    
32
        private String                         extension = null;
33
        private String[]                blockSizeList = {"1","8","16","32","64","128","256","512"};
34
        
35
        private boolean                 georef = true;
36
        private int                         blockSizeDefault = 1;
37
        
38
        /**
39
         * Constructor
40
         * @param extension        Extensi?n del driver 
41
         */
42
        public WriterSupportOptions(String extension){
43
                this.extension = extension;
44
        }
45
        
46
        /**
47
         * Asigna el tama?o de bloque que se lee de una vez en la imagen origen
48
         * @param blockSize        Tama?o de bloque
49
         */
50
        public void setBlockSize(int blockSize){
51
                this.blockSizeDefault = blockSize;
52
        }
53
        
54
        /**
55
         * Se asigna true o false si se desea o no que el fichero de salida tenga georeferenciaci?n.
56
         * @param geor true salva con georeferenciaci?n 
57
         */
58
        public void setWriteGeoref(boolean geor){
59
                this.georef = geor;
60
        }
61
        
62
        /**
63
         * Obtiene el valor del flag que dice si se desea o no salvar con georeferenciaci?n
64
         * @return        true si se desea salvar con georeferenciaci?n
65
         */
66
        public boolean getGeoref(){return georef;}
67
        
68
        /**
69
         * Obtiene el tama?o de bloque seleccionado
70
         * @return        Tama?o de bloque
71
         */
72
        public int getBlockSize(){return blockSizeDefault;}
73
        
74
        /**
75
         * Obtiene la extensi?n del driver
76
         * @return        Extensi?n del driver
77
         */
78
        public String getExtension(){return extension;}
79
        
80
        /**
81
         * Obtiene la lista de tama?os de bloque posible
82
         * @return        Lista de tama?os de bloque
83
         */
84
        public String[] getBlockSizeList(){return blockSizeList;}
85
                
86
}