svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.mapcontext / org.gvsig.fmap.mapcontext.api / src / main / java / org / gvsig / fmap / mapcontext / rendering / symbols / SymbolPreferences.java @ 40559
History | View | Annotate | Download (6.17 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2013 gvSIG Association.
|
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 3
|
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., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
* For any additional information, do not hesitate to contact us
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
23 |
*/
|
24 |
|
25 |
/* gvSIG. Geographic Information System of the Valencian Government
|
26 |
*
|
27 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
28 |
* of the Valencian Government (CIT)
|
29 |
*
|
30 |
* This program is free software; you can redistribute it and/or
|
31 |
* modify it under the terms of the GNU General Public License
|
32 |
* as published by the Free Software Foundation; either version 2
|
33 |
* of the License, or (at your option) any later version.
|
34 |
*
|
35 |
* This program is distributed in the hope that it will be useful,
|
36 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
37 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
38 |
* GNU General Public License for more details.
|
39 |
*
|
40 |
* You should have received a copy of the GNU General Public License
|
41 |
* along with this program; if not, write to the Free Software
|
42 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
43 |
* MA 02110-1301, USA.
|
44 |
*
|
45 |
*/
|
46 |
|
47 |
/*
|
48 |
* AUTHORS (In addition to CIT):
|
49 |
* 2009 {} {{Task}}
|
50 |
*/
|
51 |
package org.gvsig.fmap.mapcontext.rendering.symbols; |
52 |
|
53 |
import java.awt.Color; |
54 |
import java.awt.Font; |
55 |
|
56 |
/**
|
57 |
* Preferences for symbol configuration and default values.
|
58 |
*
|
59 |
* @author 2009- <a href="cordinyana@gvsig.org">C?sar Ordi?ana</a> - gvSIG team
|
60 |
*/
|
61 |
public interface SymbolPreferences { |
62 |
|
63 |
/**
|
64 |
* Returns the file extension to use for persisted symbols.
|
65 |
*
|
66 |
* @return the symbol file extension
|
67 |
*/
|
68 |
String getSymbolFileExtension();
|
69 |
|
70 |
/**
|
71 |
* Sets the file extension to use for persisted symbols.
|
72 |
*
|
73 |
* @param extension
|
74 |
* the file extension to use for persisted symbols
|
75 |
*/
|
76 |
void setSymbolFileExtension(String extension); |
77 |
|
78 |
/**
|
79 |
* Returns the default color to use for symbols.
|
80 |
*
|
81 |
* @return the symbol default color
|
82 |
*/
|
83 |
Color getDefaultSymbolColor();
|
84 |
|
85 |
/**
|
86 |
* Sets the default color to use for symbols.
|
87 |
*
|
88 |
* @param defaultSymbolColor
|
89 |
* the symbol default color
|
90 |
*/
|
91 |
void setDefaultSymbolColor(Color defaultSymbolColor); |
92 |
|
93 |
/**
|
94 |
* Sets the default color for symbols to the original value.
|
95 |
*/
|
96 |
void resetDefaultSymbolColor();
|
97 |
|
98 |
/**
|
99 |
* Returns the default fill color to use for symbols.
|
100 |
*
|
101 |
* @return the default fill color
|
102 |
*/
|
103 |
Color getDefaultSymbolFillColor();
|
104 |
|
105 |
/**
|
106 |
* Sets the default fill color to use for symbols.
|
107 |
*
|
108 |
* @param defaultSymbolFillColor
|
109 |
* the default fill color
|
110 |
*/
|
111 |
void setDefaultSymbolFillColor(Color defaultSymbolFillColor); |
112 |
|
113 |
/**
|
114 |
* Sets the default fill color for symbols to the original value.
|
115 |
*/
|
116 |
void resetDefaultSymbolFillColor();
|
117 |
|
118 |
/**
|
119 |
* Returns if the default symbol fill color has been generated in a aleatory
|
120 |
* way.
|
121 |
*
|
122 |
* @return if the default symbol fill color is aleatory
|
123 |
*/
|
124 |
boolean isDefaultSymbolFillColorAleatory();
|
125 |
|
126 |
/**
|
127 |
* Sets if the default symbol fill color has been generated in a aleatory
|
128 |
* way.
|
129 |
*
|
130 |
* @param defaultSymbolFillColorAleatory
|
131 |
* if the default symbol fill color is aleatory
|
132 |
*/
|
133 |
void setDefaultSymbolFillColorAleatory(
|
134 |
boolean defaultSymbolFillColorAleatory);
|
135 |
|
136 |
/**
|
137 |
* Sets if the default symbol fill color is aleatory to the default value.
|
138 |
*/
|
139 |
void resetDefaultSymbolFillColorAleatory();
|
140 |
|
141 |
/**
|
142 |
* Returns the default font to use for symbols.
|
143 |
*
|
144 |
* @return the default symbol font
|
145 |
*/
|
146 |
Font getDefaultSymbolFont();
|
147 |
|
148 |
/**
|
149 |
* Sets the default font to use for symbols.
|
150 |
*
|
151 |
* @param defaultSymbolFont
|
152 |
* the default symbol font
|
153 |
*/
|
154 |
void setDefaultSymbolFont(Font defaultSymbolFont); |
155 |
|
156 |
/**
|
157 |
* Sets the default font to use for symbols to the original value.
|
158 |
*/
|
159 |
void resetDefaultSymbolFont();
|
160 |
|
161 |
/**
|
162 |
* Returns the path to the symbol library, where the persisted symbols can
|
163 |
* be found.
|
164 |
*
|
165 |
* @return the path to the symbol library
|
166 |
*/
|
167 |
String getSymbolLibraryPath();
|
168 |
|
169 |
/**
|
170 |
* Sets the path to the symbol library, where the persisted symbols can be
|
171 |
* found.
|
172 |
*
|
173 |
* @param symbolLibraryPath
|
174 |
* the path to the symbol library
|
175 |
*/
|
176 |
void setSymbolLibraryPath(String symbolLibraryPath); |
177 |
|
178 |
/**
|
179 |
* Sets the path to the symbol library to the original value.
|
180 |
*/
|
181 |
void resetSymbolLibraryPath();
|
182 |
|
183 |
/**
|
184 |
* Returns the unit that will be used when creating new symbols with
|
185 |
* Cartographic support.
|
186 |
*
|
187 |
* @return the default cartographic support measure unit
|
188 |
* @see CartographicSupport#getUnit()
|
189 |
*/
|
190 |
int getDefaultCartographicSupportMeasureUnit();
|
191 |
|
192 |
/**
|
193 |
* Sets the unit that will be used when creating new symbols with
|
194 |
* Cartographic support.
|
195 |
*
|
196 |
* @param defaultCartographicSupportMeasureUnit
|
197 |
* the default cartographic support measure unit
|
198 |
* @see CartographicSupport#setUnit()
|
199 |
*/
|
200 |
void setDefaultCartographicSupportMeasureUnit(
|
201 |
int defaultCartographicSupportMeasureUnit);
|
202 |
|
203 |
/**
|
204 |
* Returns the reference system that will be used when creating new symbols
|
205 |
* with Cartographic support.
|
206 |
*
|
207 |
* @return the cartographic reference system
|
208 |
* @see CartographicSupport#PAPER
|
209 |
* @see CartographicSupport#WORLD
|
210 |
*/
|
211 |
int getDefaultCartographicSupportReferenceSystem();
|
212 |
|
213 |
/**
|
214 |
* Sets the reference system that will be used when creating new symbols
|
215 |
* with Cartographic support.
|
216 |
*
|
217 |
* @param defaultCartographicSupportReferenceSystem
|
218 |
* the cartographic reference system
|
219 |
* @see CartographicSupport#PAPER
|
220 |
* @see CartographicSupport#WORLD
|
221 |
*/
|
222 |
void setDefaultCartographicSupportReferenceSystem(
|
223 |
int defaultCartographicSupportReferenceSystem);
|
224 |
} |