Class BufferSelectionProcess

java.lang.Object
org.gvsig.gui.beans.incrementabletask.IncrementableProcess
org.gvsig.selectiontools.app.extension.tools.buffer.process.BufferSelectionProcess
All Implemented Interfaces:
Runnable, EventListener, org.gvsig.gui.beans.incrementabletask.IIncrementable, org.gvsig.gui.beans.incrementabletask.IncrementableListener

public class BufferSelectionProcess extends org.gvsig.gui.beans.incrementabletask.IncrementableProcess
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final byte
    buffer computing with variable buffer distance in function of feature attribute value
    static final byte
    For polygonal buffers, compute interior and exterior buffers
    static final byte
    For polygonal buffers, only compute interior buffers
    static final byte
    For polygonal buffers, only compute exterior buffers (is the default operation, it applies to any geometry type)
    static final byte
    Buffer with round cap
    static final byte
    Buffer with square cap
    static final byte
    flag that represents buffer computing with one only buffer distance.

    Fields inherited from class org.gvsig.gui.beans.incrementabletask.IncrementableProcess

    blinker, cancelProcess, ended, isCancellable, isPausable, iTask, label, log, percentage, t0, threadSuspended, title
  • Constructor Summary

    Constructors
    Constructor
    Description
    BufferSelectionProcess(String title, String label, org.gvsig.fmap.mapcontrol.MapControl mapControl, byte pol_side, byte line_side, byte point_side, byte multi_point_side, double width, short selectedDistanceUnit, org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect[] activeLayers, boolean multiLayerSelection)
    Creates a new
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Importation process.
    void
    setIncrementableTask(org.gvsig.gui.beans.incrementabletask.IncrementableTask iTask)
    Sets the object that will display the evolution of this loading process as a progress dialog.

    Methods inherited from class org.gvsig.gui.beans.incrementabletask.IncrementableProcess

    actionCanceled, actionResumed, actionSuspended, getLabel, getLog, getPercent, getTitle, insertLineLog, isAlive, isCancelable, isPausable, isSuspended, processFinalize, run, setCancelable, setLabel, setPausable, start, stop

    Methods inherited from class java.lang.Object

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

    • BUFFER_INSIDE_POLY

      public static final byte BUFFER_INSIDE_POLY
      For polygonal buffers, only compute interior buffers
      See Also:
    • BUFFER_OUTSIDE_POLY

      public static final byte BUFFER_OUTSIDE_POLY
      For polygonal buffers, only compute exterior buffers (is the default operation, it applies to any geometry type)
      See Also:
    • BUFFER_INSIDE_OUTSIDE_POLY

      public static final byte BUFFER_INSIDE_OUTSIDE_POLY
      For polygonal buffers, compute interior and exterior buffers
      See Also:
    • CAP_SQUARE

      public static final byte CAP_SQUARE
      Buffer with square cap
      See Also:
    • CAP_ROUND

      public static final byte CAP_ROUND
      Buffer with round cap
      See Also:
    • CONSTANT_DISTANCE_STRATEGY

      public static final byte CONSTANT_DISTANCE_STRATEGY
      flag that represents buffer computing with one only buffer distance.
      See Also:
    • ATTRIBUTE_DISTANCE_STRATEGY

      public static final byte ATTRIBUTE_DISTANCE_STRATEGY
      buffer computing with variable buffer distance in function of feature attribute value
      See Also:
  • Constructor Details

    • BufferSelectionProcess

      public BufferSelectionProcess(String title, String label, org.gvsig.fmap.mapcontrol.MapControl mapControl, byte pol_side, byte line_side, byte point_side, byte multi_point_side, double width, short selectedDistanceUnit, org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect[] activeLayers, boolean multiLayerSelection)
      Creates a new

      BufferSelectionProcess

      .
      Parameters:
      title - of the progress dialog
      label - the label that explains the process
      mapControl - reference to the current active view's MapControl .
      pol_side - side of the buffer in a polyline layer:
      invalid reference
      BufferConfigurationPanel#OUTSIDE
      ,
      invalid reference
      BufferConfigurationPanel#INSIDE
      , or
      invalid reference
      BufferConfigurationPanel#OUTSIDE_AND_INSIDE
      line_side - side of the buffer in a line layer:
      invalid reference
      BufferConfigurationPanel#OUTSIDE_AND_INSIDE
      point_side - side of the buffer in a point layer:
      invalid reference
      BufferConfigurationPanel#OUTSIDE
      multi_point_side - side of the buffer in a multi point layer:
      invalid reference
      BufferConfigurationPanel#OUTSIDE
      width - buffer's width
      selectedDistanceUnit - distance unit selected
      activeLayers - current active view's active layers
      multiLayerSelection - determines if the selection in each active layer affects the other
      showBufferLayers - determines if will show the layers with the buffers as new temporal layers
  • Method Details

    • setIncrementableTask

      public void setIncrementableTask(org.gvsig.gui.beans.incrementabletask.IncrementableTask iTask)
      Sets the object that will display the evolution of this loading process as a progress dialog.
      Overrides:
      setIncrementableTask in class org.gvsig.gui.beans.incrementabletask.IncrementableProcess
      Parameters:
      iTask - the object that will display the evolution of this loading process
    • process

      public void process() throws InterruptedException
      Importation process.
      Specified by:
      process in class org.gvsig.gui.beans.incrementabletask.IncrementableProcess
      Throws:
      InterruptedException - if fails the process