Revision 10437 branches/simbologia/applications/appgvSIG/src/com/iver/cit/gvsig/gui/styling/SimpleLine.java
SimpleLine.java | ||
---|---|---|
43 | 43 |
* |
44 | 44 |
* $Id$ |
45 | 45 |
* $Log$ |
46 |
* Revision 1.1.2.5 2007-02-12 15:14:41 jaume |
|
46 |
* Revision 1.1.2.6 2007-02-21 07:35:14 jaume |
|
47 |
* *** empty log message *** |
|
48 |
* |
|
49 |
* Revision 1.1.2.5 2007/02/12 15:14:41 jaume |
|
47 | 50 |
* refactored interval legend and added graduated symbol legend |
48 | 51 |
* |
49 | 52 |
* Revision 1.1.2.4 2007/02/09 11:05:16 jaume |
... | ... | |
77 | 80 |
import java.util.ArrayList; |
78 | 81 |
|
79 | 82 |
import javax.swing.DefaultListCellRenderer; |
80 |
import javax.swing.JLabel; |
|
81 | 83 |
import javax.swing.JList; |
82 | 84 |
import javax.swing.JPanel; |
83 | 85 |
|
... | ... | |
85 | 87 |
|
86 | 88 |
import com.iver.andami.PluginServices; |
87 | 89 |
import com.iver.andami.messages.NotificationManager; |
88 |
import com.iver.cit.gvsig.fmap.core.ISymbol; |
|
90 |
import com.iver.cit.gvsig.fmap.core.IStyle; |
|
91 |
import com.iver.cit.gvsig.fmap.core.SymbologyFactory; |
|
89 | 92 |
import com.iver.cit.gvsig.fmap.core.styles.ILineStyle; |
90 | 93 |
import com.iver.cit.gvsig.fmap.core.styles.SimpleLineStyle; |
94 |
import com.iver.cit.gvsig.fmap.core.symbols.ISymbol; |
|
91 | 95 |
import com.iver.cit.gvsig.fmap.core.symbols.SimpleLineSymbol; |
92 | 96 |
import com.iver.cit.gvsig.gui.panels.ColorChooserPanel; |
93 | 97 |
import com.iver.utiles.swing.JComboBox; |
... | ... | |
214 | 218 |
SimpleLineSymbol s = new SimpleLineSymbol(); |
215 | 219 |
s.setColor(jccColor.getColor()); |
216 | 220 |
s.setIsShapeVisible(true); |
217 |
s.setLineStyle((SimpleLineStyle) cmbLineStyles.getSelectedItem()); |
|
221 |
// clone the selected style in the combo box |
|
222 |
ILineStyle sty = (ILineStyle) SymbologyFactory.createStyleFromXML( |
|
223 |
((IStyle) cmbLineStyles.getSelectedItem()).getXMLEntity(), null); |
|
224 |
sty.setLineWidth(txtWidth.getValue().floatValue()); |
|
225 |
s.setLineStyle(sty); |
|
218 | 226 |
return s; |
219 | 227 |
} |
220 | 228 |
|
Also available in: Unified diff