View Javadoc
1   package com.github.celldynamics.quimp.plugin.binaryseg;
2   
3   import com.github.celldynamics.quimp.plugin.AbstractPluginOptions;
4   import com.github.celldynamics.quimp.plugin.EscapedPath;
5   import com.github.celldynamics.quimp.plugin.ParamList;
6   import com.github.celldynamics.quimp.plugin.utils.QWindowBuilder;
7   
8   /**
9    * Hold options for Binary Segmentation.
10   * 
11   * @author p.baniukiewicz
12   *
13   */
14  public class BinarySegmentationOptions extends AbstractPluginOptions {
15  
16    /**
17     * Plugin options in format of QWindowBuilder.
18     * 
19     * @see QWindowBuilder
20     * @see BinarySegmentationView
21     * @see BinarySegmentationView#SELECT_MASK
22     * @see BinarySegmentationView#NAME
23     * @see BinarySegmentationView#LOAD_MASK
24     * @see BinarySegmentationView#CLEAR_NEST
25     * @see BinarySegmentationView#RESTORE_SNAKE
26     * @see BinarySegmentationView#STEP2
27     * @see BinarySegmentationView#SELECT_ORIGINAL_IMAGE
28     */
29    public ParamList options;
30  
31    /**
32     * Keep file name of mask if loaded by Load button.
33     * 
34     * <p>Otherwise plugin looks into {@link BinarySegmentationView#SELECT_MASK} field in
35     * Gui.
36     */
37    @EscapedPath
38    public String maskFileName = "";
39  
40    /*
41     * (non-Javadoc)
42     * 
43     * @see java.lang.Object#clone()
44     */
45    @Override
46    public Object clone() throws CloneNotSupportedException {
47      BinarySegmentationOptionsinaryseg/BinarySegmentationOptions.html#BinarySegmentationOptions">BinarySegmentationOptions ret = new BinarySegmentationOptions();
48      ret.options = new ParamList(this.options);
49      ret.maskFileName = this.maskFileName;
50      ret.paramFile = paramFile;
51      return ret;
52    }
53  
54    /*
55     * (non-Javadoc)
56     * 
57     * @see java.lang.Object#toString()
58     */
59    @Override
60    public String toString() {
61      return "BinarySegmentationOptions [options=" + options + ", maskFileName=" + maskFileName
62              + ", outputPath=" + paramFile + "]";
63    }
64  
65  }