package org.helioviewer.jhv.timelines.data;

import java.util.HashMap;

public class BandType {

    private String baseURL;
    private String label;
    private String name;
    private String unitLabel;
    private final HashMap<String, Double> warnLevels = new HashMap<>();
    private double min;
    private double max;
    private boolean isLog = false;

    @Override
    public String toString() {
        return label;
    }

    public String getBaseURL() {
        return baseURL;
    }

    public void setBaseURL(String _baseURL) {
        baseURL = _baseURL;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String _label) {
        label = _label;
    }

    public String getUnitLabel() {
        return unitLabel;
    }

    public void setUnitLabel(String _unitLabel) {
        unitLabel = _unitLabel;
    }

    public HashMap<String, Double> getWarnLevels() {
        return warnLevels;
    }

    public double getMin() {
        return min;
    }

    public void setMin(double _min) {
        min = _min;
    }

    public double getMax() {
        return max;
    }

    public void setMax(double _max) {
        max = _max;
    }

    public void setName(String _name) {
        name = _name;
    }

    public String getName() {
        return name;
    }

    public void setScale(String scale) {
        isLog = scale.equals("logarithmic");
    }

    public boolean isLogScale() {
        return isLog;
    }

}

@@ -94,36 +94,8 @@
  %7B%0A%0A
-    private String baseURL;%0A
     
@@ -112,24 +112,24 @@
 ring label;%0A
+
     private 
@@ -325,16 +325,55 @@
 = false;
+%0A    private DataProvider dataprovider;
 %0A%0A    @O
@@ -407,24 +407,24 @@
 oString() %7B%0A
+
         retu
@@ -444,153 +444,8 @@
  %7D%0A%0A
-    public String getBaseURL() %7B%0A        return baseURL;%0A    %7D%0A%0A    public void setBaseURL(String _baseURL) %7B%0A        baseURL = _baseURL;%0A    %7D%0A%0A
     
@@ -1342,10 +1342,200 @@
 %0A    %7D%0A%0A
+    public DataProvider getDataprovider() %7B%0A        return dataprovider;%0A    %7D%0A%0A    public void setDataprovider(DataProvider dataprovider) %7B%0A        this.dataprovider = dataprovider;%0A    %7D%0A%0A
 %7D%0A

Replace baseURL with data provider.