org.geotools.renderer.style
Class WellKnownMarkFactory

java.lang.Object
  extended by org.geotools.renderer.style.WellKnownMarkFactory
All Implemented Interfaces:
MarkFactory

public class WellKnownMarkFactory
extends java.lang.Object
implements MarkFactory

The WellKnownMarkFactory is used to hold the knolwedge of how to draw all the marks hardboiled into the SLD specification (cross, arrow, triangle etc...)

Author:
James

Constructor Summary
WellKnownMarkFactory()
           
 
Method Summary
 java.awt.Shape getShape(java.awt.Graphics2D graphics, org.opengis.filter.expression.Expression symbolUrl, org.opengis.feature.Feature feature)
          Turns the specified URL into an Shape, eventually using the Feature attributes to evaluate the expression, or returns null if the factory cannot evaluate this symbolUrl.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WellKnownMarkFactory

public WellKnownMarkFactory()
Method Detail

getShape

public java.awt.Shape getShape(java.awt.Graphics2D graphics,
                               org.opengis.filter.expression.Expression symbolUrl,
                               org.opengis.feature.Feature feature)
                        throws java.lang.Exception
Description copied from interface: MarkFactory
Turns the specified URL into an Shape, eventually using the Feature attributes to evaluate the expression, or returns null if the factory cannot evaluate this symbolUrl.

The returned Shape must not exceed the [-0.5, -0.5, 0.5, 0.5] bounds (will be rescaled according to the parameter given in graphics on the fly

Specified by:
getShape in interface MarkFactory
symbolUrl - the expression that will return the symbol name. Once evaluated the expression should return something like plainName or like protocol://path. See the actual implementations for details on the kind of supported name.
feature - The feature that will be used to evaluate the symbolURL expression (or to extract data from it, think complex attributes, in that case a visit to the expression and some direct attribute value extraction might be needed instead)
Throws:
java.lang.Exception


Copyright © 1996-2010 Geotools. All Rights Reserved.