1 package jalview.datamodel;
3 import jalview.api.AlignExportSettingsI;
6 * Export options that may be constructed as 'all' or 'none' (and further
9 public class AlignExportSettingsAdapter implements AlignExportSettingsI
11 private boolean exportHiddenSeqs;
13 private boolean exportHiddenCols;
15 private boolean exportAnnotations;
17 private boolean exportFeatures;
19 private boolean exportGroups;
22 * Constructor sets all options to either true or false
24 * @param defaultOption
26 public AlignExportSettingsAdapter(boolean defaultOption)
28 exportAnnotations = defaultOption;
29 exportFeatures = defaultOption;
30 exportGroups = defaultOption;
31 exportHiddenCols = defaultOption;
32 exportHiddenSeqs = defaultOption;
36 public boolean isExportHiddenSequences()
38 return exportHiddenSeqs;
42 public boolean isExportHiddenColumns()
44 return exportHiddenCols;
48 public boolean isExportAnnotations()
50 return exportAnnotations;
54 public boolean isExportFeatures()
56 return exportFeatures;
60 public boolean isExportGroups()
65 public void setExportHiddenSequences(boolean exportHiddenSeqs)
67 this.exportHiddenSeqs = exportHiddenSeqs;
70 public void setExportHiddenColumns(boolean exportHiddenCols)
72 this.exportHiddenCols = exportHiddenCols;
75 public void setExportAnnotations(boolean exportAnnotations)
77 this.exportAnnotations = exportAnnotations;
80 public void setExportFeatures(boolean exportFeatures)
82 this.exportFeatures = exportFeatures;
85 public void setExportGroups(boolean exportGroups)
87 this.exportGroups = exportGroups;