Revision 20709
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/styling/SymbolSelector.java | ||
---|---|---|
58 | 58 |
import java.awt.event.MouseListener; |
59 | 59 |
import java.awt.event.MouseMotionListener; |
60 | 60 |
import java.io.File; |
61 |
import java.util.prefs.Preferences; |
|
62 | 61 |
|
63 | 62 |
import javax.swing.BorderFactory; |
64 | 63 |
import javax.swing.BoxLayout; |
... | ... | |
101 | 100 |
import com.iver.cit.gvsig.fmap.core.symbols.ITextSymbol; |
102 | 101 |
import com.iver.cit.gvsig.fmap.core.symbols.MultiLayerLineSymbol; |
103 | 102 |
import com.iver.cit.gvsig.fmap.core.symbols.MultiLayerMarkerSymbol; |
104 |
import com.iver.cit.gvsig.fmap.core.v02.FSymbol; |
|
105 | 103 |
import com.iver.cit.gvsig.gui.JComboBoxUnits; |
106 | 104 |
import com.iver.cit.gvsig.gui.panels.ColorChooserPanel; |
107 |
import com.iver.cit.gvsig.gui.preferencespage.SymbologyPage; |
|
108 | 105 |
import com.iver.cit.gvsig.project.documents.view.legend.gui.ISymbolSelector; |
109 | 106 |
|
110 | 107 |
/** |
... | ... | |
118 | 115 |
public class SymbolSelector extends JPanel implements ISymbolSelector, ActionListener { |
119 | 116 |
|
120 | 117 |
private static final long serialVersionUID = -6405660392303659551L; |
121 |
// JTree treeFamilies = null; |
|
122 | 118 |
private JPanel jPanel = null; |
123 | 119 |
protected JScrollPane jScrollPane = null; |
124 | 120 |
private JScrollPane jScrollPane1 = null; |
... | ... | |
241 | 237 |
* |
242 | 238 |
*/ |
243 | 239 |
protected void initialize(Object currentElement) throws ClassNotFoundException { |
244 |
library = new StyleLibrary(rootDir);
|
|
240 |
library = new SymbolLibrary(rootDir);
|
|
245 | 241 |
|
246 | 242 |
this.setLayout(new BorderLayout()); |
247 | 243 |
this.setSize(400, 221); |
... | ... | |
1025 | 1021 |
if (destFolder != null) { |
1026 | 1022 |
ISymbol sym = (ISymbol) selected; |
1027 | 1023 |
int move = InputEvent.SHIFT_DOWN_MASK | InputEvent.BUTTON1_DOWN_MASK; |
1028 |
// int copy = MouseEvent.CTRL_DOWN_MASK | MouseEvent.BUTTON1_DOWN_MASK; |
|
1029 | 1024 |
|
1030 | 1025 |
library.addElement(sym, sym.getDescription(), destFolder); |
1031 | 1026 |
if ((e.getModifiers() & (move)) !=0) { |
Also available in: Unified diff