de.laures.cewolf.cpp
Class ThermometerEnhancer

java.lang.Object
  extended by de.laures.cewolf.cpp.ThermometerEnhancer
All Implemented Interfaces:
ChartPostProcessor, java.io.Serializable

public class ThermometerEnhancer
extends java.lang.Object
implements ChartPostProcessor, java.io.Serializable

A postprocessor for changing details of a Compass plot.
units none/celsius/fahrenheit/kelvin; optional; default none
mercuryColor optional; default #FF0000 (i.e., red)
thermometerColor optional; default #000000 (i.e., black)
valueColor optional; default #FFFFFF (i.e., white)
lowerBound optional; default 0.0; starting value for the scale
warningPoint optional; default 50.0; boundary between normal range and warning range
criticalPoint optional; default 75.0; boundary between warning range and critical range
upperBound optional; default 100.0; end value for the scale
subrangeIndicatorsVisible true/false; optional; default true
useSubrangePaint true/false; optional; default true; if this is false, then mercuryColor is used
subrangeColorNormal optional; default #00FF00 (i.e., green)
subrangeColorWarning optional; default #FFC800 (i.e., orange)
subrangeColorCritical optional; default #FF0000 (i.e., red)

Usage:

<chart:chartpostprocessor id="thermometerEnhancer">
  <chart:param name="units" value="celsius" />
  <chart:param name="mercuryColor" value="#336699" />
  <chart:param name="valueColor" value="#99AACC" />
  <chart:param name="thermometerColor" value="#CCCCCC" />
  <chart:param name="lowerBound" value="20" />
  <chart:param name="warningPoint" value="40" />
  <chart:param name="criticalPaint" value="60" />
  <chart:param name="upperBound" value="80" />
  <chart:param name="subrangeIndicatorsVisible" value="false" />
  <chart:param name="useSubrangePaint" value="true" />
  <chart:param name="subrangeColorNormal" value="#00FF00" />
  <chart:param name="subrangeColorWarning" value="#FFC800" />
  <chart:param name="subrangeColorCritical" value="#FF0000" />
</chart:chartpostprocessor>

See Also:
Serialized Form

Constructor Summary
ThermometerEnhancer()
           
 
Method Summary
 void processChart(java.lang.Object chart, java.util.Map params)
          Processes a generated chart.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThermometerEnhancer

public ThermometerEnhancer()
Method Detail

processChart

public void processChart(java.lang.Object chart,
                         java.util.Map params)
Description copied from interface: ChartPostProcessor
Processes a generated chart. This method is called by the ChartProducer after a chart instance is generated and before it is rendered (if so). The ChartProducer is responsible for post processing a chart dependant on and only on the provided parameters. This means that the same parameters should result in the same postprocessings.

Specified by:
processChart in interface ChartPostProcessor
Parameters:
chart - the chart instance; only JFreeChart instances are supported
params - parameters passed to the postprocessor. These are defined in the JSP
See Also:
ChartPostProcessorTag


cewolf tag library - web charts with JFreeChart