public class TfitsHduDataNode extends DefaultDataNode
Constructor and Description |
---|
TfitsHduDataNode(FitsHeader hdr,
int ihdu,
StarTable table)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowsChildren()
The
DefaultDataNode implementation of this method returns
false . |
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.
|
protected FitsHeader |
getHeader() |
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.
|
StarTable |
getStarTable() |
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) . |
boolean |
isStarTable() |
beep, getChildIterator, getChildMaker, getCreator, getIcon, getLabel, getName, getParentObject, makeChild, makeErrorChild, registerDataObject, setChildMaker, setCreator, setDescription, setIconID, setLabel, setName, setParentObject, toString
public TfitsHduDataNode(FitsHeader hdr, int ihdu, StarTable table)
hdr
- FITS headerihdu
- HDU indextable
- table object, or null for a non-table HDUpublic boolean allowsChildren()
DefaultDataNode
DefaultDataNode
implementation of this method returns
false
.allowsChildren
in interface DataNode
allowsChildren
in class DefaultDataNode
true
if the node is of a type which can have
child nodes, false
otherwisepublic 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 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 getNodeTLA()
DefaultDataNode
DefaultDataNode
implementation returns the string "...".getNodeTLA
in interface DataNode
getNodeTLA
in class DefaultDataNode
public String getNodeType()
DataNode
getNodeType
in interface DataNode
getNodeType
in class DefaultDataNode
DataNode
public String getPathSeparator()
DefaultDataNode
getPathSeparator
in interface DataNode
getPathSeparator
in class DefaultDataNode
public String getPathElement()
DefaultDataNode
DefaultDataNode
implementation
returns the label as a default path element.getPathElement
in interface DataNode
getPathElement
in class DefaultDataNode
public StarTable getStarTable()
public boolean isStarTable()
public boolean hasDataObject(DataType dtype)
DefaultDataNode
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)
.hasDataObject
in interface DataNode
hasDataObject
in class DefaultDataNode
dtype
- data object type of interestgetDataObject(type)
is likely to be successfulpublic Object getDataObject(DataType dtype) throws DataObjectException
DefaultDataNode
DefaultDataNode
implementation returns any data object
which has been registered using DefaultDataNode.registerDataObject(uk.ac.starlink.datanode.nodes.DataType, java.lang.Object)
.getDataObject
in interface DataNode
getDataObject
in class DefaultDataNode
dtype
- data object type of interesttype
DataObjectException
protected FitsHeader getHeader()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.