public class SelectionTools extends ToolToMakeYourLifeEasier
Modifier and Type | Field and Description |
---|---|
protected PlugInContext |
context |
Constructor and Description |
---|
SelectionTools(PlugInContext context) |
Modifier and Type | Method and Description |
---|---|
java.util.List |
getFeaturesInFence() |
static Feature[] |
getFeaturesInFenceInLayer(Feature[] featArray,
com.vividsolutions.jts.geom.Geometry fenceGeometry)
Get a list of features (a sub list of the given array) that are included by the given fence geometry.
|
static Feature[] |
getFeaturesInFenceInLayer(Layer layer,
com.vividsolutions.jts.geom.Geometry fenceGeometry)
Get a list of those features from the given layer that are included by the given fence geometry.
|
static java.util.List |
getFeaturesInFenceInLayerAsList(Layer layer,
com.vividsolutions.jts.geom.Geometry fenceGeometry)
Get a list of those features from the given layer that are included by the given fence geometry.
|
java.util.List |
getFeaturesInGeometry(com.vividsolutions.jts.geom.Geometry fenceGeometry) |
static Feature[] |
getFeaturesOnTheSameSpot(Feature[] featArray,
com.vividsolutions.jts.geom.Geometry fenceGeometry,
boolean bothWays)
Get a list of features (a sub list of the given array) that are included by the given fence geometry.
|
static Feature[] |
getFeaturesOnTheSameSpot(Layer layer,
com.vividsolutions.jts.geom.Geometry fenceGeometry,
boolean bothWays)
Get a list of those features from the given layer that are included by the given fence geometry.
|
com.vividsolutions.jts.geom.Geometry |
getFenceGeometry() |
static com.vividsolutions.jts.geom.Geometry |
getFenceGeometry(PlugInContext context) |
java.util.List<Feature> |
getSelectedFeatures() |
static java.util.List<Feature> |
getSelectedFeatures(PlugInContext context) |
static java.util.List<Feature> |
getSelectedFeaturesFromLayer(PlugInContext context,
Layer layer) |
void |
selectFeatures(java.util.List features)
create a selection out of the given features that is visible in the Jump map
|
static void |
selectFeatures(java.util.List features,
PlugInContext context) |
static void |
selectLayer(PlugInContext context,
Layer layer) |
protected PlugInContext context
public SelectionTools(PlugInContext context)
public void selectFeatures(java.util.List features)
features
- features to be selectedpublic static void selectLayer(PlugInContext context, Layer layer)
public static void selectFeatures(java.util.List features, PlugInContext context)
public static java.util.List<Feature> getSelectedFeaturesFromLayer(PlugInContext context, Layer layer)
public static java.util.List<Feature> getSelectedFeatures(PlugInContext context)
public java.util.List<Feature> getSelectedFeatures()
public static com.vividsolutions.jts.geom.Geometry getFenceGeometry(PlugInContext context)
context
- current PlugIn contextpublic com.vividsolutions.jts.geom.Geometry getFenceGeometry()
public java.util.List getFeaturesInFence()
public java.util.List getFeaturesInGeometry(com.vividsolutions.jts.geom.Geometry fenceGeometry)
public static Feature[] getFeaturesInFenceInLayer(Layer layer, com.vividsolutions.jts.geom.Geometry fenceGeometry)
layer
- - Layer to search infenceGeometry
- - Geometry to search inpublic static java.util.List getFeaturesInFenceInLayerAsList(Layer layer, com.vividsolutions.jts.geom.Geometry fenceGeometry)
layer
- - Layer to search infenceGeometry
- - Geometry to search inpublic static Feature[] getFeaturesInFenceInLayer(Feature[] featArray, com.vividsolutions.jts.geom.Geometry fenceGeometry)
featArray
- - Array of features to search infenceGeometry
- - Geometry to search inpublic static Feature[] getFeaturesOnTheSameSpot(Layer layer, com.vividsolutions.jts.geom.Geometry fenceGeometry, boolean bothWays)
layer
- - Layer to search infenceGeometry
- - Geometry to search inbothWays
- - sets if it's also a hit if the feature's geometry includes the fence geometrypublic static Feature[] getFeaturesOnTheSameSpot(Feature[] featArray, com.vividsolutions.jts.geom.Geometry fenceGeometry, boolean bothWays)
featArray
- - Array of features to search infenceGeometry
- - Geometry to search inbothWays
- - sets if it's also a hit if the feature's geometry includes the fence geometry