svn-gvsig-desktop / trunk / extensions / extGeoreferencing / src / org / gvsig / georeferencing / main / GeorefOptions.java @ 18530
History | View | Annotate | Download (2.6 KB)
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007 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 |
package org.gvsig.georeferencing.main; |
20 |
|
21 |
import java.awt.Color; |
22 |
|
23 |
/**
|
24 |
* Clase para el almacenamiento de opciones.
|
25 |
*
|
26 |
* 31/01/2008
|
27 |
* @author Nacho Brodin nachobrodin@gmail.com
|
28 |
*/
|
29 |
public class GeorefOptions { |
30 |
// Opciones
|
31 |
private int algorithm = Georeferencing.AFFINE; |
32 |
private int degree = Georeferencing.DEFAULT_DEGREE; |
33 |
private Color backgroundColor = Color.BLACK; |
34 |
private Color textColor = Color.RED; |
35 |
private boolean showNumber = true; |
36 |
private boolean addErrorsCSV = false; |
37 |
private boolean centerView = false; |
38 |
|
39 |
|
40 |
public int getDegree() { |
41 |
return degree;
|
42 |
} |
43 |
|
44 |
public void setDegree(int optiondegree) { |
45 |
degree = optiondegree; |
46 |
} |
47 |
|
48 |
public Color getTextColor() { |
49 |
return textColor;
|
50 |
} |
51 |
|
52 |
public void setTextColor(Color optionTextColor) { |
53 |
textColor = optionTextColor; |
54 |
} |
55 |
|
56 |
public int getAlgorithm() { |
57 |
return algorithm;
|
58 |
} |
59 |
|
60 |
public void setAlgorithm(int optionAlgorithm) { |
61 |
algorithm = optionAlgorithm; |
62 |
} |
63 |
|
64 |
public Color getBackgroundColor() { |
65 |
return backgroundColor;
|
66 |
} |
67 |
|
68 |
public void setBackgroundColor(Color optionBackgroundColor) { |
69 |
backgroundColor = optionBackgroundColor; |
70 |
} |
71 |
|
72 |
public boolean isAddErrorsCSV() { |
73 |
return addErrorsCSV;
|
74 |
} |
75 |
|
76 |
public void setAddErrorsCSV(boolean addErrorsCSV) { |
77 |
this.addErrorsCSV = addErrorsCSV;
|
78 |
} |
79 |
|
80 |
public boolean isCenterView() { |
81 |
return centerView;
|
82 |
} |
83 |
|
84 |
public void setCenterView(boolean centerView) { |
85 |
this.centerView = centerView;
|
86 |
} |
87 |
|
88 |
public boolean isShowNumber() { |
89 |
return showNumber;
|
90 |
} |
91 |
|
92 |
public void setShowNumber(boolean showNumber) { |
93 |
this.showNumber = showNumber;
|
94 |
} |
95 |
} |