|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MutableNdx
Extends the Ndx interface to provide methods for setting the data and metadata.
Method Summary | |
---|---|
void |
setBadBits(int badbits)
Sets the bad bits mask for this Ndx. |
void |
setEtc(Node etc)
Sets the Etc component of this Ndx. |
void |
setImage(NDArray image)
Sets the Image component of this Ndx. |
void |
setLabel(String label)
Sets the label component of this Ndx. |
void |
setQuality(NDArray quality)
Sets the Quality component of this Ndx. |
void |
setTitle(String title)
Sets the title component of this Ndx. |
void |
setUnits(String units)
Sets the units component of this Ndx. |
void |
setVariance(NDArray variance)
Sets the Variance component of this Ndx. |
void |
setWCS(Object wcs)
Sets the WCS component of this Ndx. |
Methods inherited from interface uk.ac.starlink.ndx.Ndx |
---|
getAst, getBadBits, getEtc, getHdxFacade, getImage, getLabel, getQuality, getTitle, getUnits, getVariance, hasEtc, hasLabel, hasQuality, hasTitle, hasUnits, hasVariance, hasWCS, isPersistent, toXML |
Method Detail |
---|
void setImage(NDArray image)
image
- the new Image component
NullPointerException
- if image is nullvoid setVariance(NDArray variance)
variance
- the new Variance componentvoid setQuality(NDArray quality)
quality
- the new Quality component
IllegalArgumentException
- if quality is an NDArray
with a Type
other than
Type.BYTE, Type.SHORT or Type.INTvoid setTitle(String title)
title
- the new title.
If null, this Ndx will be considered to have no titlevoid setLabel(String label)
label
- the new label.
if null, this Ndx will be considered to have no labelvoid setUnits(String units)
units
- the new units string.
if null, this Ndx will be considered to have no
units componentvoid setBadBits(int badbits)
badbits
- the new bad bits maskvoid setWCS(Object wcs)
wcs
- an object representing the new WCS component
If null, a default WCS will be used
IllegalArgumentException
- if wcs is not one of
the permitted types or otherwise fails to represent a legal
WCS componentvoid setEtc(Node etc)
etc
- the new user-defined extensions component as a DOM node.
If null, this Ndx will be considered to have no
extensions
IllegalArgumentException
- if etc is not an Element
or Document of type <etc>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |