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
Modifier and TypeFieldDescriptionprotected int
the "container" type column indexprotected int
the "container" type row indexprotected boolean
if the enum mapped value is shownprotected NumberFormat
the number format typeprotected boolean
if data shows in binary formatprotected boolean
if the data shows in hex format -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncanonicalToDisplayValue
(Object value) displayToCanonicalValue
(Object value) void
setConvertEnum
(boolean convert) set if the enum mapped value is shownvoid
setNumberFormat
(NumberFormat format) set the number format typevoid
setShowAsBin
(boolean asBin) set if data shows in binary formatvoid
setShowAsHex
(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:
canonicalToDisplayValue
in interfaceorg.eclipse.nebula.widgets.nattable.data.convert.IDisplayConverter
- Specified by:
canonicalToDisplayValue
in classorg.eclipse.nebula.widgets.nattable.data.convert.DisplayConverter
-
displayToCanonicalValue
- Specified by:
displayToCanonicalValue
in interfaceorg.eclipse.nebula.widgets.nattable.data.convert.IDisplayConverter
- Specified by:
displayToCanonicalValue
in 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
-