Object
hdf.view.MetaDataView.DefaultBaseMetaDataView
- All Implemented Interfaces:
DataView,MetaDataView
- Direct Known Subclasses:
DefaultLinkMetaDataView
DefaultBaseMetaDataView is a default implementation of the MetaDataView which
is used to show data properties of an object. Data properties include
attributes and general object information such as the object type, data type
and data space.
This base class is responsible for displaying an object's general information
and attributes, since these are not object-specific. Subclasses of this class
are responsible for displaying any extra object-specific content by
overriding the addObjectSpecificContent() method.
- Version:
- 1.0 4/20/2018
- Author:
- Jordan T. Henderson
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.eclipse.swt.widgets.CompositeThe attribute metadata paneprotected final org.eclipse.swt.widgets.TabFolderThe metadata containerprotected org.eclipse.swt.graphics.FontThe current fontprotected HObjectThe HDF data objectprotected final org.eclipse.swt.widgets.DisplayThe default displayprotected final org.eclipse.swt.widgets.CompositeThe general metadata paneprotected booleanThe HDF data object is hdf4 typeprotected booleanThe HDF data object is hdf5 typeprotected booleanThe HDF data object is netcdf typeprotected final DataViewManagerThe view manger referenceFields inherited from interface hdf.view.DataView.DataView
DATAVIEW_IMAGE, DATAVIEW_TABLE, DATAVIEW_UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionDefaultBaseMetaDataView(org.eclipse.swt.widgets.Composite parentComposite, DataViewManager viewer, HObject theObj) The metadata view interface for displaying metadata information -
Method Summary
Modifier and TypeMethodDescriptionaddAttribute(HObject obj) Add an attribute to a data object.protected abstract voidAdditional metadata to displaydeleteAttribute(HObject obj) Delete an attribute from a data object.Get the data object displayed in this data viewervoidupdateFont(org.eclipse.swt.graphics.Font font) Updates the current font.
-
Field Details
-
display
The default display -
viewManager
The view manger reference -
contentTabFolder
The metadata container -
attributeInfoPane
The attribute metadata pane -
generalObjectInfoPane
The general metadata pane -
curFont
The current font -
dataObject
The HDF data object -
isH5
The HDF data object is hdf5 type -
isH4
The HDF data object is hdf4 type -
isN3
The HDF data object is netcdf type
-
-
Constructor Details
-
DefaultBaseMetaDataView
public DefaultBaseMetaDataView(org.eclipse.swt.widgets.Composite parentComposite, DataViewManager viewer, HObject theObj) The metadata view interface for displaying metadata information- Parameters:
parentComposite- the parent visual objectviewer- the viewer to usetheObj- the object to display the metadata info
-
-
Method Details
-
addObjectSpecificContent
Additional metadata to display -
getDataObject
Description copied from interface:DataViewGet the data object displayed in this data viewer- Specified by:
getDataObjectin interfaceDataView- Returns:
- the data object displayed in this data viewer
-
addAttribute
Description copied from interface:MetaDataViewAdd an attribute to a data object.- Specified by:
addAttributein interfaceMetaDataView- Parameters:
obj- the attribute to add- Returns:
- the Attribute object
-
deleteAttribute
Description copied from interface:MetaDataViewDelete an attribute from a data object.- Specified by:
deleteAttributein interfaceMetaDataView- Parameters:
obj- the attribute to delte- Returns:
- the Attribute object
-
updateFont
Updates the current font.- Parameters:
font- the new font
-