org.deegree.graphics.sld
Class RasterSymbolizer
java.lang.Object
org.deegree.graphics.sld.AbstractSymbolizer
org.deegree.graphics.sld.RasterSymbolizer
- All Implemented Interfaces:
- Marshallable, Symbolizer
public class RasterSymbolizer
- extends AbstractSymbolizer
- implements Marshallable
RasterSymbolizer
encapsulates the Symbology Encoding values that may have been set.
Note that everything is optional, so all values may be null.
- Version:
- $Revision: 18404 $, $Date: 2009-07-09 10:27:49 +0200 (Do, 09 Jul 2009) $
- Author:
- Andreas Schmitz, last edited by: $Author: lbuesching $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RasterSymbolizer
public RasterSymbolizer()
- Initializes nothing.
RasterSymbolizer
public RasterSymbolizer(double min,
double max)
- Parameters:
min
- max
-
setOpacity
public void setOpacity(ParameterValueType opac)
- Parameters:
opac
-
getOpacity
public double getOpacity()
- Returns:
- the opacity or 1, if none was set
setCategorize
public void setCategorize(Categorize categorize)
- Parameters:
categorize
-
setInterpolate
public void setInterpolate(Interpolate interpolate)
- Parameters:
interpolate
-
getCategorize
public Categorize getCategorize()
- Returns:
- the categorize
getInterpolate
public Interpolate getInterpolate()
- Returns:
- the interpolate
isDefault
public boolean isDefault()
- Returns:
- true, if none of the options has been set (scale is ignored)
setShaded
public void setShaded(boolean shaded)
- Parameters:
shaded
-
getShaded
public boolean getShaded()
- Returns:
- true, if the symbolization should be shaded
scaleValid
public boolean scaleValid(double scale)
- Parameters:
scale
-
- Returns:
- true, if no scale hints have been set or if the given scale is valid
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
setShadeKernel
public void setShadeKernel(int dim,
float[] kernel)
- Parameters:
dim
- kernel
-
getShadeKernel
public Pair<java.lang.Integer,float[]> getShadeKernel()
- Returns:
- the shade kernel to be used
setGamma
public void setGamma(double gamma)
- Parameters:
gamma
-
getGamma
public double getGamma()
- Returns:
- the gamma value
exportAsXML
public java.lang.String exportAsXML()
- exports the content of the RasterSymbolizer as XML formated String. At the moment only the
export of opacity and gamma value is supported!
- Specified by:
exportAsXML
in interface Marshallable
- Returns:
- xml representation of the RasterSymbolizer
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org