Examples of Chart


Examples of org.krysalis.jcharts.Chart

  /**********************************************************************************************
   *
   **********************************************************************************************/
  public void service( HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse ) throws ServletException, IOException
  {
    Chart chart = (Chart) httpServletRequest.getSession().getAttribute( CHART );

    try
    {
      //---call encode just like you would normally
      ServletEncoderHelper.encodeJPEG13( chart, 1.0f, httpServletResponse );
View Full Code Here

Examples of org.libreplan.web.planner.chart.Chart

                ResourceLoadDisplayData generatedData, TimeTracker timeTracker) {
            Timeplot chartLoadTimeplot = createEmptyTimeplot();

            ResourceLoadChartFiller chartFiller =
                    new ResourceLoadChartFiller(generatedData);
            loadChart = new Chart(chartLoadTimeplot,
                    chartFiller, timeTracker);
            loadChart.setZoomLevel(timeTracker.getDetailLevel());
            chartFiller.initializeResources();
            if (resourcesLoadPanel.isVisibleChart()) {
                loadChart.fillChart();
View Full Code Here

Examples of org.mapstruct.ap.test.nestedsourceproperties.source.Chart

        Song song = new Song();
        song.setArtist( artist );
        song.setTitle( "A Hard Day's Night" );

        Chart chart = new Chart();
        chart.setName( "Billboard" );
        chart.setType( "record-sales" );

        ChartEntry chartEntry = ArtistToChartEntry.MAPPER.map( chart, song, 1 );

        assertThat( chartEntry ).isNotNull();
        assertThat( chartEntry.getArtistName() ).isEqualTo( "The Beatles" );
View Full Code Here

Examples of org.moxieapps.gwt.highcharts.client.Chart

    }


    protected QuickChartWidget(String[] categories, Cursor cursor)
    {
        this.chart = new Chart()
                .setType(COLUMN)
                .setChartTitleText(null)
                .setBackgroundColor(BACKGROUND_COLOR)
                .setLegend(new Legend().setEnabled(false))
                .setExporting(new Exporting().setEnabled(false))
View Full Code Here

Examples of org.odftoolkit.simple.chart.Chart

      Rectangle rect = new Rectangle();
      rect.x = 367;
      rect.y = 389;
      rect.width = 379;
      rect.height = 424;
      Chart spChart = spDocument.createChart(title, dataset, rect);
      Assert.assertNotNull(spChart);
      spChart.setChartType(ChartType.AREA);
      //save
      spDocument.save(ResourceUtilities.getAbsolutePath(TEST_FILE));
     
      Assert.assertEquals(dataset, spChart.getChartData());
      Assert.assertEquals("XXXTitle", spChart.getChartTitle());
      Assert.assertEquals(ChartType.AREA, spChart.getChartType());
     
      System.out.println("spChart--> " + spChart);
     
    } catch (Exception e) {
      LOG.log(Level.SEVERE, e.getMessage(), e);
View Full Code Here

Examples of org.odftoolkit.simple.chart.Chart

    String[] labels = {"hello", "hi","odf"};
    String[] legends = {"hello1", "hi1","odf1"};
    double[][] data = {{1.11, 43.23}, {3.22, 4.00, 5.43}, {121.99, 123.1, 423.00}};
    DataSet dataset = new DataSet(labels, legends, data);
    Rectangle rect = new Rectangle();
    Chart chart = tdoc.createChart(title, dataset, rect);
    chart.setChartType(ChartType.AREA);
    Assert.assertEquals(ChartType.AREA, chart.getChartType());
    Assert.assertEquals("title_name", chart.getChartTitle());
    Assert.assertEquals(dataset, chart.getChartData());
   
    //save
    tdoc.save(ResourceUtilities.getAbsolutePath("headerFooterHidden.odt"));
  }
View Full Code Here

Examples of org.odftoolkit.simple.chart.Chart

    String[] labels = {"hello", "hi","odf"};
    String[] legends = {"hello1", "hi1","odf1"};
    double[][] data = {{1.11, 43.23}, {3.22, 4.00, 5.43}, {121.99, 123.1, 423.00}};
    DataSet dataset = new DataSet(labels, legends, data);
    Rectangle rect = new Rectangle();
    Chart chart = tdoc.createChart(title, dataset, rect);
    List chartA = tdoc.getChartByTitle("title_name");
    chart.setChartType(ChartType.AREA);
    Assert.assertEquals(ChartType.AREA, chart.getChartType());
    Assert.assertEquals("title_name", chart.getChartTitle());
    Assert.assertEquals(dataset, chart.getChartData());
   
    int count = tdoc.getChartCount();
    Assert.assertEquals(chartA.size(), count);
   
    //save
View Full Code Here

Examples of org.open2jam.parsers.Chart

    public boolean isCellEditable(int rowIndex, int columnIndex) {
        return false;
    }

    public Object getValueAt(int rowIndex, int columnIndex) {
        Chart c = items.get(rowIndex);
        switch(columnIndex)
        {
            case 0:return c.getLevel();
            case 1:return c.getNoteCount();
            case 2:return c.getKeys();
        }
        return null;
    }
View Full Code Here

Examples of org.openfaces.component.chart.Chart

    }

    @Override
    public void setComponentProperties(FacesContext context, UIComponent component) {
        super.setComponentProperties(context, component);
        Chart chart = (Chart) component;

        setStringProperty(chart, "textStyle");
        setValueExpressionProperty(chart, "model");
        setEnumerationProperty(chart, "view", ChartViewType.class);

        String titleText = getPropertyValue("titleText");
        if (titleText != null) {
            ChartTitle title = new ChartTitle();
            title.setId(Components.generateIdWithSuffix(chart, "chartTitle"));
            setStringProperty(title, "text", titleText, "titleText");
            chart.getChildren().add(title);
            title.setTextStyle("font-size: 14pt;");
        }

        setIntProperty(chart, "height");
        setIntProperty(chart, "width");
View Full Code Here

Examples of org.openhab.model.sitemap.Chart

 
  /**
   * {@inheritDoc}
   */
  public EList<Widget> renderWidget(Widget w, StringBuilder sb) throws RenderException {
    Chart chart = (Chart) w;
   
    try {
      String itemParam = null;
      Item item = itemUIRegistry.getItem(chart.getItem());
      if(item instanceof GroupItem) {
        itemParam = "groups=" + chart.getItem();
      } else {
        itemParam = "items=" + chart.getItem();
      }
     
      String url = "/chart?" + itemParam + "&period=" + chart.getPeriod() + "&random=1";
      if(chart.getService() != null)
        url += "&service=" + chart.getService();
     
      String snippet = getSnippet("image");     

      if(chart.getRefresh()>0) {
        snippet = StringUtils.replace(snippet, "%setrefresh%", "<script type=\"text/javascript\">imagesToRefreshOnPage=1</script>");
        snippet = StringUtils.replace(snippet, "%refresh%", "id=\"%id%\" onload=\"setTimeout('reloadImage(\\'%url%\\', \\'%id%\\')', " + chart.getRefresh() + ")\"");
      } else {
        snippet = StringUtils.replace(snippet, "%setrefresh%", "");
        snippet = StringUtils.replace(snippet, "%refresh%", "");
      }

      snippet = StringUtils.replace(snippet, "%id%", itemUIRegistry.getWidgetId(w));
      snippet = StringUtils.replace(snippet, "%url%", url);
      snippet = StringUtils.replace(snippet, "%refresh%", Integer.toString(chart.getRefresh()));
     
      sb.append(snippet);
    } catch (ItemNotFoundException e) {
      logger.warn("Chart cannot be rendered as item '{}' does not exist.", chart.getItem());
    }
    return 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.