Class CTSPlugIn

All Implemented Interfaces:
EnableChecked, Iconified, PlugIn, Recordable, ShortcutEnabled, ThreadedPlugIn

public class CTSPlugIn extends ThreadedBasePlugIn implements Iconified, EnableChecked
PlugIn to transform coordinates using Coordinate Transformation Suite (CTS)
  • Constructor Details

    • CTSPlugIn

      public CTSPlugIn()
  • Method Details

    • getIcon

      public ImageIcon getIcon()
      Description copied from class: AbstractPlugIn
      Plugin icon assumed to be 16x16 by default
      Specified by:
      getIcon in interface Iconified
      Overrides:
      getIcon in class AbstractPlugIn
    • execute

      public boolean execute(PlugInContext context) throws Exception
      Description copied from class: AbstractPlugIn
      Execute the PlugIn.
      Specified by:
      execute in interface PlugIn
      Overrides:
      execute in class AbstractPlugIn
      Parameters:
      context - context of this PlugIn
      Returns:
      true if the PlugIn has been executed
      Throws:
      Exception - if an Exception occurs during execution
      See Also:
    • run

      public void run(TaskMonitor monitor, PlugInContext context) throws org.cts.registry.RegistryException, org.cts.crs.CRSException, org.cts.op.CoordinateOperationException
      Description copied from interface: ThreadedPlugIn
      Runs the task. This method will be executed in a separate thread, so that the GUI remains responsive (but only partially so, as a modal progress dialog will be in the way). Don't call GUI classes in this method as it is not executed on the GUI thread.
      Specified by:
      run in interface ThreadedPlugIn
      Parameters:
      monitor - context to which this task can report its progress and check whether a party has requested its cancellation
      context - context of this PlugIn
      Throws:
      org.cts.registry.RegistryException
      org.cts.crs.CRSException
      org.cts.op.CoordinateOperationException