Commit 87bf3898 authored by Dumoulin Nicolas's avatar Dumoulin Nicolas
Browse files

[maven-release-plugin] copy for tag observation-0.1.2

No related merge requests found
Showing with 13 additions and 5 deletions
+13 -5
......@@ -8,7 +8,7 @@
<groupId>fr.cemagref</groupId>
<artifactId>observation</artifactId>
<version>0.1.1</version>
<version>0.1.2</version>
<dependencies>
<dependency>
......@@ -62,8 +62,8 @@
<packaging>jar</packaging>
<scm>
<connection>scm:svn:http://trac.clermont.cemagref.fr/svn/LISC/Observation/tags/observation-0.1.1</connection>
<url>http://trac.clermont.cemagref.fr/projets/LISC/browser/Observation/tags/observation-0.1.1</url>
<connection>scm:svn:http://trac.clermont.cemagref.fr/svn/LISC/Observation/tags/observation-0.1.2</connection>
<url>http://trac.clermont.cemagref.fr/projets/LISC/browser/Observation/tags/observation-0.1.2</url>
</scm>
<build>
<plugins>
......
......@@ -29,7 +29,7 @@ public abstract class TemporalChart implements ObserverListener, Configurable, D
*/
protected transient ObservablesHandler.ObservableFetcher variable;
protected transient ObservablesHandler classObservable;
private String title = "", xAxisLabel = "Time", yAxisLabel = "";
private String titlePrefix="Observation of ", title = "", xAxisLabel = "Time", yAxisLabel = "";
public TemporalChart() {
graphTypeUpdated();
......@@ -44,10 +44,18 @@ public abstract class TemporalChart implements ObserverListener, Configurable, D
protected void variableUpdated() {
if (variable != null) {
yAxisLabel = variable.getDescription();
title = "Observation of " + yAxisLabel;
title = titlePrefix + yAxisLabel;
}
}
/**
* Modify the prefix used for updating the title. By default, it is "Observation of ".
* @param prefix
*/
protected void setTitlePrefix(String prefix) {
this.titlePrefix = prefix;
}
protected void graphTypeUpdated() {
PlotOrientation orientation = PlotOrientation.VERTICAL;
boolean legend = true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment