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 @@ ...@@ -8,7 +8,7 @@
<groupId>fr.cemagref</groupId> <groupId>fr.cemagref</groupId>
<artifactId>observation</artifactId> <artifactId>observation</artifactId>
<version>0.1.1</version> <version>0.1.2</version>
<dependencies> <dependencies>
<dependency> <dependency>
...@@ -62,8 +62,8 @@ ...@@ -62,8 +62,8 @@
<packaging>jar</packaging> <packaging>jar</packaging>
<scm> <scm>
<connection>scm:svn:http://trac.clermont.cemagref.fr/svn/LISC/Observation/tags/observation-0.1.1</connection> <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.1</url> <url>http://trac.clermont.cemagref.fr/projets/LISC/browser/Observation/tags/observation-0.1.2</url>
</scm> </scm>
<build> <build>
<plugins> <plugins>
......
...@@ -29,7 +29,7 @@ public abstract class TemporalChart implements ObserverListener, Configurable, D ...@@ -29,7 +29,7 @@ public abstract class TemporalChart implements ObserverListener, Configurable, D
*/ */
protected transient ObservablesHandler.ObservableFetcher variable; protected transient ObservablesHandler.ObservableFetcher variable;
protected transient ObservablesHandler classObservable; protected transient ObservablesHandler classObservable;
private String title = "", xAxisLabel = "Time", yAxisLabel = ""; private String titlePrefix="Observation of ", title = "", xAxisLabel = "Time", yAxisLabel = "";
public TemporalChart() { public TemporalChart() {
graphTypeUpdated(); graphTypeUpdated();
...@@ -44,10 +44,18 @@ public abstract class TemporalChart implements ObserverListener, Configurable, D ...@@ -44,10 +44,18 @@ public abstract class TemporalChart implements ObserverListener, Configurable, D
protected void variableUpdated() { protected void variableUpdated() {
if (variable != null) { if (variable != null) {
yAxisLabel = variable.getDescription(); 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() { protected void graphTypeUpdated() {
PlotOrientation orientation = PlotOrientation.VERTICAL; PlotOrientation orientation = PlotOrientation.VERTICAL;
boolean legend = true; 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