org.deegree_impl.model.cv
Class HLSEntry_Impl

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

public class HLSEntry_Impl
extends PseudoColorTableEntry_Impl
implements HLSEntry

HLS entry of a color table

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

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

Author:
Andreas Poth

Field Summary
private  float hue
           
private  float lightness
           
private  float saturation
           
 
Constructor Summary
HLSEntry_Impl(int index, float hue, float lightness, float saturation)
           
 
Method Summary
 float getHue()
          returns the hue value of a HLS entry (0..1)
 int getIndex()
          returns the index of the color table entry
 float getLightness()
          returns the lightness value of a HLS entry (0..1)
 float getSaturation()
          returns the saturation value of a HLS entry (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

hue

private float hue

lightness

private float lightness

saturation

private float saturation
Constructor Detail

HLSEntry_Impl

public HLSEntry_Impl(int index,
                     float hue,
                     float lightness,
                     float saturation)
Method Detail

getHue

public float getHue()
returns the hue value of a HLS entry (0..1)

Specified by:
getHue in interface HLSEntry

getLightness

public float getLightness()
returns the lightness value of a HLS entry (0..1)

Specified by:
getLightness in interface HLSEntry

getSaturation

public float getSaturation()
returns the saturation value of a HLS entry (0..1)

Specified by:
getSaturation in interface HLSEntry

getIndex

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

Specified by:
getIndex in interface PseudoColorTableEntry

toString

public java.lang.String toString()