Class ExportFeaturesStyle
Object
org.anchoranalysis.bean.AnchorBean<ExportFeaturesStyle>
org.anchoranalysis.plugin.image.task.bean.feature.ExportFeaturesStyle
public class ExportFeaturesStyle extends org.anchoranalysis.bean.AnchorBean<ExportFeaturesStyle>
Visual style for how features are exported.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description ExportFeaturesStyle()ExportFeaturesStyle(boolean removeNaNColumns, boolean visuallyShortenDecimals, boolean suppressErrors) -
Method Summary
Modifier and Type Method Description FeatureExporterContextderiveContext(org.anchoranalysis.io.output.outputter.InputOutputContext context)Derives aFeatureExporterContextfrom the current style and given context.booleanisRemoveNaNColumns()When true, columns containing allDouble.NaNvalues are removed before outputting.booleanisSuppressErrors()When false, an image is reported as errored, if any exception is thrown during calculation.booleanisVisuallyShortenDecimals()When true, feature-values are shown as visually compressed as possible, including suppressing decimal places.voidsetRemoveNaNColumns(boolean removeNaNColumns)When true, columns containing allDouble.NaNvalues are removed before outputting.voidsetSuppressErrors(boolean suppressErrors)When false, an image is reported as errored, if any exception is thrown during calculation.voidsetVisuallyShortenDecimals(boolean visuallyShortenDecimals)When true, feature-values are shown as visually compressed as possible, including suppressing decimal places.
-
Constructor Details
-
ExportFeaturesStyle
public ExportFeaturesStyle() -
ExportFeaturesStyle
public ExportFeaturesStyle(boolean removeNaNColumns, boolean visuallyShortenDecimals, boolean suppressErrors)
-
-
Method Details
-
deriveContext
public FeatureExporterContext deriveContext(org.anchoranalysis.io.output.outputter.InputOutputContext context)Derives aFeatureExporterContextfrom the current style and given context.- Parameters:
context- theInputOutputContextto use for deriving the new context.- Returns:
- a new
FeatureExporterContextinstance.
-
isRemoveNaNColumns
public boolean isRemoveNaNColumns()When true, columns containing allDouble.NaNvalues are removed before outputting.When false, all columns are included.
-
setRemoveNaNColumns
public void setRemoveNaNColumns(boolean removeNaNColumns)When true, columns containing allDouble.NaNvalues are removed before outputting.When false, all columns are included.
-
isVisuallyShortenDecimals
public boolean isVisuallyShortenDecimals()When true, feature-values are shown as visually compressed as possible, including suppressing decimal places.When false, a fixed number of decimal places is shown for all feature-values.
e.g. when true,
2is shown instead of2.0000000000or6.71instead of6.71000000000000 -
setVisuallyShortenDecimals
public void setVisuallyShortenDecimals(boolean visuallyShortenDecimals)When true, feature-values are shown as visually compressed as possible, including suppressing decimal places.When false, a fixed number of decimal places is shown for all feature-values.
e.g. when true,
2is shown instead of2.0000000000or6.71instead of6.71000000000000 -
isSuppressErrors
public boolean isSuppressErrors()When false, an image is reported as errored, if any exception is thrown during calculation.When true, then a value of
Double.NaNis returned, and a message is written to the error-log. -
setSuppressErrors
public void setSuppressErrors(boolean suppressErrors)When false, an image is reported as errored, if any exception is thrown during calculation.When true, then a value of
Double.NaNis returned, and a message is written to the error-log.
-