vSubTypes.add(new ChartSubTypeImpl("Stacked", imgStackedWithDepth)); vSubTypes.add(new ChartSubTypeImpl("Percent Stacked", imgPercentStackedWithDepth)); vSubTypes.add(new ChartSubTypeImpl("Overlay", imgSideBySideWithDepth));
vSubTypes.add(new DefaultChartSubTypeImpl("Stacked", imgStackedWithDepth, sStackedDescription)); vSubTypes.add(new DefaultChartSubTypeImpl("Percent Stacked", imgPercentStackedWithDepth, sPercentStackedDescription)); vSubTypes.add(new DefaultChartSubTypeImpl("Overlay", imgSideBySideWithDepth, sOverlayDescription));
    public Collection getChartSubtypes(String sDimension, Orientation orientation)    {        Vector vSubTypes = new Vector();        if (sDimension.equals("2D"))        {            if (orientation.equals(Orientation.VERTICAL_LITERAL))            {                imgStacked = UIHelper.getImage("images/StackedLineChartImage.gif");                imgPercentStacked = UIHelper.getImage("images/PercentStackedLineChartImage.gif");                imgSideBySide = UIHelper.getImage("images/SideBySideLineChartImage.gif");            }            else            {                imgStacked = UIHelper.getImage("images/HorizontalStackedLineChartImage.gif");                imgPercentStacked = UIHelper.getImage("images/HorizontalPercentStackedLineChartImage.gif");                imgSideBySide = UIHelper.getImage("images/HorizontalSideBySideLineChartImage.gif");            }            vSubTypes.add(new ChartSubTypeImpl("Stacked", imgStacked));            vSubTypes.add(new ChartSubTypeImpl("Percent Stacked", imgPercentStacked));            vSubTypes.add(new ChartSubTypeImpl("Overlay", imgSideBySide));        }        else if (sDimension.equals("2D With Depth"))        {            if (orientation.equals(Orientation.VERTICAL_LITERAL))            {                imgStackedWithDepth = UIHelper.getImage("images/StackedLineChartWithDepthImage.gif");                imgPercentStackedWithDepth = UIHelper.getImage("images/PercentStackedLineChartWithDepthImage.gif");                imgSideBySideWithDepth = UIHelper.getImage("images/SideBySideLineChartWithDepthImage.gif");            }            else            {                imgStackedWithDepth = UIHelper.getImage("images/HorizontalStackedLineChartWithDepthImage.gif");                imgPercentStackedWithDepth = UIHelper                    .getImage("images/HorizontalPercentStackedLineChartWithDepthImage.gif");                imgSideBySideWithDepth = UIHelper.getImage("images/HorizontalSideBySideLineChartWithDepthImage.gif");            }            vSubTypes.add(new ChartSubTypeImpl("Stacked", imgStackedWithDepth));            vSubTypes.add(new ChartSubTypeImpl("Percent Stacked", imgPercentStackedWithDepth));            vSubTypes.add(new ChartSubTypeImpl("Overlay", imgSideBySideWithDepth));        }        else if (sDimension.equals("3D"))        {            imgSideBySide3D = UIHelper.getImage("images/SideBySideLineChart3DImage.gif");            vSubTypes.add(new ChartSubTypeImpl("Side-by-side", imgSideBySide3D));        }        return vSubTypes;    }