de.laures.cewolf.cpp
Class WaferMapLegendProcessor

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

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

A postprocessor for adding custom legend titles to a wafer map plot. It is useful in conjunction with a SeriesPaintprocessor to show custom labels instead of numerical values in the legend. The name of each parameter is an RGB color, while the value is the label for that color.
The valign parameter (top, center or bottom) can be used to to place the legend more precisely.

The showCellValues parameter can be used to show the values of non-empty cells.

<cewolf:chartpostprocessor id="waferMapLegend">
   <cewolf:param name="valign" value="bottom" />
   <cewolf:param name="showCellValues" value="true" />
   <cewolf:param name="#14ff1a" value="one" />
   <cewolf:param name="#ff0000" value="two" />
   <cewolf:param name="#ff00fe" value="three" />
   <cewolf:param name="#7640ff" value="four" />
   <cewolf:param name="#4896ff" value="five" />
   <cewolf:param name="#d29428" value="six" />
   <cewolf:param name="#ffd0d4" value="seven" />
   <cewolf:param name="#9c0c1e" value="eight" />
</cewolf:chartpostprocessor>

See the meter.jsp page of the sample web app for a usage example.

See Also:
Serialized Form

Constructor Summary
WaferMapLegendProcessor()
           
 
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

WaferMapLegendProcessor

public WaferMapLegendProcessor()
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