Class WindBarbsFactory

  • All Implemented Interfaces:
    MarkFactory

    public class WindBarbsFactory
    extends Object
    implements MarkFactory
    Factory to produce WindBarbs. Urls for wind barbs are in the form: windbarbs://default(speed_value)[units_of_measure]

    TODO: We may consider adding a FLAG to say whether the arrows are toward wind (meteo convention) or against wind (ocean convention)

    Author:
    Daniele Romagnoli, GeoSolutions SAS
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Shape getShape​(Graphics2D graphics, Expression symbolUrl, Feature feature)
      Return a shape with the given url.
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SOUTHERN_EMISPHERE_FLIP

        public static final AffineTransform SOUTHERN_EMISPHERE_FLIP
        SOUTHERN_EMISPHERE_FLIP
    • Constructor Detail

      • WindBarbsFactory

        public WindBarbsFactory()
    • Method Detail

      • getShape

        public Shape getShape​(Graphics2D graphics,
                              Expression symbolUrl,
                              Feature feature)
        Return a shape with the given url.
        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)
        See Also:
        MarkFactory.getShape(java.awt.Graphics2D, org.opengis.filter.expression.Expression, org.opengis.feature.Feature)