Module org.hdfgroup.hdfview
Package hdf.view.TableView
Class DataDisplayConverterFactory.HDFDisplayConverter
Object
org.eclipse.nebula.widgets.nattable.data.convert.DisplayConverter
hdf.view.TableView.DataDisplayConverterFactory.HDFDisplayConverter
- All Implemented Interfaces:
org.eclipse.nebula.widgets.nattable.data.convert.IDisplayConverter
- Enclosing class:
DataDisplayConverterFactory
public static class DataDisplayConverterFactory.HDFDisplayConverter
extends org.eclipse.nebula.widgets.nattable.data.convert.DisplayConverter
the HDF extension for data converters
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intthe "container" type column indexprotected intthe "container" type row indexprotected booleanif the enum mapped value is shownprotected NumberFormatthe number format typeprotected booleanif data shows in binary formatprotected booleanif the data shows in hex format -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncanonicalToDisplayValue(Object value) displayToCanonicalValue(Object value) voidsetConvertEnum(boolean convert) set if the enum mapped value is shownvoidsetNumberFormat(NumberFormat format) set the number format typevoidsetShowAsBin(boolean asBin) set if data shows in binary formatvoidsetShowAsHex(boolean asHex) set if the data shows in hex formatMethods inherited from class org.eclipse.nebula.widgets.nattable.data.convert.DisplayConverter
canonicalToDisplayValue, displayToCanonicalValue
-
Field Details
-
numberFormat
the number format type -
showAsHex
if the data shows in hex format -
showAsBin
if data shows in binary format -
isEnumConverted
if the enum mapped value is shown -
cellRowIdx
the "container" type row index -
cellColIdx
the "container" type column index
-
-
Constructor Details
-
HDFDisplayConverter
HDFDisplayConverter(Datatype dtype) create a HDF data converter- Parameters:
dtype- the datatype for conversion
-
-
Method Details
-
canonicalToDisplayValue
- Specified by:
canonicalToDisplayValuein interfaceorg.eclipse.nebula.widgets.nattable.data.convert.IDisplayConverter- Specified by:
canonicalToDisplayValuein classorg.eclipse.nebula.widgets.nattable.data.convert.DisplayConverter
-
displayToCanonicalValue
- Specified by:
displayToCanonicalValuein interfaceorg.eclipse.nebula.widgets.nattable.data.convert.IDisplayConverter- Specified by:
displayToCanonicalValuein classorg.eclipse.nebula.widgets.nattable.data.convert.DisplayConverter
-
setNumberFormat
set the number format type- Parameters:
format- the data format
-
setShowAsHex
set if the data shows in hex format- Parameters:
asHex- if the data shows as hex format
-
setShowAsBin
set if data shows in binary format- Parameters:
asBin- if the data shows as binary format
-
setConvertEnum
set if the enum mapped value is shown- Parameters:
convert- if the enum data should be converted
-