+
+ public String getInFile()
+ {
+ if (inFile != null)
+ {
+ return inFile.getAbsolutePath() + " (" + index + ")";
+ }
+ else
+ {
+ return "From Paste + (" + index + ")";
+ }
+ }
+
+ /**
+ * @return the dataName
+ */
+ public String getDataName()
+ {
+ return dataName;
+ }
+
+ /**
+ * set the (human readable) name or URI for this datasource
+ *
+ * @param dataname
+ */
+ protected void setDataName(String dataname)
+ {
+ dataName = dataname;
+ }
+
+ /**
+ * get the underlying bufferedReader for this data source.
+ *
+ * @return null if no reader available
+ * @throws IOException
+ */
+ public Reader getReader()
+ {
+ if (dataIn != null) // Probably don't need to test for readiness &&
+ // dataIn.ready())
+ {
+ return dataIn;
+ }
+ return null;
+ }
+
+ public AlignViewportI getViewport()
+ {
+ return viewport;
+ }
+
+ public void setViewport(AlignViewportI viewport)
+ {
+ this.viewport = viewport;
+ }
+
+ /**
+ * @return the currently configured exportSettings for writing data.
+ */
+ public AlignExportSettingI getExportSettings()
+ {
+ return exportSettings;
+ }
+
+ /**
+ * Set configuration for export of data.
+ *
+ * @param exportSettings
+ * the exportSettings to set
+ */
+ public void setExportSettings(AlignExportSettingI exportSettings)
+ {
+ this.exportSettings = exportSettings;
+ }
+
+ /**
+ * method overridden by complex file exporter/importers which support
+ * exporting visualisation and layout settings for a view
+ *
+ * @param avpanel
+ */
+ public void configureForView(AlignmentViewPanel avpanel)
+ {
+ if (avpanel != null)
+ {
+ setViewport(avpanel.getAlignViewport());
+ }
+ // could also set export/import settings
+ }
+
+ /**
+ * Returns the preferred feature colour configuration if there is one, else
+ * null
+ *
+ * @return
+ */
+ public FeatureSettingsModelI getFeatureColourScheme()
+ {
+ return null;
+ }
+
+ public DataSourceType getDataSourceType()
+ {
+ return dataSourceType;
+ }