Examples of XYPlot


Examples of org.jfree.chart.plot.XYPlot

      categoryPlot.setDomainGridlinesVisible(false);
     
    }
    else if(plot instanceof XYPlot)
    {
      XYPlot xyPlot = (XYPlot)plot;
      XYDataset xyDataset = xyPlot.getDataset();
      if(xyDataset != null)
      {
        XYItemRenderer xyItemRenderer = xyPlot.getRenderer();
        for(int i = 0; i < xyDataset.getSeriesCount(); i++)
        {
          xyItemRenderer.setSeriesOutlinePaint(i, ChartThemesConstants.TRANSPARENT_PAINT);
        }
      }
      xyPlot.setRangeGridlinePaint(ChartThemesConstants.GRAY_PAINT_134);
      xyPlot.setRangeGridlineStroke(new BasicStroke(1f));
      xyPlot.setDomainGridlinesVisible(false);
     
      xyPlot.setRangeZeroBaselineVisible(true);

    }
  }
View Full Code Here

Examples of org.jfree.chart.plot.XYPlot

  protected JFreeChart createXyAreaChart() throws JRException
  {
    JFreeChart jfreeChart = super.createXyAreaChart();

    XYPlot xyPlot = (XYPlot)jfreeChart.getPlot();
    SquareXYAreaRenderer squareXyAreaRenderer = new SquareXYAreaRenderer((XYAreaRenderer)xyPlot.getRenderer());
    xyPlot.setRenderer(squareXyAreaRenderer);

    return jfreeChart;
  }
View Full Code Here

Examples of org.timepedia.chronoscope.client.XYPlot

    XYDataset ds[] = new XYDataset[2];
    ds[0] = new MockXYDataset();
    ds[1] = new MockXYDataset();
    runChronoscopeTest(ds, new ViewReadyCallback() {
      public void onViewReady(View view) {
        XYPlot plot = view.getChart().getPlot();
        assertSame(plot.getRangeAxis(0), plot.getRangeAxis(1));
        finishTest();
      }
    });

  }
View Full Code Here

Examples of plotter.xy.XYPlot

    final Axis[] yAxes = new Axis[numPlots];
    final SimpleXYDataset[][] datasets = new SimpleXYDataset[numPlots][linesPerPlot];
    SlopeLine slopeLine = new SlopeLine();
    slopeLine.setForeground(Color.white);
    for(int i = 0; i < numPlots; i++) {
      final XYPlot plot = new XYPlot();
      final XYAxis xAxis = new LinearXYAxis(XYDimension.X);
      final XYAxis yAxis = new LinearXYAxis(XYDimension.Y);
      xAxis.setPreferredSize(new Dimension(1, 30));
      yAxis.setPreferredSize(new Dimension(40, 1));
      xAxis.setForeground(Color.white);
      yAxis.setForeground(Color.white);
      xAxis.setTextMargin(10);
      yAxis.setTextMargin(10);
      plot.add(xAxis);
      plot.add(yAxis);
      plot.setXAxis(xAxis);
      plot.setYAxis(yAxis);
      plot.setBackground(Color.darkGray);
      XYGrid grid = new XYGrid(xAxis, yAxis);
      grid.setForeground(Color.lightGray);
      XYPlotContents contents = new XYPlotContents();
      contents.setBackground(Color.black);
      plot.add(contents);
      contents.add(grid);
      plot.setPreferredSize(new Dimension(150, 100));

      new DefaultXYLayoutGenerator().generateLayout(plot);

      for(int j = 0; j < linesPerPlot; j++) {
        final LinearXYPlotLine line = new LinearXYPlotLine(xAxis, yAxis, XYDimension.X);
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.