org.deegree_impl.model.cv
Class RGBAEnty_Impl

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

class RGBAEnty_Impl
extends PseudoColorTableEntry_Impl
implements RGBAEnty

the interface defines a RGBA entry to a color table

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

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

Author:
Andreas Poth

Field Summary
private  float alpha
           
private  float blue
           
private  float green
           
private  float red
           
 
Constructor Summary
(package private) RGBAEnty_Impl(int index, float red, float green, float blue, float alpha)
           
 
Method Summary
 float getAlpha()
          returns the alpha component of the color table entry (0..1)
 float getBlue()
          returns the blue component of the color table entry (0..1)
 float getGreen()
          returns the green component of the color table entry (0..1)
 int getIndex()
          returns the index of the color table entry
 float getRed()
          returns the red component of the color table 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

red

private float red

green

private float green

blue

private float blue

alpha

private float alpha
Constructor Detail

RGBAEnty_Impl

RGBAEnty_Impl(int index,
              float red,
              float green,
              float blue,
              float alpha)
Method Detail

getRed

public float getRed()
returns the red component of the color table entry (0..1)

Specified by:
getRed in interface RGBAEnty

getGreen

public float getGreen()
returns the green component of the color table entry (0..1)

Specified by:
getGreen in interface RGBAEnty

getBlue

public float getBlue()
returns the blue component of the color table entry (0..1)

Specified by:
getBlue in interface RGBAEnty

getAlpha

public float getAlpha()
returns the alpha component of the color table entry (0..1)

Specified by:
getAlpha in interface RGBAEnty

getIndex

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

Specified by:
getIndex in interface PseudoColorTableEntry

toString

public java.lang.String toString()