Examples of ChartView


Examples of com.projity.pm.graphic.views.ChartView

    return reportView;
  }

  public ChartView getChartView() {
    if (chartView == null) {
      chartView = new ChartView(this, false, graphicManager.getMenuManager(),mainView.getSynchronizer(),addTransformerInitializationClosure());
      chartView.init(coord);
      restoreWorkspaceFor(chartView);
    }
    return chartView;
  }
View Full Code Here

Examples of com.projity.pm.graphic.views.ChartView

    return chartView;
  }

  public ChartView getHistogramView() {
    if (histogramView == null) {
      histogramView = new ChartView(this, true, graphicManager
          .getMenuManager(),mainView.getSynchronizer(),addTransformerInitializationClosure());
      histogramView.init(coord);
      restoreWorkspaceFor(histogramView);
    }
    return histogramView;
View Full Code Here

Examples of com.skymobi.monitor.model.ChartView

    }

    @RequestMapping(value = "/projects/{projectName}/metrics/add", method = RequestMethod.POST)
    public @ResponseBody
    ChartView addMetricView(ModelMap map, @PathVariable String projectName,HttpEntity<ChartView> entity ) {
        ChartView chartView=entity.getBody();
        Assert.notNull(chartView.getTitle());
        Project project = projectService.findProject(projectName);
        project.getChartViews().add(chartView);
        projectService.saveProject(project);
        return  chartView;
    }
View Full Code Here

Examples of com.skymobi.monitor.model.ChartView

    @RequestMapping(value = "/projects/{projectName}/metrics/show", method = RequestMethod.GET)
    public @ResponseBody ModelMap  show(ModelMap map, @PathVariable String projectName, String title) {
        Project project = projectService.findProject(projectName);

        List<List<MetricValue>>  metricLists=Lists.newArrayList();
            ChartView view = null;
        for(ChartView chartView:project.getChartViews()){
            if(title.equals(chartView.getTitle()))
            {
                view=chartView;
                break;
            }
        }
        if(view!=null){
            for(String name:view.getMetricNames()){
                metricLists.add(project.findMetricData(name));
            }

            map.put("data", ChartUtil.format(metricLists,false));
        }
View Full Code Here

Examples of com.skymobi.monitor.model.ChartView

        List<ChartView> chartViews = project.getChartViews();
        Map<String, String> views = project.getViews();

        if (chartViews.isEmpty() && !views.isEmpty()) {
            for (String metricName : views.keySet()) {
                ChartView view=new ChartView();
                view.setTitle(metricName);
                view.setMetricNames(Lists.newArrayList(views.get(metricName).split(",")));
                chartViews.add(view);
            }

        }
        if (chartViews.isEmpty()) {
            for (String metricName : project.findMetricNames())  {
                ChartView view=new ChartView();
                view.setTitle(metricName);
                view.setMetricNames(Lists.newArrayList(metricName));
                chartViews.add(view);
            }
        }
    }
View Full Code Here

Examples of org.apache.pivot.charts.ChartView

    @Override
    public void install(Component component) {
        super.install(component);

        // Add listeners
        ChartView chartView = (ChartView)component;
        chartView.getChartViewListeners().add(this);
        chartView.getChartViewCategoryListeners().add(this);
        chartView.getChartViewSeriesListeners().add(this);
    }
View Full Code Here

Examples of org.apache.pivot.charts.ChartView

    @Override
    public void install(Component component) {
        super.install(component);

        // Add listeners
        ChartView chartView = (ChartView)component;
        chartView.getChartViewListeners().add(this);
        chartView.getChartViewCategoryListeners().add(this);
        chartView.getChartViewSeriesListeners().add(this);
    }
View Full Code Here

Examples of org.apache.pivot.charts.ChartView

    }

    @Override
    public void uninstall() {
        // Remove listeners
        ChartView chartView = (ChartView)getComponent();
        chartView.getChartViewListeners().remove(this);
        chartView.getChartViewCategoryListeners().remove(this);
        chartView.getChartViewSeriesListeners().remove(this);

        super.uninstall();
    }
View Full Code Here

Examples of org.openfaces.component.chart.ChartView

    @Override
    public void setComponentProperties(FacesContext facesContext, UIComponent component) {
        super.setComponentProperties(facesContext, component);

        ChartView view = (ChartView) component;

        setBooleanProperty(component, "enable3D");
        setColorProperty(component, "wallColor");

        setValueExpressionProperty(view, "tooltip");
View Full Code Here

Examples of org.openfaces.component.chart.ChartView

        sb.append(StringUtils.getLineSeparator());

        EntityCollection entities = info.getEntityCollection();
        if (entities != null) {
            int count = entities.getEntityCount();
            ChartView view = chart.getChartView();

            for (int i = count - 1; i >= 0; i--) {
                ChartEntity entity = entities.getEntity(i);

                if (entity.getToolTipText() == null &&
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.