org.deegree.graphics.sld
Interface CssParameter

All Known Implementing Classes:
CssParameter_Impl

public interface CssParameter

The simple SVG/CSS2 styling parameters are given with the CssParameter element, which is defined as follows:

  
 	
		
 			
 		
  
 
The parameter values are allowed to be complex expressions for maximum flexibility. The mixed="true" definition means that regular text may be mixed in with various sub-expressions, implying a text-substitution model for parameter values. Numeric and character-string data types are not distinguished, which may cause some complications.

Here are some usage examples:
 1. 3
 2. 
 		3
    
 3. 
 		
 			/A
 			2
 		
    
 4. 
 
The allowed SVG/CSS styling parameters for a stroke are: stroke (color), stroke-opacity, stroke-width, stroke-linejoin, stroke-linecap, stroke-dasharray, and stroke-dashoffset. The chosen parameter is given by the name attribute of the CssParameter element.

Version:
$Revision: 1.4 $ $Date: 2004/01/22 07:49:29 $
Author:
Andreas Poth, Markus Schneider

Method Summary
 java.lang.String getName()
          Returns the name attribute's value of the CssParameter.
 ParameterValueType getValue()
          Returns the value of the CssParameter as an ParameterValueType.
 java.lang.String getValue(Feature feature)
          Returns the (evaluated) value of the CssParameter as a simple String.
 void setName(java.lang.String name)
          Sets the name attribute's value of the CssParameter.
 void setValue(ParameterValueType value)
          Sets the value of the CssParameter as an ParameterValueType.
 void setValue(java.lang.String value)
          Sets the value of the CssParameter as a simple String.
 

Method Detail

getName

public java.lang.String getName()
Returns the name attribute's value of the CssParameter.

Returns:
the value of the name attribute of the CssParameter

setName

public void setName(java.lang.String name)
Sets the name attribute's value of the CssParameter.

Parameters:
name - the value of the name attribute of the CssParameter

getValue

public ParameterValueType getValue()
Returns the value of the CssParameter as an ParameterValueType.

Returns:
the mixed content of the element

setValue

public void setValue(ParameterValueType value)
Sets the value of the CssParameter as an ParameterValueType.

Parameters:
value - the mixed content of the element

getValue

public java.lang.String getValue(Feature feature)
                          throws FilterEvaluationException
Returns the (evaluated) value of the CssParameter as a simple String.

Parameters:
feature - specifies the Feature to be used for evaluation of the underlying 'sld:ParameterValueType'
Returns:
the (evaluated) String value of the parameter
Throws:
FilterEvaluationException - if the evaluations fails

setValue

public void setValue(java.lang.String value)
Sets the value of the CssParameter as a simple String.

Parameters:
value - CssParameter-Value to be set