Class SWCImportDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class SWCImportDialog extends JDialog
Implements a dialog for importing SWC files.
See Also:
  • Constructor Details

    • SWCImportDialog

      public SWCImportDialog(SNTUI ui, File suggestedFile)
    • SWCImportDialog

      public SWCImportDialog(SNTUI ui, File suggestedFile, double[] worldOriginOffset)
      Parameters:
      ui - the parent UI
      suggestedFile - the file to pre-select in the file picker, or null
      worldOriginOffset - the current session's SNT#getWorldOriginOffset() world-origin offset, or null/all-zero if none. When non-zero, the "Apply offset" fields are pre-filled with it (and the panel is expanded by default)
  • Method Details

    • succeeded

      public boolean succeeded()
    • getFile

      public File getFile()
    • getOffsets

      public double[] getOffsets()
    • getScalingFactors

      public double[] getScalingFactors()
    • isReplacePaths

      public boolean isReplacePaths()
    • isAssumePixelCoordinates

      public boolean isAssumePixelCoordinates()