Package it.eng.spagobi.jpivotaddins.bean

Examples of it.eng.spagobi.jpivotaddins.bean.AnalysisBean


     * @return
     */
    public static AnalysisBean createAnalysisBean(String connectionName,String catalogUri, ChartComponent chart,
                                          TableComponent table, OlapModel olapModel) {
      logger.debug("IN");
        AnalysisBean analysis = new AnalysisBean();
        analysis.setConnectionName(connectionName);
        analysis.setCatalogUri(catalogUri);
        //analysis.setShowPareto(true);
        analysis.setShowChart(((ComponentSupport)chart).isVisible());
        analysis.setShowTable(((ComponentSupport)table).isVisible());
        analysis.setChartTitle(chart.getChartTitle());
        analysis.setFontName(chart.getFontName());
        analysis.setFontStyle(chart.getFontStyle());
        analysis.setFontSize(chart.getFontSize());
        analysis.setSlicerFontName(chart.getSlicerFontName());
        analysis.setSlicerFontStyle(chart.getSlicerFontStyle());
        analysis.setSlicerFontSize(chart.getSlicerFontSize());
        analysis.setAxisFontName(chart.getAxisFontName());
        analysis.setAxisFontSize(chart.getAxisFontSize());
        analysis.setAxisFontStyle(chart.getAxisFontStyle());
        analysis.setLegendFontName(chart.getLegendFontName());
        analysis.setLegendFontStyle(chart.getLegendFontStyle());
        analysis.setLegendFontSize(chart.getLegendFontSize());
        analysis.setLegendPosition(chart.getLegendPosition());
        analysis.setSlicerPosition(chart.getSlicerPosition());
        analysis.setSlicerAlignment(chart.getSlicerAlignment());
        analysis.setChartType(chart.getChartType());
        analysis.setChartHeight(chart.getChartHeight());
        analysis.setChartWidth(chart.getChartWidth());
        analysis.setHorizAxisLabel(chart.getHorizAxisLabel());
        analysis.setVertAxisLabel(chart.getVertAxisLabel());
        analysis.setAxisTickFontName(chart.getAxisTickFontName());
        analysis.setAxisTickFontSize(chart.getAxisTickFontSize());
        analysis.setAxisTickFontStyle(chart.getAxisTickFontStyle());
        analysis.setShowLegend(chart.getShowLegend());
        analysis.setShowSlicer(chart.isShowSlicer());
        analysis.setDrillThroughEnabled(chart.isDrillThroughEnabled());
        analysis.setTickLabelRotate(chart.getTickLabelRotate());
        //analysis.setForegroundAlpha(chart.getForegroundAlpha());
        //analysis.setUseChartSize(chart.isUseChartSize());
        analysis.setBgColorB(chart.getBgColorB());
        analysis.setBgColorG(chart.getBgColorG());
        analysis.setBgColorR(chart.getBgColorR());

        AxisStyleUI asu = (AxisStyleUI) table.getExtensions().get(AxisStyleUI.ID);
        analysis.setLevelStyle(asu.isLevelStyle());
        analysis.setHideSpans(asu.isHideSpans());

        // only if we have an xmla model
        // logger.info(olapModel.getClass().getName());
        if (olapModel.getBookmarkState(0) instanceof MondrianMemento) {
      MondrianMemento olapMem = (MondrianMemento) olapModel
          .getBookmarkState(0);
            analysis.setMdxQuery(olapMem.getMdxQuery());
            //analysis.setXmlaUri(olapMem.getUri());
            //analysis.setCatalog(olapMem.getCatalog());
        }
       
        logger.debug("OUT");
View Full Code Here


     * @param olapModel
     * @return
     */
    public static AnalysisBean createAnalysisBean(String connectionName,String catalogUri,String catalog,  ChartComponent chart,
                                          TableComponent table, OlapModel olapModel) {
        AnalysisBean analysis = new AnalysisBean();
        analysis.setConnectionName(connectionName);
        analysis.setCatalogUri(catalogUri);
        analysis.setCatalog(catalog);
        //analysis.setShowPareto(true);
        analysis.setShowChart(((ComponentSupport)chart).isVisible());
        analysis.setShowTable(((ComponentSupport)table).isVisible());
        analysis.setChartTitle(chart.getChartTitle());
        analysis.setFontName(chart.getFontName());
        analysis.setFontStyle(chart.getFontStyle());
        analysis.setFontSize(chart.getFontSize());
        analysis.setSlicerFontName(chart.getSlicerFontName());
        analysis.setSlicerFontStyle(chart.getSlicerFontStyle());
        analysis.setSlicerFontSize(chart.getSlicerFontSize());
        analysis.setAxisFontName(chart.getAxisFontName());
        analysis.setAxisFontSize(chart.getAxisFontSize());
        analysis.setAxisFontStyle(chart.getAxisFontStyle());
        analysis.setLegendFontName(chart.getLegendFontName());
        analysis.setLegendFontStyle(chart.getLegendFontStyle());
        analysis.setLegendFontSize(chart.getLegendFontSize());
        analysis.setLegendPosition(chart.getLegendPosition());
        analysis.setSlicerPosition(chart.getSlicerPosition());
        analysis.setSlicerAlignment(chart.getSlicerAlignment());
        analysis.setChartType(chart.getChartType());
        analysis.setChartHeight(chart.getChartHeight());
        analysis.setChartWidth(chart.getChartWidth());
        analysis.setHorizAxisLabel(chart.getHorizAxisLabel());
        analysis.setVertAxisLabel(chart.getVertAxisLabel());
        analysis.setAxisTickFontName(chart.getAxisTickFontName());
        analysis.setAxisTickFontSize(chart.getAxisTickFontSize());
        analysis.setAxisTickFontStyle(chart.getAxisTickFontStyle());
        analysis.setShowLegend(chart.getShowLegend());
        analysis.setShowSlicer(chart.isShowSlicer());
        analysis.setDrillThroughEnabled(chart.isDrillThroughEnabled());
        analysis.setTickLabelRotate(chart.getTickLabelRotate());
        //analysis.setForegroundAlpha(chart.getForegroundAlpha());
        //analysis.setUseChartSize(chart.isUseChartSize());
        analysis.setBgColorB(chart.getBgColorB());
        analysis.setBgColorG(chart.getBgColorG());
        analysis.setBgColorR(chart.getBgColorR());

        AxisStyleUI asu = (AxisStyleUI) table.getExtensions().get(AxisStyleUI.ID);
        analysis.setLevelStyle(asu.isLevelStyle());
        analysis.setHideSpans(asu.isHideSpans());

       
        Memento olapMem = (Memento) olapModel.getBookmarkState(0);
        analysis.setMdxQuery(olapMem.getMdxQuery());
       
        // only if we have an xmla model
        // logger.info(olapModel.getClass().getName());
        /*
        if (olapModel.getBookmarkState(0) instanceof MondrianMemento) {
View Full Code Here

    // retrieves analysis information from session
    HttpSession session = request.getSession();
    OlapModel olapModel = (OlapModel) session.getAttribute("query01");
    ChartComponent chart = (ChartComponent) session.getAttribute("chart01");
    TableComponent table = (TableComponent) session.getAttribute("table01");
    AnalysisBean analysis = (AnalysisBean) session.getAttribute("analysisBean");
    analysis = AnalysisAdapterUtil.createAnalysisBean(analysis.getConnectionName(), analysis.getCatalogUri(),
      chart, table, olapModel);
    // stores current analysis information on session
    session.setAttribute("analysisBean", analysis);
   
    // retrieves Mondrian connection
View Full Code Here

TOP

Related Classes of it.eng.spagobi.jpivotaddins.bean.AnalysisBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.