org.deegree_impl.graphics.sld
Class Drawing_Impl

java.lang.Object
  extended byorg.deegree_impl.graphics.sld.Drawing_Impl
All Implemented Interfaces:
Drawing
Direct Known Subclasses:
Fill_Impl, Stroke_Impl

public class Drawing_Impl
extends java.lang.Object
implements Drawing

This is the top level interface of Fill and Stroke defining the methods getGraphicFill() and getCssParameters() that are common to both.

Version:
$Revision: 1.8 $ $Date: 2004/01/26 08:15:38 $
Author:
Katharina Lupp, Markus Schneider

Field Summary
protected  java.util.HashMap cssParams
           
protected  GraphicFill graphicFill
           
 
Constructor Summary
(package private) Drawing_Impl(java.util.HashMap cssParams, GraphicFill graphicFill)
          Constructs a new instance of Drawing_Impl.
 
Method Summary
 void addCssParameter(java.lang.Object key, java.lang.Object value)
          Simple SVG/CSS2 styling parameters are given with the CssParameter element.
 java.util.HashMap getCssParameters()
          A simple SVG/CSS2 styling parameters are given with the CssParameter element.
 GraphicFill getGraphicFill()
          The GraphicFill element both indicates that a stipple-fill repeated graphic will be used and specifies the fill graphic.
 void removeCssParameter(java.lang.Object key)
          Simple SVG/CSS2 styling parameters are given with the CssParameter element.
 void setCssParameters(java.util.HashMap cssParameters)
          A simple SVG/CSS2 styling parameters are given with the CssParameter element.
 void setGraphicFill(GraphicFill graphicFill)
          The GraphicFill element both indicates that a stipple-fill repeated graphic will be used and specifies the fill graphic.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graphicFill

protected GraphicFill graphicFill

cssParams

protected java.util.HashMap cssParams
Constructor Detail

Drawing_Impl

Drawing_Impl(java.util.HashMap cssParams,
             GraphicFill graphicFill)
Constructs a new instance of Drawing_Impl.

Method Detail

getGraphicFill

public GraphicFill getGraphicFill()
The GraphicFill element both indicates that a stipple-fill repeated graphic will be used and specifies the fill graphic.

Specified by:
getGraphicFill in interface Drawing
Returns:
the GraphicFill-Element

setGraphicFill

public void setGraphicFill(GraphicFill graphicFill)
The GraphicFill element both indicates that a stipple-fill repeated graphic will be used and specifies the fill graphic.

Specified by:
setGraphicFill in interface Drawing
Parameters:
graphicFill - the GraphicFill-Element

getCssParameters

public java.util.HashMap getCssParameters()
A simple SVG/CSS2 styling parameters are given with the CssParameter element.

This method is for technical use. The user should access the specialized methods of the derived classes.

Specified by:
getCssParameters in interface Drawing
Returns:
the CssParameters

setCssParameters

public void setCssParameters(java.util.HashMap cssParameters)
A simple SVG/CSS2 styling parameters are given with the CssParameter element.

This method sets CssParameters.

Specified by:
setCssParameters in interface Drawing
Parameters:
cssParameters - the CssParameters

addCssParameter

public void addCssParameter(java.lang.Object key,
                            java.lang.Object value)
Simple SVG/CSS2 styling parameters are given with the CssParameter element. This method adds a CssParameter to a given set of CssParameters.

Specified by:
addCssParameter in interface Drawing
Parameters:
key - the key of the object to insert
value - the value of the object to insert

removeCssParameter

public void removeCssParameter(java.lang.Object key)
Simple SVG/CSS2 styling parameters are given with the CssParameter element.

This method adds a CssParameter to a given set of CssParameters.

Specified by:
removeCssParameter in interface Drawing
Parameters:
key - the key of the object to remove