vSubTypes.add(new DefaultChartSubTypeImpl("Stacked", imgStacked, sStackedDescription)); vSubTypes .add(new DefaultChartSubTypeImpl("Percent Stacked", imgPercentStacked, sPercentStackedDescription)); vSubTypes.add(new DefaultChartSubTypeImpl("Side-by-side", imgSideBySide, sSideBySideDescription)); } 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/stackedbarchartwithdepthimage.gif"); imgPercentStackedWithDepth = UIHelper.getImage("icons/full/wizban/percentstackedbarchartwithdepthimage.gif"); imgSideBySideWithDepth = UIHelper.getImage("icons/full/wizban/sidebysidebarchartwithdepthimage.gif"); } else { imgStackedWithDepth = UIHelper.getImage("icons/full/wizban/horizontalstackedbarchartwithdepthimage.gif"); imgPercentStackedWithDepth = UIHelper .getImage("icons/full/wizban/horizontalpercentstackedbarchartwithdepthimage.gif"); imgSideBySideWithDepth = UIHelper.getImage("icons/full/wizban/horizontalsidebysidebarchartwithdepthimage.gif"); } vSubTypes.add(new DefaultChartSubTypeImpl("Stacked", imgStackedWithDepth, sStackedDescription)); vSubTypes.add(new DefaultChartSubTypeImpl("Percent Stacked", imgPercentStackedWithDepth, sPercentStackedDescription)); vSubTypes.add(new DefaultChartSubTypeImpl("Side-by-side", imgSideBySideWithDepth, sSideBySideDescription)); } else if (sDimension.equals("3D") || sDimension.equals(ChartDimension.THREE_DIMENSIONAL_LITERAL.getName())) { if (orientation.equals(Orientation.VERTICAL_LITERAL)) { imgSideBySide3D = UIHelper.getImage("icons/full/wizban/sidebysidebarchart3dimage.gif"); } else { imgSideBySide3D = UIHelper.getImage("icons/full/wizban/horizontalsidebysidebarchart3dimage.gif"); } vSubTypes.add(new DefaultChartSubTypeImpl("Side-by-side", imgSideBySide3D, sSideBySideDescription)); } return vSubTypes; }
vSubTypes.add( new DefaultChartSubTypeImpl( "Stacked", imgStacked, sStackedDescription ) ); vSubTypes.add( new DefaultChartSubTypeImpl( "Percent Stacked", imgPercentStacked, sPercentStackedDescription ) ); vSubTypes.add( new DefaultChartSubTypeImpl( "Side-by-side", imgSideBySide, sSideBySideDescription ) ); } 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/stackedbarchartwithdepthimage.gif" ); imgPercentStackedWithDepth = UIHelper.getImage( "icons/full/wizban/percentstackedbarchartwithdepthimage.gif" ); imgSideBySideWithDepth = UIHelper.getImage( "icons/full/wizban/sidebysidebarchartwithdepthimage.gif" ); } else { imgStackedWithDepth = UIHelper.getImage( "icons/full/wizban/horizontalstackedbarchartwithdepthimage.gif" ); imgPercentStackedWithDepth = UIHelper.getImage( "icons/full/wizban/horizontalpercentstackedbarchartwithdepthimage.gif" ); imgSideBySideWithDepth = UIHelper.getImage( "icons/full/wizban/horizontalsidebysidebarchartwithdepthimage.gif" ); } vSubTypes.add( new DefaultChartSubTypeImpl( "Stacked", imgStackedWithDepth, sStackedDescription ) ); vSubTypes.add( new DefaultChartSubTypeImpl( "Percent Stacked", imgPercentStackedWithDepth, sPercentStackedDescription ) ); vSubTypes.add( new DefaultChartSubTypeImpl( "Side-by-side", imgSideBySideWithDepth, sSideBySideDescription ) ); } else if ( sDimension.equals( THREE_DIMENSION_TYPE ) || sDimension.equals( ChartDimension.THREE_DIMENSIONAL_LITERAL.getName( ) ) ) { if ( orientation.equals( Orientation.VERTICAL_LITERAL ) ) { imgSideBySide3D = UIHelper.getImage( "icons/full/wizban/sidebysidebarchart3dimage.gif" ); } else { imgSideBySide3D = UIHelper.getImage( "icons/full/wizban/horizontalsidebysidebarchart3dimage.gif" ); } vSubTypes.add( new DefaultChartSubTypeImpl( "Side-by-side", imgSideBySide3D, sSideBySideDescription ) ); } return vSubTypes; }
    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/stackedbarchartimage.gif"); //$NON-NLS-1$                imgPercentStacked = UIHelper.getImage("icons/full/wizban/percentstackedbarchartimage.gif"); //$NON-NLS-1$                imgSideBySide = UIHelper.getImage("icons/full/wizban/sidebysidebarchartimage.gif"); //$NON-NLS-1$            }            else            {                imgStacked = UIHelper.getImage("icons/full/wizban/horizontalstackedbarchartimage.gif"); //$NON-NLS-1$                imgPercentStacked = UIHelper.getImage("icons/full/wizban/horizontalpercentstackedbarchartimage.gif"); //$NON-NLS-1$                imgSideBySide = UIHelper.getImage("icons/full/wizban/horizontalsidebysidebarchartimage.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("Side-by-side", imgSideBySide, sSideBySideDescription)); //$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/stackedbarchartwithdepthimage.gif"); //$NON-NLS-1$                imgPercentStackedWithDepth = UIHelper.getImage("icons/full/wizban/percentstackedbarchartwithdepthimage.gif"); //$NON-NLS-1$                imgSideBySideWithDepth = UIHelper.getImage("icons/full/wizban/sidebysidebarchartwithdepthimage.gif"); //$NON-NLS-1$            }            else            {                imgStackedWithDepth = UIHelper.getImage("icons/full/wizban/horizontalstackedbarchartwithdepthimage.gif"); //$NON-NLS-1$                imgPercentStackedWithDepth = UIHelper                    .getImage("icons/full/wizban/horizontalpercentstackedbarchartwithdepthimage.gif"); //$NON-NLS-1$                imgSideBySideWithDepth = UIHelper.getImage("icons/full/wizban/horizontalsidebysidebarchartwithdepthimage.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("Side-by-side", imgSideBySideWithDepth, sSideBySideDescription)); //$NON-NLS-1$        }        else if (sDimension.equals("3D") || sDimension.equals(ChartDimension.THREE_DIMENSIONAL_LITERAL.getName())) //$NON-NLS-1$        {            if (orientation.equals(Orientation.VERTICAL_LITERAL))            {                imgSideBySide3D = UIHelper.getImage("icons/full/wizban/sidebysidebarchart3dimage.gif"); //$NON-NLS-1$            }            else            {                imgSideBySide3D = UIHelper.getImage("icons/full/wizban/horizontalsidebysidebarchart3dimage.gif"); //$NON-NLS-1$            }            vSubTypes.add(new DefaultChartSubTypeImpl("Side-by-side", imgSideBySide3D, sSideBySideDescription)); //$NON-NLS-1$        }        return vSubTypes;    }