Class FeatureStatisticsPlugIn
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.plugin.AbstractPlugIn
-
- org.locationtech.jts.jump.workbench.ui.plugin.FeatureStatisticsPlugIn
-
- All Implemented Interfaces:
PlugIn
public class FeatureStatisticsPlugIn extends AbstractPlugIn
Computes various statistics for selected layers.
-
-
Field Summary
Fields Modifier and Type Field Description static String
areaAttr
static String
lengthAttr
static String
nCompsAttr
static String
nHolesAttr
static String
nPtsAttr
static String
typeAttr
-
Constructor Summary
Constructors Constructor Description FeatureStatisticsPlugIn()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
execute(PlugInContext context)
Performs the action for this plugin.static FeatureSchema
getStatisticsSchema()
static String
removeGeometryPackage(String fullClassName)
Removes the JTS geometry package prefix from a classname-
Methods inherited from class org.locationtech.jts.jump.workbench.plugin.AbstractPlugIn
createName, execute, execute, getName, initialize, isRollingBackInvalidEdits, reportNothingToUndoYet, toActionListener, toString
-
-
-
-
Field Detail
-
nPtsAttr
public static final String nPtsAttr
- See Also:
- Constant Field Values
-
nHolesAttr
public static final String nHolesAttr
- See Also:
- Constant Field Values
-
nCompsAttr
public static final String nCompsAttr
- See Also:
- Constant Field Values
-
areaAttr
public static final String areaAttr
- See Also:
- Constant Field Values
-
lengthAttr
public static final String lengthAttr
- See Also:
- Constant Field Values
-
typeAttr
public static final String typeAttr
- See Also:
- Constant Field Values
-
-
Method Detail
-
getStatisticsSchema
public static FeatureSchema getStatisticsSchema()
-
removeGeometryPackage
public static String removeGeometryPackage(String fullClassName)
Removes the JTS geometry package prefix from a classname- Parameters:
fullClassName
-- Returns:
- the simplified class name
-
execute
public boolean execute(PlugInContext context) throws Exception
Description copied from interface:PlugIn
Performs the action for this plugin. For threaded plugins with dialogs, this method contains the code to invoke the dialog. If the user cancels the dialog, this method should returnfalse
to prevent the run method from being called.- Specified by:
execute
in interfacePlugIn
- Overrides:
execute
in classAbstractPlugIn
- Returns:
- true if the action completed, false if it was aborted. Used by ThreadedPlugIns to indicate that their #run method needn't be called next.
- Throws:
Exception
- if a problem occurs during plug-in execution- See Also:
ThreadedPlugIn
-
-