Package de.laures.cewolf.jfree

Examples of de.laures.cewolf.jfree.ThermometerPlot


    if (str != null)
      useSubrangePaint = "true".equals(str.toLowerCase());

    Plot plot = ((JFreeChart) chart).getPlot();
    if (plot instanceof ThermometerPlot) {
      ThermometerPlot tplot = (ThermometerPlot) plot;
      tplot.setUnits(units);
      tplot.setUseSubrangePaint(false);
      tplot.setThermometerPaint(thermometerColor);
      tplot.setMercuryPaint(mercuryColor);
      tplot.setValuePaint(valueColor);
      tplot.setLowerBound(lowerBound);
      tplot.setSubrange(ThermometerPlot.NORMAL, lowerBound, warningPoint);
      tplot.setSubrange(ThermometerPlot.WARNING, warningPoint, criticalPoint);
      tplot.setSubrange(ThermometerPlot.CRITICAL, criticalPoint, upperBound);
      tplot.setUpperBound(upperBound);
      tplot.setUseSubrangePaint(useSubrangePaint);
      tplot.setSubrangeIndicatorsVisible(subrangeIndicatorsVisible);
      tplot.setSubrangePaint(ThermometerPlot.NORMAL, normalColor);
      tplot.setSubrangePaint(ThermometerPlot.WARNING, warningColor);
      tplot.setSubrangePaint(ThermometerPlot.CRITICAL, criticalColor);
    }
  }
View Full Code Here


      chart = new JFreeChart(title, new Font("SansSerif", Font.BOLD, 18), dplot, showLegend);
      ChartFactory.getChartTheme().apply(chart);
      return chart;
    case THERMOMETER :
      check(data, ValueDataset.class, chartType);
      ThermometerPlot tplot = new ThermometerPlot((ValueDataset) data);
      chart = new JFreeChart(title, new Font("SansSerif", Font.BOLD, 18), tplot, showLegend);
      ChartFactory.getChartTheme().apply(chart);
      return chart;
    case COMPASS :
      check(data, ValueDataset.class, chartType);
View Full Code Here

TOP

Related Classes of de.laures.cewolf.jfree.ThermometerPlot

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.