
package oracle.jbo.html.jsp.graph;


import java.util.Hashtable;

public class GraphConstantsHelper 
{
   public static Hashtable hash = new Hashtable(100);
    
    static 
    {
        hash.put("THREED_BARS", new Integer (GraphConstants.THREED_BARS) );
        
        hash.put("THREED_PYRAMIDS", new Integer (GraphConstants.THREED_PYRAMIDS) );
        
        hash.put("THREED_OCTAGONS", new Integer (GraphConstants.THREED_OCTAGONS) );
        
        hash.put("THREED_FLOATING_CUBES", new Integer (GraphConstants.THREED_FLOATING_CUBES) );
        
        hash.put("THREED_FLOATING_PYRAMIDS", new Integer (GraphConstants.THREED_FLOATING_PYRAMIDS) );
        
        hash.put("THREED_FLOATING_CONNECTED_SERIES_AREA", new Integer (GraphConstants.THREED_FLOATING_CONNECTED_SERIES_AREA) );
        
        hash.put("THREED_FLOATING_CONNECTED_SERIES_RIBBON", new Integer (GraphConstants.THREED_FLOATING_CONNECTED_SERIES_RIBBON) );
        
        hash.put("THREED_FLOATING_CONNECTED_GROUP_AREA", new Integer (GraphConstants.THREED_FLOATING_CONNECTED_GROUP_AREA) );
        
        hash.put("THREED_FLOATING_CONNECTED_GROUP_RIBBON", new Integer (GraphConstants.THREED_FLOATING_CONNECTED_GROUP_RIBBON) );
        
        hash.put("THREED_SURFACE", new Integer (GraphConstants.THREED_SURFACE) );
        
        hash.put("THREED_SURFACE_WITH_SIDES", new Integer (GraphConstants.THREED_SURFACE_WITH_SIDES) );
        
        hash.put("THREED_HONEYCOMB_SURFACE", new Integer (GraphConstants.THREED_HONEYCOMB_SURFACE) );
        
        hash.put("VERTICAL_CLUSTERED_BARS", new Integer (GraphConstants.VERTICAL_CLUSTERED_BARS) );
        
        hash.put("VERTICAL_STACKED_BARS", new Integer (GraphConstants.VERTICAL_STACKED_BARS) );
        
        hash.put("VERTICAL_DUAL_AXIS_CLUSTERED_BARS", new Integer (GraphConstants.VERTICAL_DUAL_AXIS_CLUSTERED_BARS) );
        
        hash.put("VERTICAL_DUAL_AXIS_STACKED_BARS", new Integer (GraphConstants.VERTICAL_DUAL_AXIS_STACKED_BARS) );
        
        hash.put("VERTICAL_BI_POLAR_CLUSTERED_BARS", new Integer (GraphConstants.VERTICAL_BI_POLAR_CLUSTERED_BARS) );
        
        hash.put("VERTICAL_BI_POLAR_STACKED_BARS", new Integer (GraphConstants.VERTICAL_BI_POLAR_STACKED_BARS) );
        
        hash.put("VERTICAL_PERCENT_BARS", new Integer (GraphConstants.VERTICAL_PERCENT_BARS) );
        
        hash.put("HORIZONTAL_CLUSTERED_BARS", new Integer (GraphConstants.HORIZONTAL_CLUSTERED_BARS) );
        
        hash.put("HORIZONTAL_STACKED_BARS", new Integer (GraphConstants.HORIZONTAL_STACKED_BARS) );
        
        hash.put("HORIZONTAL_DUAL_AXIS_CLUSTERED_BARS", new Integer (GraphConstants.HORIZONTAL_DUAL_AXIS_CLUSTERED_BARS) );
        
        hash.put("HORIZONTAL_DUAL_AXIS_STACKED_BARS", new Integer (GraphConstants.HORIZONTAL_DUAL_AXIS_STACKED_BARS) );
        
        hash.put("HORIZONTAL_BI_POLAR_CLUSTERED_BARS", new Integer (GraphConstants.HORIZONTAL_BI_POLAR_CLUSTERED_BARS) );
        
        hash.put("HORIZONTAL_BI_POLAR_STACKED_BARS", new Integer (GraphConstants.HORIZONTAL_BI_POLAR_STACKED_BARS) );
        
        hash.put("HORIZONTAL_PERCENT_BARS", new Integer (GraphConstants.HORIZONTAL_PERCENT_BARS) );
        
        hash.put("VERTICAL_ABSOLUTE_AREA", new Integer (GraphConstants.VERTICAL_ABSOLUTE_AREA) );
        
        hash.put("VERTICAL_STACKED_AREA", new Integer (GraphConstants.VERTICAL_STACKED_AREA) );
        
        hash.put("VERTICAL_BI_POLAR_ABSOLUTE_AREA", new Integer (GraphConstants.VERTICAL_BI_POLAR_ABSOLUTE_AREA) );
        
        hash.put("VERTICAL_BI_POLAR_STACKED_AREA", new Integer (GraphConstants.VERTICAL_BI_POLAR_STACKED_AREA) );
        
        hash.put("VERTICAL_PERCENT_AREA", new Integer (GraphConstants.VERTICAL_PERCENT_AREA) );
        
        hash.put("HORIZONTAL_ABSOLUTE_AREA", new Integer (GraphConstants.HORIZONTAL_ABSOLUTE_AREA) );
        
        hash.put("HORIZONTAL_STACKED_AREA", new Integer (GraphConstants.HORIZONTAL_STACKED_AREA) );
        
        hash.put("HORIZONTAL_BI_POLAR_ABSOLUTE_AREA", new Integer (GraphConstants.HORIZONTAL_BI_POLAR_ABSOLUTE_AREA) );
        
        hash.put("HORIZONTAL_BI_POLAR_STACKED_AREA", new Integer (GraphConstants.HORIZONTAL_BI_POLAR_STACKED_AREA) );
        
        hash.put("HORIZONTAL_PERCENT_AREA", new Integer (GraphConstants.HORIZONTAL_PERCENT_AREA) );
        
        hash.put("VERTICAL_ABSOLUTE_LINE", new Integer (GraphConstants.VERTICAL_ABSOLUTE_LINE) );
        
        hash.put("VERTICAL_STACKED_LINE", new Integer (GraphConstants.VERTICAL_STACKED_LINE) );
        
        hash.put("VERTICAL_DUAL_AXIS_ABSOLUTE_LINE", new Integer (GraphConstants.VERTICAL_DUAL_AXIS_ABSOLUTE_LINE) );
        
        hash.put("VERTICAL_DUAL_AXIS_STACKED_LINE", new Integer (GraphConstants.VERTICAL_DUAL_AXIS_STACKED_LINE) );
        
        hash.put("VERTICAL_BI_POLAR_ABSOLUTE_LINE", new Integer (GraphConstants.VERTICAL_BI_POLAR_ABSOLUTE_LINE) );
        
        hash.put("VERTICAL_BI_POLAR_STACKED_LINE", new Integer (GraphConstants.VERTICAL_BI_POLAR_STACKED_LINE) );
        
        hash.put("VERTICAL_PERCENT_LINE", new Integer (GraphConstants.VERTICAL_PERCENT_LINE) );
        
        hash.put("HORIZONTAL_ABSOLUTE_LINE", new Integer (GraphConstants.HORIZONTAL_ABSOLUTE_LINE) );
        
        hash.put("HORIZONTAL_STACKED_LINE", new Integer (GraphConstants.HORIZONTAL_STACKED_LINE) );
        
        hash.put("HORIZONTAL_DUAL_AXIS_ABSOLUTE_LINE", new Integer (GraphConstants.HORIZONTAL_DUAL_AXIS_ABSOLUTE_LINE) );
        
        hash.put("HORIZONTAL_DUAL_AXIS_STACKED_LINE", new Integer (GraphConstants.HORIZONTAL_DUAL_AXIS_STACKED_LINE) );
        
        hash.put("HORIZONTAL_BI_POLAR_ABSOLUTE_LINE", new Integer (GraphConstants.HORIZONTAL_BI_POLAR_ABSOLUTE_LINE) );
        
        hash.put("HORIZONTAL_BI_POLAR_STACKED_LINE", new Integer (GraphConstants.HORIZONTAL_BI_POLAR_STACKED_LINE) );
        
        hash.put("HORIZONTAL_PERCENT_LINE", new Integer (GraphConstants.HORIZONTAL_PERCENT_LINE) );
        
        hash.put("PIE", new Integer (GraphConstants.PIE) );
        
        hash.put("RING_PIE", new Integer (GraphConstants.RING_PIE) );
        
        hash.put("MULTI_PIE", new Integer (GraphConstants.MULTI_PIE) );
        
        hash.put("MULTI_RING_PIE", new Integer (GraphConstants.MULTI_RING_PIE) );
        
        hash.put("MULTI_PROPORTIONAL_PIE", new Integer (GraphConstants.MULTI_PROPORTIONAL_PIE) );
        
        hash.put("MULTI_PROPORTIONAL_RING_PIE", new Integer (GraphConstants.MULTI_PROPORTIONAL_RING_PIE) );
        
        hash.put("PIE_BAR_CHART", new Integer (GraphConstants.PIE_BAR_CHART) );
        
        hash.put("RING_PIE_BAR_CHART", new Integer (GraphConstants.RING_PIE_BAR_CHART) );
        
        hash.put("XY_SCATTER", new Integer (GraphConstants.XY_SCATTER) );
        
        hash.put("XY_SCATTER_DUAL_AXIS", new Integer (GraphConstants.XY_SCATTER_DUAL_AXIS) );
        
        hash.put("XY_SCATTER_WITH_LABELS", new Integer (GraphConstants.XY_SCATTER_WITH_LABELS) );
        
        hash.put("XY_SCATTER_WITH_LABELS_DUAL_AXIS", new Integer (GraphConstants.XY_SCATTER_WITH_LABELS_DUAL_AXIS) );
        
        hash.put("POLAR", new Integer (GraphConstants.POLAR) );
        
        hash.put("POLAR_DUAL_AXIS", new Integer (GraphConstants.POLAR_DUAL_AXIS) );
        
        hash.put("RADAR_LINE", new Integer (GraphConstants.RADAR_LINE) );
        
        hash.put("RADAR_AREA", new Integer (GraphConstants.RADAR_AREA) );
        
        hash.put("RADAR_LINE_DUAL_AXIS", new Integer (GraphConstants.RADAR_LINE_DUAL_AXIS) );
        
        hash.put("OPEN_HI_LO_CLOSE_CANDLE_STOCK_CHART", new Integer (GraphConstants.OPEN_HI_LO_CLOSE_CANDLE_STOCK_CHART) );
        
        hash.put("OPEN_HI_LO_CLOSE_CANDLE_STOCK_CHART_VOLUME", new Integer (GraphConstants.OPEN_HI_LO_CLOSE_CANDLE_STOCK_CHART_VOLUME) );
        
        hash.put("CANDLE_STOCK_HI_LO_OPEN_CLOSE", new Integer (GraphConstants.CANDLE_STOCK_HI_LO_OPEN_CLOSE) );
        
        hash.put("STOCK_HI_LO", new Integer (GraphConstants.STOCK_HI_LO) );
        
        hash.put("STOCK_HI_LO_DUAL_AXIS", new Integer (GraphConstants.STOCK_HI_LO_DUAL_AXIS) );
        
        hash.put("STOCK_HI_LO_BI_POLAR", new Integer (GraphConstants.STOCK_HI_LO_BI_POLAR) );
        
        hash.put("STOCK_HI_LO_CLOSE", new Integer (GraphConstants.STOCK_HI_LO_CLOSE) );
        
        hash.put("STOCK_HI_LO_CLOSE_DUAL_AXIS", new Integer (GraphConstants.STOCK_HI_LO_CLOSE_DUAL_AXIS) );
        
        hash.put("STOCK_HI_LO_OPEN_CLOSE", new Integer (GraphConstants.STOCK_HI_LO_OPEN_CLOSE) );
        
        hash.put("STOCK_HI_LO_OPEN_CLOSE_DUAL_AXIS", new Integer (GraphConstants.STOCK_HI_LO_OPEN_CLOSE_DUAL_AXIS) );
        
        hash.put("STOCK_HI_LO_OPEN_CLOSE_BI_POLAR", new Integer (GraphConstants.STOCK_HI_LO_OPEN_CLOSE_BI_POLAR) );
        
        hash.put("STOCK_HI_LO_VOLUME", new Integer (GraphConstants.STOCK_HI_LO_VOLUME) );
        
        hash.put("STOCK_HI_LO_OPEN_CLOSE_VOLUME", new Integer (GraphConstants.STOCK_HI_LO_OPEN_CLOSE_VOLUME) );
        
        hash.put("CANDLE_STOCK_HI_LO_OPEN_CLOSE_VOLUME", new Integer (GraphConstants.CANDLE_STOCK_HI_LO_OPEN_CLOSE_VOLUME) );
        
        hash.put("VERTICAL_HISTOGRAM", new Integer (GraphConstants.VERTICAL_HISTOGRAM) );
        
        hash.put("HORIZONTAL_HISTOGRAM", new Integer (GraphConstants.HORIZONTAL_HISTOGRAM) );
        
        hash.put("SPECTRAL_MAP", new Integer (GraphConstants.SPECTRAL_MAP) );
        
        hash.put("BUBBLE_CHART", new Integer (GraphConstants.BUBBLE_CHART) );
        
        hash.put("BUBBLE_CHART_LABELS", new Integer (GraphConstants.BUBBLE_CHART_LABELS) );
        
        hash.put("BUBBLE_CHART_DUAL_AXIS", new Integer (GraphConstants.BUBBLE_CHART_DUAL_AXIS) );
        
        hash.put("BUBBLE_CHART_LABELS_DUAL_AXIS", new Integer (GraphConstants.BUBBLE_CHART_LABELS_DUAL_AXIS) );
    }
    
    /** 
    * retutn chart type as int, for a constant such as BUBBLE_CHART_LABESLS_DUAL_AXZIS.,
    * if error, return -1
    */
    static int s2i(String s)
        
    {
        Integer i = (Integer) hash.get(s);
        
        if ( i == null )
            return -1;
        else
            return i.intValue();
    }
}