|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dicom4j.data.elements.support.DataElement
org.dicom4j.data.elements.FloatingPointDouble
public class FloatingPointDouble
A concrete class specializing
Attribute for Float Double (FD)
attributes.
Though an instance of this class may be created using its constructors, there
is also a factory class,
AttributeFactory.
DataElement,
DataElementFactory| Constructor Summary | |
|---|---|
FloatingPointDouble(DicomTag t)
Construct an (empty) attribute. |
|
| Method Summary | |
|---|---|
void |
addValue(double v)
Add a(nother) double value after any existing values of this attribute. |
double[] |
getDoubleValues()
Get the values of this attribute as a double array. |
String[] |
getStringValues(NumberFormat format)
Get the values of this attribute as strings. |
ValueRepresentation |
getValueRepresentation()
Return the value representation of this data element |
void |
read(DicomInputStream aStream,
long aLength,
SpecificCharacterSet aCharacterSet)
|
String |
toString()
Dump the contents of the attribute as a human-readable string. |
void |
write(DicomOutputStream o)
Write the entire attribute (including values) to the output stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FloatingPointDouble(DicomTag t)
Construct an (empty) attribute.
t - the tag of the attribute| Method Detail |
|---|
public void addValue(double v)
throws DicomException
DataElement
addValue in class DataElementv -
DicomException
public double[] getDoubleValues()
throws DicomException
DataElementGet the values of this attribute as a double array.
getDoubleValues in class DataElementDicomException
public String[] getStringValues(NumberFormat format)
throws DicomException
DataElementGet the values of this attribute as strings.
The strings may have been cleaned up into a canonical form, such as to remove padding as well as numbers formatted.
getStringValues in class DataElementformat - the format to use for each numerical or decimal value
String
DicomExceptionpublic ValueRepresentation getValueRepresentation()
getValueRepresentation in class DataElement
public void read(DicomInputStream aStream,
long aLength,
SpecificCharacterSet aCharacterSet)
throws IOException,
DicomException
read in class DataElementvl - i -
IOException
DicomExceptionpublic String toString()
DataElementDump the contents of the attribute as a human-readable string.
No new line is appended.
The result is of the form:
(0xgggg,0xeeee) VR=<XX> VL=<0xnnnn> <...>
For example:
(0x0018,0x0020) VR=<CS> VL=<0x2> <GR>
toString in class DataElementString value
public void write(DicomOutputStream o)
throws DicomException,
IOException
DataElementWrite the entire attribute (including values) to the output stream.
write in class DataElemento -
IOException
DicomException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||