Object
hdf.view.TableView.DefaultBaseTableView
hdf.view.TableView.DefaultScalarDSTableView
A class to construct a ScalarDS TableView.
-
Nested Class Summary
Nested classes/interfaces inherited from class hdf.view.TableView.DefaultBaseTableView
DefaultBaseTableView.ColumnHeader, DefaultBaseTableView.EditingGridLayer, DefaultBaseTableView.RefContextMenu, DefaultBaseTableView.RowHeader, DefaultBaseTableView.RowHeaderDataProvider, DefaultBaseTableView.ViewType -
Field Summary
Fields inherited from class hdf.view.TableView.DefaultBaseTableView
binaryOrder, bitmask, bitmaskOP, cellLabel, cellValueField, checkBin, checkCustomNotation, checkEnum, checkFixedDataLength, checkHex, checkScientificNotation, columnHeaderDataProvider, curFont, customFormat, dataDisplayConverter, dataLayer, dataObject, dataProvider, dataTable, dataValue, fillValue, fixedDataLength, indexBase, indexBaseGroup, isDataTransposed, isDisplayTypeChar, isEnumConverted, isObjRef, isReadOnly, isRegRef, isStdRef, normalFormat, numberFormat, rowHeaderDataProvider, scientificFormat, selectionLayer, shell, showAsBin, showAsHex, viewer, viewTypeFields inherited from interface hdf.view.DataView.DataView
DATAVIEW_IMAGE, DATAVIEW_TABLE, DATAVIEW_UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionDefaultScalarDSTableView(DataViewManager theView) Constructs a ScalarDS TableView with no additional data properties.DefaultScalarDSTableView(DataViewManager theView, HashMap dataPropertiesMap) Constructs a ScalarDS TableView with the specified data properties. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.swt.widgets.MenucreateMenuBar(org.eclipse.swt.widgets.Shell theShell) Creates the menubar for the Shell.protected org.eclipse.nebula.widgets.nattable.NatTablecreateTable(org.eclipse.swt.widgets.Composite parent, DataFormat dataObject) Creates a NatTable for a Scalar dataset.protected org.eclipse.nebula.widgets.nattable.config.IEditableRulegetDataEditingRule(DataFormat dataObject) Returns an IEditableRule that determines whether cells can be edited.Returns the selected data values of the ScalarDSprotected voidloadData(DataFormat dataObject) Loads the data buffer of an object.protected voidshowAttrStdRefData(String ref_obj_name, String ref_attr_name) Display data pointed to by attribute references.protected voidshowObjRefData(byte[] refarr) Display data pointed to by object references.protected voidshowObjStdRefData(String ref) Display data pointed to by object references.protected voidshowRegRefData(byte[] refarr) Display data pointed to by region references.protected voidshowStdRefData(byte[] refarr) Display data pointed to by references.Methods inherited from class hdf.view.TableView.DefaultBaseTableView
getDataLayer, getDataObject, getSelectedColumnCount, getSelectedRowCount, getSelectionLayer, getTable, importBinaryData, importTextData, refreshDataTable, saveAsBinary, saveAsText, updateDataConversionSettings, updateValueInFileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hdf.view.DataView.DataView
getDataObjectMethods inherited from interface hdf.view.TableView.TableView
getSelectedColumnCount, getSelectedRowCount, getTable, refreshDataTable, updateValueInFile
-
Constructor Details
-
DefaultScalarDSTableView
Constructs a ScalarDS TableView with no additional data properties.- Parameters:
theView- the main HDFView.
-
DefaultScalarDSTableView
Constructs a ScalarDS 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
-
loadData
Description copied from class:DefaultBaseTableViewLoads the data buffer of an object.- Overrides:
loadDatain classDefaultBaseTableView- Parameters:
dataObject- the object that has the buffer for the data.- Throws:
Exception- if a failure occurred
-
createMenuBar
Creates the menubar for the Shell.- Overrides:
createMenuBarin classDefaultBaseTableView- Parameters:
theShell- the reference to the display shell- Returns:
- the newly created menu
-
createTable
protected org.eclipse.nebula.widgets.nattable.NatTable createTable(org.eclipse.swt.widgets.Composite parent, DataFormat dataObject) Creates a NatTable for a Scalar dataset.- Specified by:
createTablein classDefaultBaseTableView- Parameters:
parent- The parent for the NatTabledataObject- The Scalar dataset for the NatTable to display- Returns:
- The newly created NatTable
-
getSelectedData
Returns the selected data values of the ScalarDS- Specified by:
getSelectedDatain interfaceTableView- Returns:
- array of selected data
-
getDataEditingRule
protected org.eclipse.nebula.widgets.nattable.config.IEditableRule getDataEditingRule(DataFormat dataObject) Returns an IEditableRule that determines whether cells can be edited. Cells can be edited as long as the dataset is not opened in read-only mode and the data is not currently displayed in hexadecimal, binary, or character mode.- Specified by:
getDataEditingRulein classDefaultBaseTableView- Parameters:
dataObject- The dataset for editing- Returns:
- a new IEditableRule for the dataset
-
showObjRefData
Display data pointed to by object references. Data of each object is shown in a separate spreadsheet.- Specified by:
showObjRefDatain classDefaultBaseTableView- Parameters:
refarr- the array of bytes that contain the object reference information.
-
showRegRefData
Display data pointed to by region references. Data of each region is shown in a separate spreadsheet.- Specified by:
showRegRefDatain classDefaultBaseTableView- Parameters:
refarr- the array of bytes that contain the reg. ref information.
-
showStdRefData
Display data pointed to by references. Data of each reference is shown in a separate spreadsheet. The std. ref. information is stored in bytes- Specified by:
showStdRefDatain classDefaultBaseTableView- Parameters:
refarr- the array of bytes that contain the std. ref information.
-
showObjStdRefData
Display data pointed to by object references. Data of each object is shown in a separate spreadsheet.- Parameters:
ref- the string that contain the object reference information.
-
showAttrStdRefData
Display data pointed to by attribute references. Data of each object is shown in a separate spreadsheet.- Parameters:
ref_obj_name- the string that contain the attribute reference information.ref_attr_name- the string that contain the attribute reference information.
-