public class ColorPalette
extends java.lang.Object
A class to encapsulate color palettes, including serialization and deserialization to and from standard DICOM color palette IODs.
May be used as a base class for specific standard or private color palettes.
Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
alternateContentDescription |
protected java.lang.String[] |
alternateContentLanguageCodeMeaning |
protected java.lang.String[] |
alternateContentLanguageCodeValue |
protected byte[] |
blue |
protected java.lang.String |
contentCreatorName |
protected java.lang.String |
contentDescription |
protected java.lang.String |
contentLabel |
protected byte[] |
green |
protected byte[] |
iccProfile |
protected AttributeList |
list |
protected byte[] |
red |
protected java.lang.String |
referenceEncodedInstanceURL |
protected java.lang.String |
sopInstanceUID |
Modifier | Constructor and Description |
---|---|
protected |
ColorPalette() |
Modifier and Type | Method and Description |
---|---|
protected void |
createDICOMInstance(java.lang.String dicomFileName,
java.lang.String iccProfileFileName,
java.lang.String aet)
Create a DICOM color palette storage instance from the palette characteristics.
|
AttributeList |
getAttributeList() |
java.lang.String |
getContentDescription() |
java.lang.String |
getContentLabel() |
byte[] |
getICCProfile() |
java.lang.String |
getReferenceEncodedInstanceURL() |
java.lang.String |
getSOPInstanceUID() |
void |
setICCProfileFromFile(java.lang.String filename) |
protected java.lang.String[] alternateContentDescription
protected java.lang.String[] alternateContentLanguageCodeMeaning
protected java.lang.String[] alternateContentLanguageCodeValue
protected byte[] blue
protected java.lang.String contentCreatorName
protected java.lang.String contentDescription
protected java.lang.String contentLabel
protected byte[] green
protected byte[] iccProfile
protected AttributeList list
protected byte[] red
protected java.lang.String referenceEncodedInstanceURL
protected java.lang.String sopInstanceUID
protected void createDICOMInstance(java.lang.String dicomFileName, java.lang.String iccProfileFileName, java.lang.String aet) throws java.io.IOException, DicomException
Create a DICOM color palette storage instance from the palette characteristics.
dicomFileName
- to writeiccProfileFileName
- to readaet
- our Application Entity Title to include in the metaheaderjava.io.IOException
- if an I/O error occursDicomException
- if error in DICOM encodingpublic AttributeList getAttributeList() throws DicomException
DicomException
public java.lang.String getContentDescription()
public java.lang.String getContentLabel()
public byte[] getICCProfile()
public java.lang.String getReferenceEncodedInstanceURL()
public java.lang.String getSOPInstanceUID()
public void setICCProfileFromFile(java.lang.String filename) throws java.io.IOException
java.io.IOException