|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.demo.SelectionLab
public class SelectionLab
In this example we create a map tool to select a feature clicked with the mouse. The selected feature will be painted yellow.
Constructor Summary | |
---|---|
SelectionLab()
|
Method Summary | |
---|---|
void |
displaySelectedFeatures(java.util.Set<org.opengis.filter.identity.FeatureId> IDs)
Sets the display to paint selected features yellow and unselected features in the default style. |
void |
displayShapefile(java.io.File file)
This method connects to the shapefile; retrieves information about its features; creates a map frame to display the shapefile and adds a custom feature selection tool to the toolbar of the map frame. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SelectionLab()
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public void displayShapefile(java.io.File file) throws java.lang.Exception
java.lang.Exception
public void displaySelectedFeatures(java.util.Set<org.opengis.filter.identity.FeatureId> IDs)
IDs
- identifiers of currently selected features
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |