com.ge.grc.acuity.actions.mapping
Class CandleBarBoxMap

java.lang.Object
  extended bycom.ge.grc.acuity.actions.mapping.RowAsXMap
      extended bycom.ge.grc.acuity.actions.mapping.CandleBarBoxMap
All Implemented Interfaces:
ResultSetMappingFunction

public class CandleBarBoxMap
extends RowAsXMap

Generic dataseries mapping function that creates a candle dataseries using the row order of the argument ResultSet +- a width value as the xMin, xMax values for the dataseries. The width of the candle is specified from the parameters Map value for the key=candleWidth, if it exists. Otherwise the defaultCandleWidth is used. To obtain yMin information for the dataseries, the parameters Map must contain a value for the key=yMinColumn. To obtain yMax information for the dataseries, the parameters Map must contain a value for the key=yMaxColumn. To obtain xMinLabel information for the dataseries, the parameters Map must contain a value for the key=xMinColumn.

Version:
$Revision: 1.2 $ $Date: 2006/09/08 22:40:22 $
Author:
garbiras

Field Summary
 double defaultCandleWidth
          The default width of the candle to be used if no custom width is specified
 
Fields inherited from class com.ge.grc.acuity.actions.mapping.RowAsXMap
dateFormat, sdf
 
Constructor Summary
CandleBarBoxMap()
           
 
Method Summary
 java.util.List[] process(java.sql.ResultSet rs, java.util.Map parameters)
          Processes a ResultSet according to the parameters specified in the argument Map
 
Methods inherited from class com.ge.grc.acuity.actions.mapping.RowAsXMap
customProcess, hasDataseriesOutput, hasTableOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultCandleWidth

public double defaultCandleWidth
The default width of the candle to be used if no custom width is specified

Constructor Detail

CandleBarBoxMap

public CandleBarBoxMap()
Method Detail

process

public java.util.List[] process(java.sql.ResultSet rs,
                                java.util.Map parameters)
Description copied from interface: ResultSetMappingFunction
Processes a ResultSet according to the parameters specified in the argument Map

Specified by:
process in interface ResultSetMappingFunction
Overrides:
process in class RowAsXMap