deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.graphics.sld
Class Interpolate

java.lang.Object
  extended by org.deegree.graphics.sld.Interpolate

public class Interpolate
extends Object

Interpolate encapsulates data from the Symbology Encoding Schema (InterpolateType).

Version:
$Revision:$, $Date:$
Author:
Andreas Schmitz, last edited by: $Author:$

Constructor Summary
Interpolate(String fallbackValue)
           
 
Method Summary
 String getFallbackValue()
           
 ParameterValueType getLookupValue()
           
 SLDFactory.Method getMethod()
           
 SLDFactory.Mode getMode()
           
 int interpolate(float d, int opac)
           
 void setInterpolationPoints(List<InterpolationPoint> points)
           
 void setLookupValue(ParameterValueType lookupValue)
           
 void setMethod(SLDFactory.Method method)
           
 void setMode(SLDFactory.Mode mode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interpolate

public Interpolate(String fallbackValue)
Parameters:
fallbackValue -
Method Detail

setLookupValue

public void setLookupValue(ParameterValueType lookupValue)
Parameters:
lookupValue -

getFallbackValue

public String getFallbackValue()
Returns:
the fallbackValue

getLookupValue

public ParameterValueType getLookupValue()
Returns:
the lookupValue

getMethod

public SLDFactory.Method getMethod()
Returns:
the method

getMode

public SLDFactory.Mode getMode()
Returns:
the mode

setMode

public void setMode(SLDFactory.Mode mode)
Parameters:
mode -

setMethod

public void setMethod(SLDFactory.Method method)
Parameters:
method -

interpolate

public int interpolate(float d,
                       int opac)
Parameters:
d -
opac - the default opacity if none has been set
Returns:
the color value as int

setInterpolationPoints

public void setInterpolationPoints(List<InterpolationPoint> points)
Parameters:
points -

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org