Object
hdf.view.TableView.DefaultBaseTableView
- Direct Known Subclasses:
- DefaultCompoundDSTableView,- DefaultScalarDSTableView
DefaultBaseTableView serves as the base class for a DataView that displays
 HDF data in a tabular format. This class is used for internal bookkeeping and
 as a place to store higher-level data manipulation functions, whereas its
 subclasses are responsible for setting up the actual GUI components.
- Version:
- 1.0 4/13/2018
- Author:
- jhenderson
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected classAn implementation of the table's Column Header which adapts to the current font.protected classAn implementation of a GridLayer with support for column grouping and with editing triggered by a double click instead of a single click.protected classprotected classAn implementation of the table's Row Header which adapts to the current font.protected classCustom Row Header data provider to set row indices based on Index Base for both Scalar Datasets and Compound Datasets.protected static class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected intprotected BitSetprotected ViewProperties.BITMASK_OPprotected org.eclipse.swt.widgets.Labelprotected org.eclipse.swt.widgets.Textprotected org.eclipse.swt.widgets.MenuItemprotected org.eclipse.swt.widgets.MenuItemprotected org.eclipse.swt.widgets.MenuItemprotected org.eclipse.swt.widgets.MenuItemGlobal variables for GUI componentsprotected org.eclipse.swt.widgets.MenuItemprotected org.eclipse.swt.widgets.MenuItemprotected org.eclipse.nebula.widgets.nattable.data.IDataProviderprotected org.eclipse.swt.graphics.Fontprotected DecimalFormatprotected org.eclipse.nebula.widgets.nattable.layer.DataLayerprotected DataFormatprotected DataProviderFactory.HDFDataProviderprotected org.eclipse.nebula.widgets.nattable.NatTableprotected Objectprotected Objectprotected intprotected intprotected org.eclipse.swt.widgets.Groupprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected NumberFormatprotected NumberFormatprotected org.eclipse.nebula.widgets.nattable.data.IDataProviderprotected DecimalFormatprotected org.eclipse.nebula.widgets.nattable.selection.SelectionLayerprotected org.eclipse.swt.widgets.Shellprotected booleanprotected booleanprotected DataViewManagerprotected DefaultBaseTableView.ViewTypeFields inherited from interface hdf.view.DataView.DataViewDATAVIEW_IMAGE, DATAVIEW_TABLE, DATAVIEW_UNKNOWN
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultBaseTableView(DataViewManager theView)Constructs a base TableView with no additional data properties.DefaultBaseTableView(DataViewManager theView, HashMap dataPropertiesMap)Constructs a base TableView with the specified data properties.
- 
Method SummaryModifier and TypeMethodDescriptionprotected org.eclipse.swt.widgets.MenucreateMenuBar(org.eclipse.swt.widgets.Shell theShell)protected abstract org.eclipse.nebula.widgets.nattable.NatTablecreateTable(org.eclipse.swt.widgets.Composite parent, DataFormat dataObject)protected abstract org.eclipse.nebula.widgets.nattable.config.IEditableRulegetDataEditingRule(DataFormat dataObject)org.eclipse.nebula.widgets.nattable.layer.DataLayerintintorg.eclipse.nebula.widgets.nattable.selection.SelectionLayergetTable()protected voidImport data values from binary file.protected voidimportTextData(String fname)Import data values from text file.protected voidloadData(DataFormat dataObject)protected voidNewshowObjRefData(long ref)Display data pointed to by object references.protected voidNewshowRegRefData(String reg)Display data pointed to by region references.protected voidSave data as binary.protected voidSave data as text.protected abstract voidshowObjRefData(long ref)protected abstract voidshowRegRefData(String reg)protected voidvoidUpdate dataset's value in file.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hdf.view.TableView.TableViewgetSelectedData
- 
Field Details- 
shell
- 
curFont
- 
viewer
- 
dataTable
- 
dataObject
- 
dataValue
- 
fillValue
- 
viewType
- 
scientificFormat
- 
customFormat
- 
normalFormat
- 
numberFormat
- 
bitmask
- 
bitmaskOP
- 
indexBase
- 
fixedDataLength
- 
binaryOrder
- 
isReadOnly
- 
isEnumConverted
- 
isDisplayTypeChar
- 
isDataTransposed
- 
isRegRef
- 
isObjRef
- 
showAsHex
- 
showAsBin
- 
selectionLayer
- 
dataLayer
- 
rowHeaderDataProvider
- 
columnHeaderDataProvider
- 
dataProvider
- 
dataDisplayConverter
- 
checkFixedDataLengthGlobal variables for GUI components
- 
checkCustomNotation
- 
checkScientificNotation
- 
checkHex
- 
checkBin
- 
checkEnum
- 
indexBaseGroup
- 
cellValueField
- 
cellLabel
 
- 
- 
Constructor Details- 
DefaultBaseTableViewConstructs a base TableView with no additional data properties.- Parameters:
- theView- the main HDFView.
 
- 
DefaultBaseTableViewConstructs a base TableView with the specified data properties.- Parameters:
- theView- the main HDFView.
- dataPropertiesMap- the properties on how to show the data. The map is used to allow applications to pass properties on how to display the data, such as: transposing data, showing data as characters, applying a bitmask, and etc. Predefined keys are listed at ViewProperties.DATA_VIEW_KEY.
 
 
- 
- 
Method Details- 
createMenuBar
- 
loadData- Throws:
- Exception
 
- 
createTableprotected abstract org.eclipse.nebula.widgets.nattable.NatTable createTable(org.eclipse.swt.widgets.Composite parent, DataFormat dataObject)
- 
showObjRefData
- 
showRegRefData
- 
NewshowObjRefDataDisplay data pointed to by object references. Data of each object is shown in a separate spreadsheet.- Parameters:
- ref- the array of strings that contain the object reference information.
 
- 
NewshowRegRefDataDisplay data pointed to by region references. Data of each region is shown in a separate spreadsheet. The reg. ref. information is stored in strings of the format below:- For point selections: "file_id:obj_id { [point1] [point2] ...) }", where[point1]is in the form of (location_of_dim0, location_of_dim1, ...). For example,0:800 { (0,1) (2,11) (1,0) (2,4) }
- For rectangle selections: "file_id:obj_id { [corner coordinates1] [corner coordinates2] ... }", where [corner coordinates1] is in the form of (start_corner)-(oposite_corner). For example,0:800 { (0,0)-(0,2) (0,11)-(0,13) (2,0)-(2,2) (2,11)-(2,13) }
 - Parameters:
- reg- the array of strings that contain the reg. ref information.
 
- For point selections: "
- 
getDataEditingRuleprotected abstract org.eclipse.nebula.widgets.nattable.config.IEditableRule getDataEditingRule(DataFormat dataObject)
- 
updateDataConversionSettings
- 
updateValueInFileUpdate dataset's value in file. The changes will go to the file.- Specified by:
- updateValueInFilein interface- TableView
 
- 
getDataObject- Specified by:
- getDataObjectin interface- DataView
- Returns:
- the data object displayed in this data viewer
 
- 
getTable
- 
getSelectedRowCount- Specified by:
- getSelectedRowCountin interface- TableView
 
- 
getSelectedColumnCount- Specified by:
- getSelectedColumnCountin interface- TableView
 
- 
getSelectionLayer
- 
getDataLayer
- 
saveAsTextSave data as text.- Throws:
- Exception- if a failure occurred
 
- 
saveAsBinarySave data as binary.- Throws:
- Exception- if a failure occurred
 
- 
importTextDataImport data values from text file.- Parameters:
- fname- the file to import text from
 
- 
importBinaryDataImport data values from binary file.
 
-