ingo@365: package de.intevation.gnv.chart;
ingo@365:
sascha@779: import de.intevation.gnv.chart.ChartLabels;
sascha@779:
sascha@779: import de.intevation.gnv.geobackend.base.Result;
sascha@779:
ingo@365: import java.util.Collection;
ingo@365: import java.util.Locale;
ingo@365:
ingo@365: import org.apache.log4j.Logger;
ingo@365:
ingo@365: import org.jfree.chart.ChartTheme;
sascha@779:
ingo@365: import org.jfree.data.general.Series;
ingo@365:
ingo@365: /**
ingo@767: * Implementation to create a special type of horizontal profile charts.
ingo@767: *
ingo@767: * @author Ingo Weinzierl
ingo@365: */
ingo@365: public class HorizontalCrossProfileChart
ingo@365: extends HorizontalProfileChart
ingo@365: {
ingo@767: /**
ingo@767: * Logger used for logging with log4j.
ingo@767: */
ingo@365: private static Logger log = Logger.getLogger(HorizontalCrossProfileChart.class);
ingo@365:
ingo@767: /**
ingo@767: * Constructor to create HorizontalCrossProfileChart objects.
ingo@767: *
ingo@767: * @param labels Labels used to be displayed in title, subtitle and so on.
ingo@767: * @param theme ChartTheme used to adjust the rendering of this chart.
ingo@767: * @param parameters Collection containing a bunch of parameters.
ingo@767: * @param measurements Collection containing a bunch of measurements.
ingo@767: * @param dates Collection containing a bunch of date objects.
ingo@767: * @param result Collection containing a bunch of Result
ingo@767: * objects which contain the actual data items to be displayed.
ingo@767: * @param timeGaps Collection with timegap definitions.
ingo@767: * @param locale Locale used to specify the format of labels, numbers, ...
ingo@767: * @param linesVisible Render lines between data points if true, otherwise
ingo@767: * not.
ingo@767: * @param shapesVisible Render vertices as points if true, otherwise not.
ingo@767: */
ingo@365: public HorizontalCrossProfileChart(
ingo@365: ChartLabels labels,
ingo@365: ChartTheme theme,
ingo@365: Collection parameters,
ingo@365: Collection measurements,
ingo@365: Collection dates,
ingo@365: Collection result,
ingo@365: Collection timeGaps,
ingo@365: Locale locale,
ingo@365: boolean linesVisible,
ingo@365: boolean shapesVisible
ingo@365: ) {
ingo@365: super(
ingo@365: labels,
ingo@365: theme,
ingo@365: parameters,
ingo@365: measurements,
ingo@365: dates,
ingo@365: result,
ingo@365: timeGaps,
ingo@365: locale,
ingo@365: linesVisible,
ingo@365: shapesVisible
ingo@365: );
ingo@365: }
ingo@365:
ingo@365:
ingo@767: /**
ingo@767: * Method for gap detection. Nothing is done here, because in this type of
ingo@767: * chart no gap detection takes place.
ingo@767: *
ingo@767: * @see de.intevation.gnv.chart.HorizontalProfileChart#gapDetection(Result[],
ingo@767: * Series, int, int)
ingo@767: */
ingo@365: @Override
ingo@365: protected void gapDetection(
ingo@365: Result[] results,
ingo@365: Series series,
ingo@365: int startPos,
ingo@365: int endPos
ingo@365: ) {
ingo@417: // nothing to do here, gap detection is done in interpolation
ingo@365: }
ingo@365: }
ingo@365: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :