org.deegree_impl.graphics.sld
Class PointSymbolizer_Impl

java.lang.Object
  extended byorg.deegree_impl.graphics.sld.Symbolizer_Impl
      extended byorg.deegree_impl.graphics.sld.PointSymbolizer_Impl
All Implemented Interfaces:
Marshallable, PointSymbolizer, Symbolizer

public class PointSymbolizer_Impl
extends Symbolizer_Impl
implements PointSymbolizer, Marshallable

Used to render a "graphic" at a point. If a line-string or polygon geometry is used with this symbol, then the semantic is to use the centroid of the geometry, or any similar representative point. The meaning of the contained elements are discussed with the element definitions below. If the Geometry element is omitted, then the "default" geometry for the feature type is used. (Many feature types will have only one geometry attribute.) If the Graphic element is omitted, then nothing will be plotted.

----------------------------------------------------------------------

Version:
$Revision: 1.11 $ $Date: 2004/01/12 14:48:41 $
Author:
Katharina Lupp

Field Summary
private  Graphic graphic
           
 
Fields inherited from class org.deegree_impl.graphics.sld.Symbolizer_Impl
geometry, maxDenominator, minDenominator
 
Constructor Summary
  PointSymbolizer_Impl()
          Creates a new PointSymbolizer_Impl object.
(package private) PointSymbolizer_Impl(Graphic graphic, Geometry geometry, double min, double max)
          constructor initializing the class with the
 
Method Summary
 java.lang.String exportAsXML()
          exports the content of the PointSymbolizer as XML formated String
 Graphic getGraphic()
          A Graphic is a "graphic symbol" with an inherent shape, color, and size.
 void setGraphic(Graphic graphic)
          sets the
 
Methods inherited from class org.deegree_impl.graphics.sld.Symbolizer_Impl
getGeometry, getMaxScaleDenominator, getMinScaleDenominator, setGeometry, setMaxScaleDenominator, setMinScaleDenominator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.deegree.graphics.sld.Symbolizer
getGeometry, getMaxScaleDenominator, getMinScaleDenominator, setGeometry, setMaxScaleDenominator, setMinScaleDenominator
 

Field Detail

graphic

private Graphic graphic
Constructor Detail

PointSymbolizer_Impl

public PointSymbolizer_Impl()
Creates a new PointSymbolizer_Impl object.


PointSymbolizer_Impl

PointSymbolizer_Impl(Graphic graphic,
                     Geometry geometry,
                     double min,
                     double max)
constructor initializing the class with the

Method Detail

getGraphic

public Graphic getGraphic()
A Graphic is a "graphic symbol" with an inherent shape, color, and size. Graphics can either be referenced from an external URL in a common format (such as GIF or SVG) or may be derived from a Mark. Multiple external URLs may be referenced with the semantic that they all provide the same graphic in different formats. The "hot spot" to use for rendering at a point or the start and finish handle points to use for rendering a graphic along a line must either be inherent in the external format or are system- dependent. The default size of an image format (such as GIF) is the inherent size of the image. The default size of a format without an inherent size is 16 pixels in height and the corresponding aspect in width. If a size is specified, the height of the graphic will be scaled to that size and the corresponding aspect will be used for the width. The default if neither an ExternalURL nor a Mark is specified is to use the default Mark with a size of 6 pixels. The size is in pixels and the rotation is in degrees clockwise, with 0 (default) meaning no rotation. In the case that a Graphic is derived from a font-glyph Mark, the Size specified here will be used for the final rendering. Allowed CssParameters are "opacity", "size", and "rotation".

Specified by:
getGraphic in interface PointSymbolizer
Returns:
the graphic of the point

setGraphic

public void setGraphic(Graphic graphic)
sets the

Specified by:
setGraphic in interface PointSymbolizer
Parameters:
graphic - the graphic of the point

exportAsXML

public java.lang.String exportAsXML()
exports the content of the PointSymbolizer as XML formated String

Specified by:
exportAsXML in interface Marshallable
Returns:
xml representation of the PointSymbolizer