org.deegree.graphics.sld
Interface Mark

All Known Implementing Classes:
Mark_Impl

public interface Mark

A Mark takes a "shape" and applies coloring to it. The shape can be derived either from a well-known name (such as "square"), an external URL in various formats (such as, perhaps GIF), or from a glyph of a font. Multiple external formats may be used with the semantic that they all contain the equivalent shape in different formats. If an image format is used that has inherent coloring, the coloring is discarded and only the opacity channel (or equivalent) is used. A Halo, Fill, and/or Stroke is applied as appropriate for the shape's source format.

Version:
$Revision: 1.6 $ $Date: 2004/03/01 07:45:47 $
Author:
Andreas Poth, Markus Schneider

Method Summary
 java.awt.image.BufferedImage getAsImage(Feature feature, int size)
          Returns the mark as an image.
 Fill getFill()
          A Fill allows area geometries to be filled.
 Stroke getStroke()
          A Stroke allows a string of line segments (or any linear geometry) to be rendered.
 java.lang.String getWellKnownName()
          Gives the well known name of a Mark's shape.
 void setAsImage(java.awt.image.BufferedImage bufferedImage)
          Sets the mark as an image.
 void setFill(Fill fill)
          Sets the Fill
 void setStroke(Stroke stroke)
          Sets the
 void setWellKnownName(java.lang.String wellKnownName)
          Sets the well known name of a Mark's shape.
 

Method Detail

getWellKnownName

public java.lang.String getWellKnownName()
Gives the well known name of a Mark's shape. Allowed values include at least "square", "circle", "triangle", "star", "cross", and "x", though map servers may draw a different symbol instead if they don't have a shape for all of these. Renderings of these marks may be made solid or hollow depending on Fill and Stroke parameters. The default value is "square".

Returns:
the WK-Name of the mark

setWellKnownName

public void setWellKnownName(java.lang.String wellKnownName)
Sets the well known name of a Mark's shape. Allowed values include at least "square", "circle", "triangle", "star", "cross", and "x", though map servers may draw a different symbol instead if they don't have a shape for all of these. Renderings of these marks may be made solid or hollow depending on Fill and Stroke parameters. The default value is "square"..

Parameters:
wellKnownName - the WK-Name of the mark

getFill

public Fill getFill()
A Fill allows area geometries to be filled. There are two types of fills: solid-color and repeated GraphicFill. In general, if a Fill element is omitted in its containing element, no fill will be rendered. The default is a solid 50%-gray (color "#808080") opaque fill.

Returns:
the fill of the mark

setFill

public void setFill(Fill fill)
Sets the Fill

Parameters:
fill - the fill of the mark

getStroke

public Stroke getStroke()
A Stroke allows a string of line segments (or any linear geometry) to be rendered. There are three basic types of strokes: solid Color, GraphicFill (stipple), and repeated GraphicStroke. A repeated graphic is plotted linearly and has its graphic symbol bended around the curves of the line string. The default is a solid black line (Color "#000000").

Returns:
the stroke of the mark

setStroke

public void setStroke(Stroke stroke)
Sets the

Parameters:
stroke - the stroke of the mark

getAsImage

public java.awt.image.BufferedImage getAsImage(Feature feature,
                                               int size)
                                        throws FilterEvaluationException
Returns the mark as an image. Rhis method is not part of the sld specifications but it is added to speed up applications.

Returns:
the mark as image
Throws:
FilterEvaluationException

setAsImage

public void setAsImage(java.awt.image.BufferedImage bufferedImage)
Sets the mark as an image. Rhis method is not part of the sld specifications but it is added to speed up applications.

Parameters:
bufferedImage - the bufferedImage to be set for the mark