Mercurial > dive4elements > river
changeset 4358:2f01b47aa5c2
ExtremeCurveFacet: Add new constructor to set name to new FacetType (extreme_wq_curve_base). Data is the same.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 02 Nov 2012 11:59:14 +0100 |
parents | 11cf29eb002c |
children | f9b32714a19b |
files | flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/extreme/ExtremeCurveFacet.java |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/extreme/ExtremeCurveFacet.java Fri Nov 02 11:58:11 2012 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/extreme/ExtremeCurveFacet.java Fri Nov 02 11:59:14 2012 +0100 @@ -41,6 +41,17 @@ super(0, EXTREME_WQ_CURVE, description, ComputeType.ADVANCE, null, null); } + /** + * @param description Description of the facet. + * @param showBase if true, gimme different name. + */ + public ExtremeCurveFacet(String description, boolean showBase) { + super(0, EXTREME_WQ_CURVE_BASE, description, ComputeType.ADVANCE, null, null); + if (!showBase) { + this.name = EXTREME_WQ_CURVE; + } + } + public ExtremeCurveFacet(int index, String description) { super(index, EXTREME_WQ_CURVE, description, ComputeType.ADVANCE, null, null);