Revision 25767 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/roi/ui/ROIsTablePanel.java
ROIsTablePanel.java | ||
---|---|---|
44 | 44 |
import java.awt.Color; |
45 | 45 |
import java.awt.Cursor; |
46 | 46 |
import java.awt.FlowLayout; |
47 |
import java.awt.Graphics2D; |
|
48 | 47 |
import java.awt.Image; |
49 | 48 |
import java.awt.Point; |
50 | 49 |
import java.awt.Toolkit; |
51 |
import java.awt.image.BufferedImage; |
|
52 | 50 |
import java.util.ArrayList; |
53 | 51 |
import java.util.HashMap; |
54 | 52 |
import java.util.Iterator; |
... | ... | |
80 | 78 |
import com.iver.andami.PluginServices; |
81 | 79 |
import com.iver.andami.ui.mdiManager.IWindow; |
82 | 80 |
import com.iver.cit.gvsig.fmap.MapControl; |
83 |
import com.iver.cit.gvsig.fmap.ViewPort; |
|
84 | 81 |
import com.iver.cit.gvsig.fmap.core.FShape; |
85 | 82 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
86 | 83 |
import com.iver.cit.gvsig.fmap.core.SymbologyFactory; |
... | ... | |
134 | 131 |
private MapControl mapControl = null; |
135 | 132 |
|
136 | 133 |
private BaseView view = null; |
134 |
|
|
135 |
private GraphicLayer graphicLayer = null; |
|
137 | 136 |
|
138 | 137 |
private LinkedHashMap rois = null; |
139 | 138 |
|
... | ... | |
258 | 257 |
if (view == null) |
259 | 258 |
return; |
260 | 259 |
mapControl = view.getMapControl(); |
260 |
graphicLayer = view.getMapControl().getMapContext().getGraphicsLayer(); |
|
261 | 261 |
|
262 | 262 |
/* |
263 | 263 |
* Guardar la herramienta actual para recuperarla m?s tarde, por ejemplo |
... | ... | |
474 | 474 |
return view; |
475 | 475 |
} |
476 | 476 |
|
477 |
/** |
|
478 |
* Dibuja en la vista las ROIs que aparecen en la tabla. |
|
479 |
* |
|
480 |
*/ |
|
481 |
public void drawROIs() { |
|
477 |
|
|
478 |
/* public void drawROIs() { |
|
482 | 479 |
Color geometryColor; |
483 | 480 |
|
484 | 481 |
BufferedImage img = getMapControl().getImage(); |
... | ... | |
506 | 503 |
e.printStackTrace(); |
507 | 504 |
} |
508 | 505 |
} |
509 |
|
|
506 |
*/ |
|
507 |
|
|
510 | 508 |
private HashMap getRoiGraphics() { |
511 | 509 |
if (roiGraphics == null) |
512 | 510 |
roiGraphics = new HashMap(); |
... | ... | |
588 | 586 |
public void sortTable(){ |
589 | 587 |
|
590 | 588 |
} |
589 |
|
|
590 |
public GraphicLayer getGraphicLayer() { |
|
591 |
return graphicLayer; |
|
592 |
} |
|
591 | 593 |
} |
Also available in: Unified diff