Examples of LineChart


Examples of com.salas.bb.utils.uif.charts.LineChart

        DateFormatSymbols dfs = new DateFormatSymbols();
        for (int i = 0; i < 7; i++) days[i] = dfs.getWeekdays()[Calendar.SUNDAY + i];

        LineChartConfig config = new LineChartConfig();
        LineChartData dataByDay = new LineChartData(readByDayTotal, days);
        LineChart chartByDay = new LineChart(dataByDay, config);

        LineChartData dataByDayReset = new LineChartData(readByDayReset, days);
        LineChart chartByDayReset = new LineChart(dataByDayReset, config);

        // Initialize the panel itself
        setBackground(config.getBackgroundColor());

        // Build the layout
View Full Code Here

Examples of de.willuhn.jameica.hbci.gui.chart.LineChart

      {
        Container container = new SimpleContainer(parent);
        container.addInput(this.getRange());
      }
     
      this.chart = new LineChart();
     
//      if (this.tiny)
//      {
        this.reloadListener.handleEvent(null); // einmal initial ausloesen
        chart.paint(parent);
View Full Code Here

Examples of it.eng.spagobi.engines.kpi.bo.charttypes.trendcharts.LineChart

      else if(subtype.equalsIgnoreCase("BulletGraph")){
        sbi= new BulletGraph();
        logger.debug("Meter chart instanciated");
      }
      else if(subtype.equalsIgnoreCase("LineChart")){
        sbi= new LineChart();
        logger.debug("Line chart instanciated");
      }     
      logger.debug("OUT")
    return sbi;
  }
View Full Code Here

Examples of javafx.scene.chart.LineChart

    private void initialize() {
        final CategoryAxis xAxis = new CategoryAxis();
        final NumberAxis yAxis = new NumberAxis();
        yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis, yUnit, null));
        final LineChart chart = new LineChart(xAxis, yAxis);
        chart.setLegendVisible(false);
        chart.setTitle(title);
        yAxis.setLabel(yAxisTitle);
        yAxis.setForceZeroInRange(true);
        this.series = new XYChart.Series<String, Number>();
        chart.getData().add(series);
        this.chart = chart;
        this.chart.setId("snapshotChart");
        deactivate();
    }
View Full Code Here

Examples of jofc2.model.elements.LineChart

   *
   * @return the generated element
   */
  @SuppressWarnings("unchecked")
  private Element createLine(OFC ofc, int s) {
    LineChart e = new LineChart();

    if (ofc.getPallete() != null) {
      e.setColour(ofc.getPallete()[s]);
    } else {
      e.setColour("#E2D66A");
    }
    Comparable serie = model.getSeries(s);
    e.setText((String) serie);
    List<Dot> values = new ArrayList<Dot>();
    for (Iterator itCategories = model.getCategories().iterator(); itCategories
        .hasNext();) {
      Comparable category = (Comparable) itCategories.next();
      Number value = model.getValue(serie, category);
      Dot d = new Dot(value);
      d.setDotSize(1);
      values.add(d);
    }
    e.addDots(values);
    return e;
  }
View Full Code Here

Examples of ofc4j.model.elements.LineChart

public class AreaChartFactory extends LineChartFactory {

  @Override
  public LineChart getLineChartFromColumn( int col ) {
    LineChart ac = null;
    if ( linechartstyle != LineChart.Style.HOLLOW ) {
      AreaLineChart ahc = new AreaLineChart();
      ahc.setFill( getColor( col ) );
      ac = ahc;
    } else {
      AreaHollowChart ahc = new AreaHollowChart();
      ahc.setFill( getColor( col ) );
      ac = ahc;
    }

    Number[] numbers = new Number[getRowCount()];
    for ( int row = 0; row < getRowCount(); row++ ) {
      numbers[row] = ( (Number) getValueAt( row, col ) ).doubleValue();
    }

    ac.addValues( numbers );
    ac.setColour( getColor( col ) );

    if ( linechartwidth != null ) {
      ac.setWidth( linechartwidth );
    }
    if ( tooltipText != null ) {
      ac.setTooltip( tooltipText );
    }

    // set the title for this series
    ac.setText( getColumnHeader( col ) );

    // set the onclick event to the base url template
    if ( null != baseURLTemplate ) {
      ac.setOn_click( baseURLTemplate );
    }
    if ( alpha != null ) {
      ac.setAlpha( alpha );
    }

    return ac;
  }
View Full Code Here

Examples of ofc4j.model.elements.LineChart

      if ( getValue( (Node) node ) != null ) {
        bars.add( getValue( (Node) node ) );
      }
    }
    if ( !bars.contains( text ) ) {
      LineChart lc = lineChartFactory.getLineChartFromColumn( col );
      lc.setRightYAxis();
      return lc;
    } else {
      return getVerticalBarChartFromColumn( col );
    }
View Full Code Here

Examples of ofc4j.model.elements.LineChart

      }
    }
  }

  public LineChart getLineChartFromColumn( int col ) {
    LineChart lc = new LineChart( this.linechartstyle );
    for ( int row = 0; row < getRowCount(); row++ ) {
      double d = ( (Number) getValueAt( row, col ) ).doubleValue();
      LineChart.Dot dot = new LineChart.Dot( d );

      if ( dotwidth != null ) {
        dot.setDotSize( dotwidth );
      }
      lc.addDots( dot );
    }
    if ( linechartwidth != null ) {
      lc.setWidth( linechartwidth );
    }

    lc.setColour( getColor( col ) );

    if ( tooltipText != null ) {
      lc.setTooltip( tooltipText );
    }

    // set the title for this series
    lc.setText( getColumnHeader( col ) );

    // set the onclick event to the base url template
    if ( null != baseURLTemplate ) {
      lc.setOn_click( baseURLTemplate );
    }

    if ( alpha != null ) {
      lc.setAlpha( alpha );
    }

    return lc;
  }
View Full Code Here

Examples of org.apache.jmeter.testelement.LineChart

        add(pane,BorderLayout.NORTH);
        add(options,BorderLayout.CENTER);
    }

    public TestElement createTestElement() {
        LineChart element = new LineChart();
        modifyTestElement(element);
        return element;
    }
View Full Code Here

Examples of org.apache.jmeter.testelement.LineChart

        return element;
    }

    public void modifyTestElement(TestElement element) {
        this.configureTestElement(element);
        LineChart bc = (LineChart)element;
        bc.setXAxis(xItems.getText());
        bc.setYAxis(yItems.getText());
        bc.setXLabel(xAxisLabel.getText());
        bc.setYLabel(yAxisLabel.getText());
        bc.setCaption(caption.getText());
        bc.setURLs(urls.getText());
    }
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.