public class ROIFeatureManager extends Object
Modifier and Type | Field and Description |
---|---|
protected static Logger |
logger |
Constructor and Description |
---|
ROIFeatureManager(String layerId) |
Modifier and Type | Method and Description |
---|---|
void |
addROIFeature(ROI roi,
FeatureReference feature) |
EditableFeature |
addROIFeature(ROI roi,
GraphicLayer graphicLayer,
Geometry geometry,
ISymbol symbol) |
void |
changeColor(GraphicLayer lyr,
String roiName,
Color color) |
void |
changeROIName(String oldName,
String newName,
GraphicLayer layer) |
boolean |
clear(GraphicLayer layer) |
void |
clearFeaturesFromGraphicLayer(GraphicLayer layer) |
List<FeatureReference> |
getROIFeatures(String roiName) |
String |
getROIId(String roiName) |
Map<String,List<FeatureReference>> |
getRoiNameToFeatureList()
|
boolean |
removeGraphics(GraphicLayer lyr,
String prefix) |
boolean |
removeROI(String roiName,
GraphicLayer layer) |
public ROIFeatureManager(String layerId)
public Map<String,List<FeatureReference>> getRoiNameToFeatureList()
FeatureReference
objects per ROI
.public EditableFeature addROIFeature(ROI roi, GraphicLayer graphicLayer, Geometry geometry, ISymbol symbol) throws DataException
DataException
public void addROIFeature(ROI roi, FeatureReference feature)
public boolean clear(GraphicLayer layer)
public void clearFeaturesFromGraphicLayer(GraphicLayer layer)
public boolean removeROI(String roiName, GraphicLayer layer)
public void changeColor(GraphicLayer lyr, String roiName, Color color)
public boolean removeGraphics(GraphicLayer lyr, String prefix)
public void changeROIName(String oldName, String newName, GraphicLayer layer) throws DataException
DataException
public List<FeatureReference> getROIFeatures(String roiName)