| 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.graphics.sld.CssParameter
public class CssParameter
The simple SVG/CSS2 styling parameters are given with the CssParameter element, which is defined as follows:
  
   <xs:element name="CssParameter" type="sld:ParameterValueType"/>
      <xs:complexType name="ParameterValueType" mixed="true">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
              <xs:element ref="wfs:expression"/>
          </xs:choice>
   </xs:complexType>
  
 
 
 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. <CssParameter name="stroke-width">3</CssParameter>
  2. <CssParameter name="stroke-width">
          <wfs:Literal>3</wfs:Literal>
     </CssParameter>
  3. <CssParameter name="stroke-width">
          <wfs:Add>
              <wfs:PropertyName>/A</wfs:PropertyName>
              <wfs:Literal>2</wfs:Literal>
          </wfs:Add>
     </CssParameter>
  4. <Label>This is city "<wfs:PropertyName>/NAME</wfs:PropertyName>"
  of state <wfs:PropertyName>/STATE</wfs:PropertyName></Label>
  
 
 
 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.
 
| Constructor Summary | |
|---|---|
CssParameter(String name,
                         ParameterValueType pvt)
constructor initializing the class with the  | 
|
| Method Summary | |
|---|---|
 String | 
exportAsXML()
exports the content of the CssParameter as XML formated String  | 
(package private)  String | 
getName()
Returns the name attribute's value of the CssParameter.  | 
 ParameterValueType | 
getValue()
Returns the value of the CssParameter as an ParameterValueType.  | 
(package private)  String | 
getValue(Feature feature)
Returns the (evaluated) value of the CssParameter as a simple String.  | 
(package private)  void | 
setName(String name)
Sets the name attribute's value of the CssParameter.  | 
(package private)  void | 
setValue(ParameterValueType value)
Sets the value of the CssParameter as an ParameterValueType.  | 
(package private)  void | 
setValue(String value)
Sets the value of the CssParameter as a simple String.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
CssParameter(String name,
             ParameterValueType pvt)
| Method Detail | 
|---|
String getName()
void setName(String name)
name - the value of the name attribute of the CssParameterpublic ParameterValueType getValue()
void setValue(ParameterValueType value)
value - the mixed content of the element
String getValue(Feature feature)
          throws FilterEvaluationException
feature - specifies the Feature to be used for evaluation of the underlying
            'sld:ParameterValueType'
FilterEvaluationException - if the evaluations failsvoid setValue(String value)
value - CssParameter-Value to be setpublic String exportAsXML()
exportAsXML in interface Marshallable
  | 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
					For more information visit: http://deegree.sourceforge.net