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, toString
public NDArrayDataNode(NDArray nda)
public NDArrayDataNode(String loc) throws NoSuchDataException
NoSuchDataException
public String getDescription()
DataNode
getName
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 DataNode
getDescription
in class DefaultDataNode
public String getPathElement()
DefaultDataNode
getPathElement
in interface DataNode
getPathElement
in class DefaultDataNode
public String getPathSeparator()
DefaultDataNode
getPathSeparator
in interface DataNode
getPathSeparator
in class DefaultDataNode
public String getNodeTLA()
DefaultDataNode
getNodeTLA
in interface DataNode
getNodeTLA
in class DefaultDataNode
public String getNodeType()
DataNode
getNodeType
in interface DataNode
getNodeType
in class DefaultDataNode
DataNode
public void configureDetail(DetailViewer dv)
DefaultDataNode
configureDetail
in interface DataNode
configureDetail
in class DefaultDataNode
dv
- the detail viewer which this node is given an opportunity
to configurepublic boolean hasDataObject(DataType dtype)
DefaultDataNode
DefaultDataNode.registerDataObject(uk.ac.starlink.datanode.nodes.DataType, java.lang.Object)
.hasDataObject
in interface DataNode
hasDataObject
in class DefaultDataNode
dtype
- data object type of interestpublic Object getDataObject(DataType dtype) throws DataObjectException
DefaultDataNode
DefaultDataNode.registerDataObject(uk.ac.starlink.datanode.nodes.DataType, java.lang.Object)
.getDataObject
in interface DataNode
getDataObject
in class DefaultDataNode
dtype
- data object type of interestDataObjectException
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.