public class NDArrayDataNode extends DefaultDataNode
| Constructor and Description |
|---|
NDArrayDataNode(NDArray nda) |
NDArrayDataNode(String loc) |
| Modifier and Type | Method and Description |
|---|---|
static String |
boundsString(NDShape shape) |
void |
configureDetail(DetailViewer dv)
No custom configuration is performed.
|
Object |
getDataObject(DataType dtype)
The
DefaultDataNode implementation returns any data object
which has been registered using DefaultDataNode.registerDataObject(uk.ac.starlink.datanode.nodes.DataType, java.lang.Object). |
String |
getDescription()
Gets a concise description of this object.
|
String |
getNodeTLA()
The
DefaultDataNode implementation returns the string "...". |
String |
getNodeType()
Returns a short sentence indicating what kind of node this is.
|
String |
getPathElement()
The
DefaultDataNode implementation
returns the label as a default path element. |
String |
getPathSeparator()
Returns a default separator string.
|
boolean |
hasDataObject(DataType dtype)
The
DefaultDataNode implementation returns true for
only those data objects which have been registered using
DefaultDataNode.registerDataObject(uk.ac.starlink.datanode.nodes.DataType, java.lang.Object). |
allowsChildren, beep, getChildIterator, getChildMaker, getCreator, getIcon, getLabel, getName, getParentObject, makeChild, makeErrorChild, registerDataObject, setChildMaker, setCreator, setDescription, setIconID, setLabel, setName, setParentObject, toStringpublic NDArrayDataNode(NDArray nda)
public NDArrayDataNode(String loc) throws NoSuchDataException
NoSuchDataExceptionpublic String getDescription()
DataNodegetName method, since they may be presented together.
It should be on one line, and preferably no longer than around
70 characters. The null value may be returned if
there is nothing to say.getDescription in interface DataNodegetDescription in class DefaultDataNodepublic String getPathElement()
DefaultDataNodeDefaultDataNode implementation
returns the label as a default path element.getPathElement in interface DataNodegetPathElement in class DefaultDataNodepublic String getPathSeparator()
DefaultDataNodegetPathSeparator in interface DataNodegetPathSeparator in class DefaultDataNodepublic String getNodeTLA()
DefaultDataNodeDefaultDataNode implementation returns the string "...".getNodeTLA in interface DataNodegetNodeTLA in class DefaultDataNodepublic String getNodeType()
DataNodegetNodeType in interface DataNodegetNodeType in class DefaultDataNodeDataNodepublic void configureDetail(DetailViewer dv)
DefaultDataNodeconfigureDetail in interface DataNodeconfigureDetail in class DefaultDataNodedv - the detail viewer which this node is given an opportunity
to configurepublic boolean hasDataObject(DataType dtype)
DefaultDataNodeDefaultDataNode implementation returns true for
only those data objects which have been registered using
DefaultDataNode.registerDataObject(uk.ac.starlink.datanode.nodes.DataType, java.lang.Object).hasDataObject in interface DataNodehasDataObject in class DefaultDataNodedtype - data object type of interestgetDataObject(type) is likely to be successfulpublic Object getDataObject(DataType dtype) throws DataObjectException
DefaultDataNodeDefaultDataNode implementation returns any data object
which has been registered using DefaultDataNode.registerDataObject(uk.ac.starlink.datanode.nodes.DataType, java.lang.Object).getDataObject in interface DataNodegetDataObject in class DefaultDataNodedtype - data object type of interesttypeDataObjectExceptionCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.