Examples of JRScatterPlot


Examples of net.sf.jasperreports.charts.JRScatterPlot

        false);

    configureChart(jfreeChart);
    XYLineAndShapeRenderer plotRenderer = (XYLineAndShapeRenderer) ((XYPlot)jfreeChart.getPlot()).getRenderer();

    JRScatterPlot scatterPlot = (JRScatterPlot) getPlot();
    boolean isShowLines = scatterPlot.getShowLines() == null ? true : scatterPlot.getShowLines().booleanValue();
    boolean isShowShapes = scatterPlot.getShowShapes() == null ? true : scatterPlot.getShowShapes().booleanValue();
   
    plotRenderer.setBaseLinesVisible(isShowLines);
    plotRenderer.setBaseShapesVisible(isShowShapes);

    // Handle the axis formating for the category axis
    configureAxis(jfreeChart.getXYPlot().getDomainAxis(), scatterPlot.getXAxisLabelFont(),
        scatterPlot.getXAxisLabelColor(), scatterPlot.getXAxisTickLabelFont(),
        scatterPlot.getXAxisTickLabelColor(), scatterPlot.getXAxisTickLabelMask(), scatterPlot.getXAxisVerticalTickLabels(),
        scatterPlot.getXAxisLineColor(), false,
        (Comparable)evaluateExpression(scatterPlot.getDomainAxisMinValueExpression()),
        (Comparable)evaluateExpression(scatterPlot.getDomainAxisMaxValueExpression()));

    // Handle the axis formating for the value axis
    configureAxis(jfreeChart.getXYPlot().getRangeAxis(), scatterPlot.getYAxisLabelFont(),
        scatterPlot.getYAxisLabelColor(), scatterPlot.getYAxisTickLabelFont(),
        scatterPlot.getYAxisTickLabelColor(), scatterPlot.getYAxisTickLabelMask(), scatterPlot.getYAxisVerticalTickLabels(),
        scatterPlot.getYAxisLineColor(), true,
        (Comparable)evaluateExpression(scatterPlot.getRangeAxisMinValueExpression()),
        (Comparable)evaluateExpression(scatterPlot.getRangeAxisMaxValueExpression()));

    return jfreeChart;
  }
View Full Code Here

Examples of net.sf.jasperreports.charts.JRScatterPlot

        false);

    configureChart(jfreeChart, getPlot());
    XYLineAndShapeRenderer plotRenderer = (XYLineAndShapeRenderer) ((XYPlot)jfreeChart.getPlot()).getRenderer();

    JRScatterPlot scatterPlot = (JRScatterPlot) getPlot();
    boolean isShowLines = scatterPlot.getShowLines() == null ? true : scatterPlot.getShowLines().booleanValue();
    boolean isShowShapes = scatterPlot.getShowShapes() == null ? true : scatterPlot.getShowShapes().booleanValue();
   
    plotRenderer.setBaseLinesVisible(isShowLines);
    plotRenderer.setBaseShapesVisible(isShowShapes);

    // Handle the axis formating for the category axis
    configureAxis(jfreeChart.getXYPlot().getDomainAxis(), scatterPlot.getXAxisLabelFont(),
        scatterPlot.getXAxisLabelColor(), scatterPlot.getXAxisTickLabelFont(),
        scatterPlot.getXAxisTickLabelColor(), scatterPlot.getXAxisTickLabelMask(), scatterPlot.getXAxisVerticalTickLabels(),
        scatterPlot.getOwnXAxisLineColor(), getDomainAxisSettings(),
        (Comparable)evaluateExpression(scatterPlot.getDomainAxisMinValueExpression()),
        (Comparable)evaluateExpression(scatterPlot.getDomainAxisMaxValueExpression()));

    // Handle the axis formating for the value axis
    configureAxis(jfreeChart.getXYPlot().getRangeAxis(), scatterPlot.getYAxisLabelFont(),
        scatterPlot.getYAxisLabelColor(), scatterPlot.getYAxisTickLabelFont(),
        scatterPlot.getYAxisTickLabelColor(), scatterPlot.getYAxisTickLabelMask(), scatterPlot.getYAxisVerticalTickLabels(),
        scatterPlot.getOwnYAxisLineColor(), getRangeAxisSettings(),
        (Comparable)evaluateExpression(scatterPlot.getRangeAxisMinValueExpression()),
        (Comparable)evaluateExpression(scatterPlot.getRangeAxisMaxValueExpression()));


    return jfreeChart;
  }
View Full Code Here

Examples of net.sf.jasperreports.charts.JRScatterPlot

   */
  public JRBaseScatterPlot(JRChartPlot plot, JRChart chart)
  {
    super(plot, chart);
   
    JRScatterPlot scatterPlot = plot instanceof JRScatterPlot ? (JRScatterPlot)plot : null;
    if (scatterPlot == null)
    {
      xAxisLabelFont = new JRBaseFont(chart, null);
      xAxisTickLabelFont = new JRBaseFont(chart, null);
      yAxisLabelFont = new JRBaseFont(chart, null);
      yAxisTickLabelFont = new JRBaseFont(chart, null);
    }
    else
    {
      xAxisLabelFont = new JRBaseFont(chart, scatterPlot.getXAxisLabelFont());
      xAxisTickLabelFont = new JRBaseFont(chart, scatterPlot.getXAxisTickLabelFont());
      yAxisLabelFont = new JRBaseFont(chart, scatterPlot.getYAxisLabelFont());
      yAxisTickLabelFont = new JRBaseFont(chart, scatterPlot.getYAxisTickLabelFont());
    }
  }
View Full Code Here

Examples of net.sf.jasperreports.charts.JRScatterPlot

        false);

    configureChart(jfreeChart, getPlot());
    XYLineAndShapeRenderer plotRenderer = (XYLineAndShapeRenderer) ((XYPlot)jfreeChart.getPlot()).getRenderer();

    JRScatterPlot scatterPlot = (JRScatterPlot) getPlot();
    boolean isShowLines = scatterPlot.getShowLines() == null ? true : scatterPlot.getShowLines().booleanValue();
    boolean isShowShapes = scatterPlot.getShowShapes() == null ? true : scatterPlot.getShowShapes().booleanValue();
   
    plotRenderer.setBaseLinesVisible(isShowLines);
    plotRenderer.setBaseShapesVisible(isShowShapes);

    // Handle the axis formating for the category axis
    configureAxis(jfreeChart.getXYPlot().getDomainAxis(), scatterPlot.getXAxisLabelFont(),
        scatterPlot.getXAxisLabelColor(), scatterPlot.getXAxisTickLabelFont(),
        scatterPlot.getXAxisTickLabelColor(), scatterPlot.getXAxisTickLabelMask(), scatterPlot.getXAxisVerticalTickLabels(),
        scatterPlot.getOwnXAxisLineColor(), false,
        (Comparable)evaluateExpression(scatterPlot.getDomainAxisMinValueExpression()),
        (Comparable)evaluateExpression(scatterPlot.getDomainAxisMaxValueExpression()));

    // Handle the axis formating for the value axis
    configureAxis(jfreeChart.getXYPlot().getRangeAxis(), scatterPlot.getYAxisLabelFont(),
        scatterPlot.getYAxisLabelColor(), scatterPlot.getYAxisTickLabelFont(),
        scatterPlot.getYAxisTickLabelColor(), scatterPlot.getYAxisTickLabelMask(), scatterPlot.getYAxisVerticalTickLabels(),
        scatterPlot.getOwnYAxisLineColor(), true,
        (Comparable)evaluateExpression(scatterPlot.getRangeAxisMinValueExpression()),
        (Comparable)evaluateExpression(scatterPlot.getRangeAxisMaxValueExpression()));

    return jfreeChart;
  }
View Full Code Here

Examples of net.sf.jasperreports.charts.JRScatterPlot

    xyPlot.setDomainGridlineStroke(new BasicStroke(0.75f));
    xyPlot.setRangeZeroBaselinePaint(ChartThemesConstants.GRAY_PAINT_134);

    XYLineAndShapeRenderer lineRenderer = (XYLineAndShapeRenderer)xyPlot.getRenderer();
    lineRenderer.setUseFillPaint(true);
    JRScatterPlot scatterPlot = (JRScatterPlot) getPlot();
    boolean isShowLines = scatterPlot.getShowLines() == null ? false : scatterPlot.getShowLines().booleanValue();
    lineRenderer.setBaseLinesVisible(isShowLines);
    XYDataset xyDataset = xyPlot.getDataset();
    if(xyDataset != null)
    {
      for(int i = 0; i < xyDataset.getSeriesCount(); i++)
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.