org.gvsig.geometrymeasurement.app.extension
Class AbstractGeometryMeasurementExtension
java.lang.Object
org.gvsig.andami.plugins.Extension
org.gvsig.geometrymeasurement.app.extension.AbstractGeometryMeasurementExtension
- All Implemented Interfaces:
- org.gvsig.andami.plugins.IExtension, org.gvsig.andami.plugins.IExtensionExecuteWithArgs, org.gvsig.andami.plugins.IExtensionQueryByAction
- Direct Known Subclasses:
- AddXYPointThemeExtension, AreaMeasurementExtension, PerimeterMeasurementExtension
public abstract class AbstractGeometryMeasurementExtension
- extends org.gvsig.andami.plugins.Extension
Abstract class for Geometry measurement operations extensions.
- Version:
- $Id$
- Author:
- gvSIG Team
|
Method Summary |
void |
execute(java.lang.String actionCommand)
|
protected abstract void |
execute(java.lang.String actionCommand,
org.gvsig.fmap.dal.feature.FeatureStore featureStore)
Executes a command for the given FeatureStore. |
protected org.gvsig.app.project.documents.table.TableDocument |
getActiveTableDocument()
Returns the active table document. |
void |
initialize()
|
boolean |
isEnabled()
|
protected boolean |
isStoreOfAnyType(org.gvsig.app.project.documents.table.TableDocument tableDocument,
int[] geomTypes)
|
boolean |
isVisible()
|
protected abstract boolean |
isVisibleForTable(org.gvsig.app.project.documents.table.TableDocument tableDocument)
Returns if the current extension is visible for the provided
table. |
| Methods inherited from class org.gvsig.andami.plugins.Extension |
canQueryByAction, execute, getPlugin, getStatus, getStatus, getText, isEnabled, isVisible, postInitialize, terminate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractGeometryMeasurementExtension
public AbstractGeometryMeasurementExtension()
execute
public void execute(java.lang.String actionCommand)
execute
protected abstract void execute(java.lang.String actionCommand,
org.gvsig.fmap.dal.feature.FeatureStore featureStore)
throws java.lang.Exception
- Executes a command for the given
FeatureStore.
- Parameters:
actionCommand - to executefeatureStore - to use
- Throws:
java.lang.Exception - if there is an error while executing
getActiveTableDocument
protected org.gvsig.app.project.documents.table.TableDocument getActiveTableDocument()
throws org.gvsig.fmap.dal.exception.DataException
- Returns the active table document. If the active document is not a table,
or if the table has not a geometry, return null.
- Returns:
- the active table document
- Throws:
org.gvsig.fmap.dal.exception.DataException
initialize
public void initialize()
isEnabled
public boolean isEnabled()
isStoreOfAnyType
protected boolean isStoreOfAnyType(org.gvsig.app.project.documents.table.TableDocument tableDocument,
int[] geomTypes)
isVisible
public final boolean isVisible()
isVisibleForTable
protected abstract boolean isVisibleForTable(org.gvsig.app.project.documents.table.TableDocument tableDocument)
- Returns if the current extension is visible for the provided
table.
The provided table will be always non null.
- Parameters:
layer - the active table
- Returns:
- if the extension is visible
Copyright © 2014 gvSIG Association. All Rights Reserved.