X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Ffts%2Fapi%2FFTSDataColumnI.java;h=80990b4ccbc64d3faf4f490a4086a716fd20a90f;hb=817f6a0616bc319e28801ba545fae3c8907bacbc;hp=7741d737c7c72e0fb52d580942553c3ac3d9d052;hpb=f0a6a74187eda02037680aea3d4de4e7128f2cb0;p=jalview.git diff --git a/src/jalview/fts/api/FTSDataColumnI.java b/src/jalview/fts/api/FTSDataColumnI.java index 7741d73..80990b4 100644 --- a/src/jalview/fts/api/FTSDataColumnI.java +++ b/src/jalview/fts/api/FTSDataColumnI.java @@ -93,18 +93,18 @@ public interface FTSDataColumnI public boolean isVisibleByDefault(); /** - * Returns the data column's data type class + * Returns the data column's FTS data column group * - * @return the Class for the data column's data type + * @return the FTSDataColumnGroupI for the column */ - public Class getDataColumnClass(); + public FTSDataColumnGroupI getGroup(); /** - * Returns the data colum's FTS data column group + * Returns the data columns data type POJO * - * @return the FTSDataColumnGroupI for the column + * @return the DataTypeI for the column */ - public FTSDataColumnGroupI getGroup(); + public DataTypeI getDataType(); /** * This interface provides a model for the dynamic data column group @@ -133,4 +133,29 @@ public interface FTSDataColumnI */ public int getSortOrder(); } + + public interface DataTypeI + { + /** + * Returns the data column's data type class + * + * @return the Class for the data column's data type + */ + public Class getDataTypeClass(); + + /** + * Checks if the numeric data column's data will be formated + * + * @return true means the numeric data column shall be formatted + */ + public boolean isFormtted(); + + /** + * Returns the number of significant figure to be used for the numeric value + * formatting + * + * @return the number of significant figures + */ + public int getSignificantFigures(); + } }