deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.graphics.sld
Class Interpolate

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

public class Interpolate
extends java.lang.Object

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

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

Constructor Summary
Interpolate(java.lang.String fallbackValue)
           
 
Method Summary
 java.lang.String getFallbackValue()
           
 ParameterValueType getLookupValue()
           
 SLDFactory.Method getMethod()
           
 SLDFactory.Mode getMode()
           
 int interpolate(float d, int opac)
           
 void setInterpolationPoints(java.util.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(java.lang.String fallbackValue)
Parameters:
fallbackValue -
Method Detail

setLookupValue

public void setLookupValue(ParameterValueType lookupValue)
Parameters:
lookupValue -

getFallbackValue

public java.lang.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(java.util.List<InterpolationPoint> points)
Parameters:
points -

deegree 2.5 (2011/06/29 09:44 build-8-official)

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