Class VerticesInFencePlugIn

java.lang.Object
com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
com.vividsolutions.jump.workbench.ui.plugin.VerticesInFencePlugIn
All Implemented Interfaces:
EnableChecked, Iconified, PlugIn, Recordable, ShortcutEnabled

public class VerticesInFencePlugIn extends AbstractPlugIn
  • Constructor Details

    • VerticesInFencePlugIn

      public VerticesInFencePlugIn()
  • Method Details

    • initialize

      public void initialize(PlugInContext context) throws Exception
      Description copied from interface: PlugIn
      Called when Workbench starts up to allow plugins to initialize themselves.
      Specified by:
      initialize in interface PlugIn
      Overrides:
      initialize in class AbstractPlugIn
      Parameters:
      context - context of the PlugIn
      Throws:
      Exception - if an exception occur during initialization
    • 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:
    • createEnableCheck

      public MultiEnableCheck createEnableCheck(WorkbenchContext workbenchContext)
    • verticesInFence

      public static Collection<org.locationtech.jts.geom.Coordinate> verticesInFence(Collection<org.locationtech.jts.geom.Geometry> geometries, org.locationtech.jts.geom.Geometry fence, boolean skipClosingVertex)
    • verticesInFence

      public static VerticesInFencePlugIn.VerticesInFence verticesInFence(org.locationtech.jts.geom.Geometry geometry, org.locationtech.jts.geom.Geometry fence, boolean skipClosingVertex)
      Parameters:
      skipClosingVertex - whether to ignore the duplicate point that closes off a LinearRing or Polygon
    • main

      public static void main(String[] args)