ucar.jpeg.icc.tags
Class ICCXYZType

java.lang.Object
  extended by ucar.jpeg.icc.tags.ICCTag
      extended by ucar.jpeg.icc.tags.ICCXYZType
Direct Known Subclasses:
ICCXYZTypeReverse

public class ICCXYZType
extends ICCTag

A tag containing a triplet.

Version:
1.0
Author:
Bruce A. Kern
See Also:
jj2000.j2k.icc.tags.ICCXYZTypeReverse, jj2000.j2k.icc.types.XYZNumber

Field Summary
 long x
          x component
 long y
          y component
 long z
          z component
 
Fields inherited from class ucar.jpeg.icc.tags.ICCTag
count, data, offset, signature, type
 
Constructor Summary
protected ICCXYZType(int signature, byte[] data, int offset, int length)
          Construct this tag from its constituant parts
 
Method Summary
static long DoubleToXYZ(double x)
          Normalization utility
 String toString()
          Return the string rep of this tag.
 void write(RandomAccessFile raf)
          Write to a file.
static double XYZToDouble(long x)
          Normalization utility
 
Methods inherited from class ucar.jpeg.icc.tags.ICCTag
createInstance, signatureString, typeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public final long x
x component


y

public final long y
y component


z

public final long z
z component

Constructor Detail

ICCXYZType

protected ICCXYZType(int signature,
                     byte[] data,
                     int offset,
                     int length)
Construct this tag from its constituant parts

Parameters:
signature - tag id
data - array of bytes
offset - to data in the data array
length - of data in the data array
Method Detail

DoubleToXYZ

public static long DoubleToXYZ(double x)
Normalization utility


XYZToDouble

public static double XYZToDouble(long x)
Normalization utility


toString

public String toString()
Return the string rep of this tag.

Overrides:
toString in class ICCTag

write

public void write(RandomAccessFile raf)
           throws IOException
Write to a file.

Throws:
IOException


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.