Package sc.fiji.snt

Class FillManagerUI

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, FillerProgressCallback, SearchProgressCallback

public class FillManagerUI extends JDialog implements ActionListener, FillerProgressCallback
Implements the Fill Manager dialog.
Author:
Tiago Ferreira, Cameron Arshadi
See Also:
  • Field Details

  • Constructor Details

    • FillManagerUI

      public FillManagerUI(SNT plugin)
      Instantiates a new Fill Manager Dialog
      Parameters:
      plugin - the SNT instance to be associated with this FillManager. It is assumed that its SNTUI is available.
  • Method Details

    • updateSettingsString

      protected void updateSettingsString()
    • adjustListPlaceholder

      protected void adjustListPlaceholder()
    • setEnabledWhileFilling

      protected void setEnabledWhileFilling()
    • setEnabledWhileNotFilling

      protected void setEnabledWhileNotFilling()
    • setEnabledNone

      protected void setEnabledNone()
    • setFillTransparent

      public void setFillTransparent(boolean transparent)
      Sets the transparency state of fills.
      Parameters:
      transparent - true to make fills transparent, false for opaque
    • setSplitFills

      public void setSplitFills(boolean split)
      Sets whether each path should be filled independently.
      Parameters:
      split - true to enable "one fill per path", false for bulk filling
    • setPathList

      public void setPathList(List<Path> pathList, Path justAdded, boolean expandAll)
    • setFillList

      public void setFillList(List<Fill> fillList)
    • setSelectedPaths

      public void setSelectedPaths(Collection<Path> selectedPathSet, Object source)
    • actionPerformed

      public void actionPerformed(ActionEvent ae)
      Specified by:
      actionPerformed in interface ActionListener
    • maximumDistanceCompletelyExplored

      public void maximumDistanceCompletelyExplored(FillerThread source, double f)
      Specified by:
      maximumDistanceCompletelyExplored in interface FillerProgressCallback
    • pointsInSearch

      public void pointsInSearch(SearchInterface source, long inOpen, long inClosed)
      Specified by:
      pointsInSearch in interface SearchProgressCallback
    • finished

      public void finished(SearchInterface source, boolean success)
      Specified by:
      finished in interface SearchProgressCallback
    • threadStatus

      public void threadStatus(SearchInterface source, int currentStatus)
      Specified by:
      threadStatus in interface SearchProgressCallback
    • showMouseThreshold

      protected void showMouseThreshold(double t)
    • changeState

      protected void changeState(FillManagerUI.State newState)
      Changes this UI to a new state. Does nothing if newState is the current UI state
      Parameters:
      newState - the new state, e.g., FillManagerUI.State.READY, FillManagerUI.State.STARTED, etc.
    • main

      public static void main(String[] args)
    • updateThresholdWidget

      protected void updateThresholdWidget(double newThreshold)