| |
|
| java.lang.Object org.deegree.graphics.displayelements.ScaledFeature
ScaledFeature | public class ScaledFeature implements Feature(Code) | | This class is a wrapper for a Feature and a Feature itself.
It adds a special behavior/property to a feature that is required by deegree DisplayElements.
This special behavior is an additional property named "$SCALE". In opposite to conventional
properties this one can change its value during lifetime of a feature without changing the
underlying feature itself.
The class is use to offer users the opportunity to use the scale of a map within expressions
embedded in SLD rules/symbolizers, i.e. this enables a user to define that a symbol shall appear
in 10m size independ of a map's scale.
author: Andreas Poth author: last edited by: $Author: apoth $ version: $Revision: 9340 $, $Date: 2007-12-27 04:32:12 -0800 (Thu, 27 Dec 2007) $ |
ScaledFeature | public ScaledFeature(Feature feature, double scale)(Code) | | Parameters: feature - feature wrap Parameters: scale - maps scale (should be -1 if not known) |
getAttribute | public String getAttribute(String name)(Code) | | Returns the attribute value of the attribute with the specified name.
Parameters: name - name of the attribute the attribute value |
getAttributes | public Map<String, String> getAttributes()(Code) | | Returns all attributes of the feature.
all attributes, keys are names, values are attribute values |
getDescription | public String getDescription()(Code) | | feature description |
getFeatureType | public FeatureType getFeatureType()(Code) | | See Also: Feature.getFeatureType See Also: the returned feature type contains all properties of the See Also: wrapped feature plus a property named '$SCALE' |
getScale | public double getScale()(Code) | | returns the features scale
the features scale |
removeProperty | public void removeProperty(QualifiedName propertyName)(Code) | | Parameters: propertyName - |
setAttribute | public void setAttribute(String name, String value)(Code) | | Sets the value of the attribute with the given name.
Parameters: name - name of the attribute Parameters: value - value to set |
setEnvelopesUpdated | public void setEnvelopesUpdated()(Code) | | |
setFeatureType | public void setFeatureType(FeatureType ft)(Code) | | Sets the feature type of this feature.
Parameters: ft - feature type to set |
setScale | public void setScale(double scale)(Code) | | sets the features scale. Expected is the scale denominator as defined by OGC SLD
specification
Parameters: scale - |
|
|
|