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
  • Field Summary

    Fields inherited from class org.gvsig.andami.plugins.Extension

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute(String actionCommand)
     
    protected abstract void
    execute(String actionCommand, org.gvsig.fmap.dal.feature.FeatureStore featureStore)
    Executes a command for the given FeatureStore.
    protected org.gvsig.app.project.documents.table.TableDocument
    Returns the active table document.
    void
     
    boolean
     
    protected boolean
    isStoreOfAnyType(org.gvsig.app.project.documents.table.TableDocument tableDocument, int[] geomTypes)
     
    final boolean
     
    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, setPlugin, terminate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractGeometryMeasurementExtension

      public AbstractGeometryMeasurementExtension()
  • Method Details

    • initialize

      public void initialize()
    • isEnabled

      public boolean isEnabled()
    • 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
    • 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
    • isStoreOfAnyType

      protected boolean isStoreOfAnyType(org.gvsig.app.project.documents.table.TableDocument tableDocument, int[] geomTypes)
    • execute

      public void execute(String actionCommand)
    • execute

      protected abstract void execute(String actionCommand, org.gvsig.fmap.dal.feature.FeatureStore featureStore) throws Exception
      Executes a command for the given FeatureStore.
      Parameters:
      actionCommand - to execute
      featureStore - to use
      Throws:
      Exception - if there is an error while executing