Revision 8340 trunk/extensions/extGraph_predes/src/com/iver/cit/gvsig/graph/ShortestPathExtension.java
ShortestPathExtension.java | ||
---|---|---|
53 | 53 |
import com.iver.cit.gvsig.fmap.core.FShape; |
54 | 54 |
import com.iver.cit.gvsig.fmap.core.IFeature; |
55 | 55 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
56 |
import com.iver.cit.gvsig.fmap.core.v02.FArrowSymbol; |
|
56 | 57 |
import com.iver.cit.gvsig.fmap.core.v02.FSymbol; |
57 | 58 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
58 | 59 |
import com.iver.cit.gvsig.fmap.layers.GraphicLayer; |
... | ... | |
92 | 93 |
// solver.setFielStreetName("STREET_NAM"); |
93 | 94 |
route = solver.calculateRoute(); |
94 | 95 |
|
95 |
// DlgDirections dlg = new DlgDirections((Frame) PluginServices.getMainFrame(), false); |
|
96 |
// dlg.setModel(route.getFeatureList()); |
|
96 |
|
|
97 | 97 |
createGraphicsFrom(route.getFeatureList(), v.getMapControl()); |
98 |
// dlg.setVisible(true); |
|
99 | 98 |
|
100 | 99 |
RouteReportPanel routeReport = new RouteReportPanel(route, v.getMapControl()); |
101 | 100 |
PluginServices.getMDIManager().addWindow(routeReport); |
... | ... | |
117 | 116 |
GraphicLayer graphicLayer = mapControl.getMapContext().getGraphicsLayer(); |
118 | 117 |
// if (idSymbolLine == -1) |
119 | 118 |
{ |
120 |
FSymbol lineSymbol = new FSymbol(FShape.LINE, Color.RED); |
|
121 |
lineSymbol.setStroke(new BasicStroke(3.0f)); |
|
122 |
idSymbolLine = graphicLayer.addSymbol(lineSymbol); |
|
119 |
FArrowSymbol arrowSymbol = new FArrowSymbol(Color.RED); |
|
120 |
arrowSymbol.setStroke(new BasicStroke(3.0f)); |
|
121 |
idSymbolLine = graphicLayer.addSymbol(arrowSymbol); |
|
122 |
|
|
123 | 123 |
} |
124 | 124 |
while (it.hasNext()) { |
125 | 125 |
IFeature feat = (IFeature) it.next(); |
Also available in: Unified diff