org.n52.oxf.render.sos
Class AnimatedMapChartRenderer4OnePhenomenon

java.lang.Object
  extended by org.n52.oxf.render.sos.AnimatedMapChartRenderer4OnePhenomenon
All Implemented Interfaces:
IFeatureDataRenderer, IRenderer

public class AnimatedMapChartRenderer4OnePhenomenon
extends Object
implements IFeatureDataRenderer

Author:
Arne Broering

Field Summary
protected static float CHART_HEIGHT
           
protected static float CHART_WIDTH
           
 Set<OXFFeature> featuresWithCharts
          the Features of Interest for which a chart shall be rendered.
protected static int X_SHIFT
           
protected static int Y_SHIFT
           
 
Constructor Summary
AnimatedMapChartRenderer4OnePhenomenon()
           
 
Method Summary
 String getDescription()
           
 String getServiceType()
           
 String[] getSupportedVersions()
           
protected  org.jfree.chart.plot.CategoryPlot renderFoiBarChart(String foiID, String timeString, ObservedValueTuple tuple)
          renders a BarChart consisting of one series for each specified foiID.
protected  Image renderFrame(ITimePosition timePos, int screenW, int screenH, IBoundingBox bbox, Set<OXFFeature> featuresWithCharts, ObservationSeriesCollection tupleFinder)
           
 AnimatedVisualization renderLayer(OXFFeatureCollection observationCollection, ParameterContainer paramCon, int screenW, int screenH, IBoundingBox bbox, Set<OXFFeature> featuresWithCharts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X_SHIFT

protected static final int X_SHIFT
See Also:
Constant Field Values

Y_SHIFT

protected static final int Y_SHIFT
See Also:
Constant Field Values

CHART_WIDTH

protected static final float CHART_WIDTH
See Also:
Constant Field Values

CHART_HEIGHT

protected static final float CHART_HEIGHT
See Also:
Constant Field Values

featuresWithCharts

public Set<OXFFeature> featuresWithCharts
the Features of Interest for which a chart shall be rendered.

Constructor Detail

AnimatedMapChartRenderer4OnePhenomenon

public AnimatedMapChartRenderer4OnePhenomenon()
Method Detail

renderLayer

public AnimatedVisualization renderLayer(OXFFeatureCollection observationCollection,
                                         ParameterContainer paramCon,
                                         int screenW,
                                         int screenH,
                                         IBoundingBox bbox,
                                         Set<OXFFeature> featuresWithCharts)
Specified by:
renderLayer in interface IFeatureDataRenderer
Parameters:
observationCollection -
paramCon -
screenW -
screenH -
bbox -
featuresWithCharts - the Features of Interest for which a chart shall be renderered.
Returns:

renderFrame

protected Image renderFrame(ITimePosition timePos,
                            int screenW,
                            int screenH,
                            IBoundingBox bbox,
                            Set<OXFFeature> featuresWithCharts,
                            ObservationSeriesCollection tupleFinder)
Parameters:
observationCollection - the observations belonging to the timeStamp (frame) which shall be rendered
screenW -
screenH -
bbox -
Returns:

renderFoiBarChart

protected org.jfree.chart.plot.CategoryPlot renderFoiBarChart(String foiID,
                                                              String timeString,
                                                              ObservedValueTuple tuple)
renders a BarChart consisting of one series for each specified foiID.

Parameters:
foiIdArray -
observationCollection -
Returns:

getDescription

public String getDescription()
Specified by:
getDescription in interface IRenderer
Returns:
a plain text description of this Renderer.

getServiceType

public String getServiceType()
Specified by:
getServiceType in interface IRenderer
Returns:
the type of the service whose data can be rendered with this ServiceRenderer. In this case "OGC:SOS" will be returned.

getSupportedVersions

public String[] getSupportedVersions()
Specified by:
getSupportedVersions in interface IRenderer
Returns:
the versions of the services whose data can be rendered with this ServiceRenderer. In this case {"1.0.0"} will be returned.


Copyright © 2005 - 2010 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.