vSubTypes.add(new DefaultChartSubTypeImpl("Stacked", imgStacked, sStackedDescription)); vSubTypes .add(new DefaultChartSubTypeImpl("Percent Stacked", imgPercentStacked, sPercentStackedDescription)); vSubTypes.add(new DefaultChartSubTypeImpl("Overlay", imgSideBySide, sOverlayDescription)); } else if (sDimension.equals("2D With Depth") || sDimension.equals(ChartDimension.TWO_DIMENSIONAL_WITH_DEPTH_LITERAL.getName())) { if (orientation.equals(Orientation.VERTICAL_LITERAL)) { imgStackedWithDepth = UIHelper.getImage("icons/full/wizban/stackedlinechartwithdepthimage.gif"); imgPercentStackedWithDepth = UIHelper.getImage("icons/full/wizban/percentstackedlinechartwithdepthimage.gif"); imgSideBySideWithDepth = UIHelper.getImage("icons/full/wizban/sidebysidelinechartwithdepthimage.gif"); } else { imgStackedWithDepth = UIHelper.getImage("icons/full/wizban/horizontalstackedlinechartwithdepthimage.gif"); imgPercentStackedWithDepth = UIHelper .getImage("icons/full/wizban/horizontalpercentstackedlinechartwithdepthimage.gif"); imgSideBySideWithDepth = UIHelper.getImage("icons/full/wizban/horizontalsidebysidelinechartwithdepthimage.gif");
vSubTypes.add( new DefaultChartSubTypeImpl( "Stacked", imgStacked, sStackedDescription ) ); vSubTypes.add( new DefaultChartSubTypeImpl( "Percent Stacked", imgPercentStacked, sPercentStackedDescription ) ); vSubTypes.add( new DefaultChartSubTypeImpl( "Overlay", imgSideBySide, sOverlayDescription ) ); } else if ( sDimension.equals( TWO_DIMENSION_WITH_DEPTH_TYPE ) || sDimension.equals( ChartDimension.TWO_DIMENSIONAL_WITH_DEPTH_LITERAL.getName( ) ) ) { if ( orientation.equals( Orientation.VERTICAL_LITERAL ) ) { imgStackedWithDepth = UIHelper.getImage( "icons/full/wizban/stackedlinechartwithdepthimage.gif" ); imgPercentStackedWithDepth = UIHelper.getImage( "icons/full/wizban/percentstackedlinechartwithdepthimage.gif" ); imgSideBySideWithDepth = UIHelper.getImage( "icons/full/wizban/sidebysidelinechartwithdepthimage.gif" ); } else { imgStackedWithDepth = UIHelper.getImage( "icons/full/wizban/horizontalstackedlinechartwithdepthimage.gif" ); imgPercentStackedWithDepth = UIHelper.getImage( "icons/full/wizban/horizontalpercentstackedlinechartwithdepthimage.gif" ); imgSideBySideWithDepth = UIHelper.getImage( "icons/full/wizban/horizontalsidebysidelinechartwithdepthimage.gif" );
    public Collection getChartSubtypes(String sDimension, Orientation orientation)    {        Vector vSubTypes = new Vector();        if (sDimension.equals("2D") || sDimension.equals(ChartDimension.TWO_DIMENSIONAL_LITERAL.getName())) //$NON-NLS-1$        {            if (orientation.equals(Orientation.VERTICAL_LITERAL))            {                imgStacked = UIHelper.getImage("icons/full/wizban/stackedlinechartimage.gif"); //$NON-NLS-1$                imgPercentStacked = UIHelper.getImage("icons/full/wizban/percentstackedlinechartimage.gif"); //$NON-NLS-1$                imgSideBySide = UIHelper.getImage("icons/full/wizban/sidebysidelinechartimage.gif"); //$NON-NLS-1$            }            else            {                imgStacked = UIHelper.getImage("icons/full/wizban/horizontalstackedlinechartimage.gif"); //$NON-NLS-1$                imgPercentStacked = UIHelper.getImage("icons/full/wizban/horizontalpercentstackedlinechartimage.gif"); //$NON-NLS-1$                imgSideBySide = UIHelper.getImage("icons/full/wizban/horizontalsidebysidelinechartimage.gif"); //$NON-NLS-1$            }            vSubTypes.add(new DefaultChartSubTypeImpl("Stacked", imgStacked, sStackedDescription)); //$NON-NLS-1$            vSubTypes                .add(new DefaultChartSubTypeImpl("Percent Stacked", imgPercentStacked, sPercentStackedDescription)); //$NON-NLS-1$            vSubTypes.add(new DefaultChartSubTypeImpl("Overlay", imgSideBySide, sOverlayDescription)); //$NON-NLS-1$        }        else if (sDimension.equals("2D With Depth") //$NON-NLS-1$            || sDimension.equals(ChartDimension.TWO_DIMENSIONAL_WITH_DEPTH_LITERAL.getName()))        {            if (orientation.equals(Orientation.VERTICAL_LITERAL))            {                imgStackedWithDepth = UIHelper.getImage("icons/full/wizban/stackedlinechartwithdepthimage.gif"); //$NON-NLS-1$                imgPercentStackedWithDepth = UIHelper.getImage("icons/full/wizban/percentstackedlinechartwithdepthimage.gif"); //$NON-NLS-1$                imgSideBySideWithDepth = UIHelper.getImage("icons/full/wizban/sidebysidelinechartwithdepthimage.gif"); //$NON-NLS-1$            }            else            {                imgStackedWithDepth = UIHelper.getImage("icons/full/wizban/horizontalstackedlinechartwithdepthimage.gif"); //$NON-NLS-1$                imgPercentStackedWithDepth = UIHelper                    .getImage("icons/full/wizban/horizontalpercentstackedlinechartwithdepthimage.gif"); //$NON-NLS-1$                imgSideBySideWithDepth = UIHelper.getImage("icons/full/wizban/horizontalsidebysidelinechartwithdepthimage.gif"); //$NON-NLS-1$            }            vSubTypes.add(new DefaultChartSubTypeImpl("Stacked", imgStackedWithDepth, sStackedDescription)); //$NON-NLS-1$            vSubTypes.add(new DefaultChartSubTypeImpl("Percent Stacked", imgPercentStackedWithDepth, //$NON-NLS-1$                sPercentStackedDescription));            vSubTypes.add(new DefaultChartSubTypeImpl("Overlay", imgSideBySideWithDepth, sOverlayDescription)); //$NON-NLS-1$        }        else if (sDimension.equals("3D") || sDimension.equals(ChartDimension.THREE_DIMENSIONAL_LITERAL.getName())) //$NON-NLS-1$        {            imgSideBySide3D = UIHelper.getImage("icons/full/wizban/sidebysidelinechart3dimage.gif"); //$NON-NLS-1$            vSubTypes.add(new DefaultChartSubTypeImpl("Side-by-side", imgSideBySide3D, sOverlayDescription)); //$NON-NLS-1$        }        return vSubTypes;    }