Revision 8729 trunk/extensions/extGraph_predes/src/com/iver/cit/gvsig/SymbolTest.java
SymbolTest.java | ||
---|---|---|
40 | 40 |
*/ |
41 | 41 |
package com.iver.cit.gvsig; |
42 | 42 |
|
43 |
import java.awt.BasicStroke; |
|
44 |
import java.awt.Color; |
|
45 |
import java.awt.geom.Rectangle2D; |
|
46 |
|
|
47 | 43 |
import com.iver.andami.PluginServices; |
48 | 44 |
import com.iver.andami.plugins.Extension; |
45 |
import com.iver.andami.preferences.IPreference; |
|
46 |
import com.iver.andami.preferences.IPreferenceExtension; |
|
49 | 47 |
import com.iver.andami.ui.mdiManager.IWindow; |
50 | 48 |
import com.iver.cit.gvsig.fmap.DriverException; |
51 | 49 |
import com.iver.cit.gvsig.fmap.MapContext; |
... | ... | |
53 | 51 |
import com.iver.cit.gvsig.fmap.core.FShape; |
54 | 52 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
55 | 53 |
import com.iver.cit.gvsig.fmap.core.ISymbol; |
56 |
import com.iver.cit.gvsig.fmap.core.symbols.DotDensityFillSymbol; |
|
57 |
import com.iver.cit.gvsig.fmap.core.v02.FConstant; |
|
58 |
import com.iver.cit.gvsig.fmap.core.v02.FSymbol; |
|
59 | 54 |
import com.iver.cit.gvsig.fmap.drivers.DriverIOException; |
60 | 55 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
61 | 56 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
62 | 57 |
import com.iver.cit.gvsig.fmap.layers.GraphicLayer; |
63 | 58 |
import com.iver.cit.gvsig.fmap.layers.SelectableDataSource; |
64 | 59 |
import com.iver.cit.gvsig.fmap.rendering.FGraphic; |
60 |
import com.iver.cit.gvsig.graph.preferences.RoutePage; |
|
65 | 61 |
import com.iver.cit.gvsig.gvsig.gui.styling.SymbolSelector; |
66 | 62 |
import com.iver.cit.gvsig.project.documents.view.gui.View; |
67 | 63 |
|
68 |
public class SymbolTest extends Extension { |
|
64 |
public class SymbolTest extends Extension implements IPreferenceExtension{ |
|
65 |
private static final IPreference thePreferencePage = new RoutePage(); |
|
69 | 66 |
|
70 | 67 |
public void initialize() { |
71 | 68 |
// TODO Auto-generated method stub |
... | ... | |
85 | 82 |
if (actionCommand.equals("DALE!")) { |
86 | 83 |
FLayer lyr = null; |
87 | 84 |
|
88 |
// SymbolSelector symSel = new SymbolSelector(null, FShape.POLYGON);
|
|
89 |
// PluginServices.getMDIManager().addWindow(symSel);
|
|
90 |
// ISymbol sym = symSel.getSymbol();
|
|
91 |
DotDensityFillSymbol sym = new DotDensityFillSymbol(); |
|
92 |
sym.setDotColor(Color.RED); |
|
93 |
sym.setDotCount(20); |
|
94 |
sym.setDotSize(2); |
|
85 |
SymbolSelector symSel = new SymbolSelector(null, FShape.POLYGON); |
|
86 |
PluginServices.getMDIManager().addWindow(symSel); |
|
87 |
ISymbol sym = symSel.getSymbol(); |
|
88 |
// DotDensityFillSymbol sym = new DotDensityFillSymbol();
|
|
89 |
// sym.setDotColor(Color.RED);
|
|
90 |
// sym.setDotCount(20);
|
|
91 |
// sym.setDotSize(2);
|
|
95 | 92 |
|
96 | 93 |
FLayer[] actives = mc.getLayers().getActives(); |
97 | 94 |
for (int i = 0; i < actives.length; i++) { |
... | ... | |
150 | 147 |
return false; |
151 | 148 |
} |
152 | 149 |
|
150 |
public IPreference getPreferencesPage() { |
|
151 |
return thePreferencePage; |
|
152 |
} |
|
153 |
|
|
153 | 154 |
} |
Also available in: Unified diff