org.deegree_impl.model.cv
Class CMYKEntry_Impl

java.lang.Object
  extended byorg.deegree_impl.model.cv.PseudoColorTableEntry_Impl
      extended byorg.deegree_impl.model.cv.CMYKEntry_Impl
All Implemented Interfaces:
CMYKEntry, PseudoColorTableEntry

public class CMYKEntry_Impl
extends PseudoColorTableEntry_Impl
implements CMYKEntry

describes an entry to a color table in CMYK format

-----------------------------------------------------------------------

Version:
$Revision: 1.2 $ $Date: 2004/01/03 13:46:46 $

Author:
Andreas Poth

Field Summary
private  float black
           
private  float cyan
           
private  float magenta
           
private  float yellow
           
 
Constructor Summary
CMYKEntry_Impl(int index, float cyan, float magenta, float yellow, float black)
           
 
Method Summary
 float getBlack()
          returns the black component (0..1)
 float getCyan()
          returns the cyan component (0..1)
 int getIndex()
          returns the index of the color table entry
 float getMagenta()
          returns the magenta component (0..1)
 float getYellow()
          returns the yellow component (0..1)
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deegree.model.coverage.PseudoColorTableEntry
getIndex
 

Field Detail

black

private float black

cyan

private float cyan

magenta

private float magenta

yellow

private float yellow
Constructor Detail

CMYKEntry_Impl

public CMYKEntry_Impl(int index,
                      float cyan,
                      float magenta,
                      float yellow,
                      float black)
Method Detail

getBlack

public float getBlack()
returns the black component (0..1)

Specified by:
getBlack in interface CMYKEntry

getCyan

public float getCyan()
returns the cyan component (0..1)

Specified by:
getCyan in interface CMYKEntry

getMagenta

public float getMagenta()
returns the magenta component (0..1)

Specified by:
getMagenta in interface CMYKEntry

getYellow

public float getYellow()
returns the yellow component (0..1)

Specified by:
getYellow in interface CMYKEntry

toString

public java.lang.String toString()
Overrides:
toString in class PseudoColorTableEntry_Impl

getIndex

public int getIndex()
returns the index of the color table entry

Specified by:
getIndex in interface PseudoColorTableEntry