Revision 4256 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/v02/FSymbol.java
FSymbol.java | ||
---|---|---|
193 | 193 |
public static FSymbol getSymbolForSelection(FSymbol sym) { |
194 | 194 |
FSymbol selecSymbol = sym.fastCloneSymbol(); |
195 | 195 |
selecSymbol.setColor(getSelectionColor()); |
196 |
selecSymbol.setFontColor(getSelectionColor()); |
|
196 |
|
|
197 | 197 |
selecSymbol.setFill(null); |
198 | 198 |
// 050215, jmorell: Si en los drivers cambiamos el estilo, aqu? tenemos que |
199 | 199 |
// actualizar los cambios. SYMBOL_STYLE_MARKER_SQUARE --> SYMBOL_STYLE_DGNSPECIAL. |
200 | 200 |
if ((selecSymbol.getStyle() == FConstant.SYMBOL_STYLE_FILL_TRANSPARENT) |
201 | 201 |
|| (selecSymbol.getStyle() == FConstant.SYMBOL_STYLE_DGNSPECIAL)) |
202 | 202 |
selecSymbol.setStyle(FConstant.SYMBOL_STYLE_FILL_SOLID); |
203 |
|
|
204 |
|
|
205 |
else if (selecSymbol.getStyle() == FConstant.SYMBOL_STYLE_TEXT_BOLD || |
|
206 |
selecSymbol.getStyle() == FConstant.SYMBOL_STYLE_TEXT_BOLDCURSIVE || |
|
207 |
selecSymbol.getStyle() == FConstant.SYMBOL_STYLE_TEXT_CURSIVE || |
|
208 |
selecSymbol.getStyle() == FConstant.SYMBOL_STYLE_TEXT_NORMAL){ |
|
209 |
selecSymbol.setFontColor(getSelectionColor()); |
|
210 |
} |
|
203 | 211 |
selecSymbol.rgb = getSelectionColor().getRGB(); |
204 | 212 |
|
205 | 213 |
return selecSymbol; |
... | ... | |
309 | 317 |
setStyle(FConstant.SYMBOL_STYLE_FILL_SOLID); |
310 | 318 |
|
311 | 319 |
break; |
320 |
case FConstant.SYMBOL_TYPE_TEXT: |
|
321 |
setStroke(new BasicStroke()); |
|
322 |
setStyle(FConstant.SYMBOL_STYLE_TEXT_NORMAL); |
|
323 |
setFont(new Font("Dialog",Font.PLAIN,12)); |
|
324 |
break; |
|
312 | 325 |
} |
313 | 326 |
|
314 | 327 |
m_outlineColor = c.darker(); |
Also available in: Unified diff