Class SelectionTools
java.lang.Object
org.openjump.core.apitools.ToolToMakeYourLifeEasier
org.openjump.core.apitools.SelectionTools
Class to easily handle selections and selection tools. Also has methods to
find features by given geometries.
- Author:
- Ole Rahn FH Osnabrück - University of Applied Sciences Osnabrück Project PIROL 2005 Daten- und Wissensmanagement
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Feature[]getFeaturesInFenceInLayer(Feature[] featArray, org.locationtech.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, org.locationtech.jts.geom.Geometry fenceGeometry) Get a list of those features from the given layer that are included by the given fence geometry.static ListgetFeaturesInFenceInLayerAsList(Layer layer, org.locationtech.jts.geom.Geometry fenceGeometry) Get a list of those features from the given layer that are included by the given fence geometry.getFeaturesInGeometry(org.locationtech.jts.geom.Geometry fenceGeometry) static Feature[]getFeaturesOnTheSameSpot(Feature[] featArray, org.locationtech.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, org.locationtech.jts.geom.Geometry fenceGeometry, boolean bothWays) Get a list of those features from the given layer that are included by the given fence geometry.org.locationtech.jts.geom.Geometrystatic org.locationtech.jts.geom.GeometrygetFenceGeometry(PlugInContext context) getSelectedFeatures(PlugInContext context) getSelectedFeaturesFromLayer(PlugInContext context, Layer layer) voidselectFeatures(List features) create a selection out of the given features that is visible in the Jump mapstatic voidselectFeatures(List features, PlugInContext context) static voidselectLayer(PlugInContext context, Layer layer)
-
Field Details
-
context
-
-
Constructor Details
-
SelectionTools
-
-
Method Details
-
selectFeatures
create a selection out of the given features that is visible in the Jump map- Parameters:
features- features to be selected
-
selectLayer
-
selectFeatures
-
getSelectedFeaturesFromLayer
-
getSelectedFeatures
-
getSelectedFeatures
-
getFenceGeometry
- Parameters:
context- current PlugIn context- Returns:
- the geometry of the current fence, or null if there is currently no fence
-
getFenceGeometry
public org.locationtech.jts.geom.Geometry getFenceGeometry()- Returns:
- the geometry of the current fence, or null if there is currently no fence
-
getFeaturesInFence
-
getFeaturesInGeometry
-
getFeaturesInFenceInLayer
-
getFeaturesInFenceInLayerAsList
-
getFeaturesInFenceInLayer
public static Feature[] getFeaturesInFenceInLayer(Feature[] featArray, org.locationtech.jts.geom.Geometry fenceGeometry) Get a list of features (a sub list of the given array) that are included by the given fence geometry.- Parameters:
featArray- - Array of features to search infenceGeometry- - Geometry to search in
-
getFeaturesOnTheSameSpot
public static Feature[] getFeaturesOnTheSameSpot(Layer layer, org.locationtech.jts.geom.Geometry fenceGeometry, boolean bothWays) Get a list of those features from the given layer that are included by the given fence geometry.- Parameters:
layer- - Layer to search infenceGeometry- - Geometry to search inbothWays- - sets if it's also a hit if the feature's geometry includes the fence geometry
-
getFeaturesOnTheSameSpot
public static Feature[] getFeaturesOnTheSameSpot(Feature[] featArray, org.locationtech.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.- Parameters:
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
-