Demos and Usage of org.jfree.chart.plot.XYPlot.getRangeAxis()


   1: import org.jfree.chart.plot.PlotOrientation;
   2: import org.jfree.chart.plot.XYPlot;
   3: import org.jfree.data.XYSeries;
   4:         ...
   5:         );
   6:         XYPlot plot = chart.getXYPlot();
   7:         plot.getDomainAxis().setStandardTickUnits(new StandardTickUnitSource());
   8:         ...
   9:         plot.getRangeAxis().setStandardTickUnits(new StandardTickUnitSource());

View Full Code Here
   1: import org.jfree.chart.plot.PlotOrientation;
   2: import org.jfree.chart.plot.XYPlot;
   3: import org.jfree.data.XYZDataset;
   4:         ...
   5:         );
   6:         XYPlot plot = chart.getXYPlot();
   7:         plot.setForegroundAlpha(0.65f);
   8:         ...
   9:         domainAxis.setUpperMargin(0.15);
  10:         NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
  11:         rangeAxis.setLowerMargin(0.15);

View Full Code Here
   1: import org.jfree.chart.plot.PlotOrientation;
   2: import org.jfree.chart.plot.XYPlot;
   3: import org.jfree.data.XYDataset;
   4:         ...
   5:         
   6:         XYPlot plot = chart.getXYPlot();
   7:         plot.setBackgroundPaint(Color.lightGray);
   8:         ...
   9:         
  10:         ValueAxis rangeAxis = plot.getRangeAxis();
  11:         rangeAxis.setTickMarkPaint(Color.black);

View Full Code Here
   1: import org.jfree.chart.plot.PlotOrientation;
   2: import org.jfree.chart.plot.XYPlot;
   3: import org.jfree.chart.renderer.xy.StackedXYBarRenderer;
   4:         ...
   5:         );
   6:         XYPlot plot = (XYPlot) chart.getPlot();
   7:         plot.setRenderer(new StackedXYBarRenderer());
   8:         ...
   9:         plot.setRenderer(new StackedXYBarRenderer());
  10:         NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
  11:         Range bounds = rangeAxis.getRange();

View Full Code Here
   1: import org.jfree.chart.plot.PlotOrientation;
   2: import org.jfree.chart.plot.XYPlot;
   3: import org.jfree.data.MatrixSeriesCollection;
   4:         ...
   5: 
   6:         XYPlot plot = chart.getXYPlot();
   7:         plot.setForegroundAlpha(0.5f);
   8:         ...
   9: 
  10:         NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();

View Full Code Here
   1: import org.jfree.chart.plot.PlotOrientation;
   2: import org.jfree.chart.plot.XYPlot;
   3: import org.jfree.data.MatrixSeriesCollection;
   4:         ...
   5: 
   6:         XYPlot plot = chart.getXYPlot();
   7:         plot.setForegroundAlpha(0.5f);
   8:         ...
   9: 
  10:         NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();

View Full Code Here
   1: import org.jfree.chart.StandardLegend;
   2: import org.jfree.chart.plot.XYPlot;
   3: import org.jfree.chart.renderer.StandardXYItemRenderer;
   4:         ...
   5: 
   6:         XYPlot plot = chart.getXYPlot();
   7:         XYItemRenderer r = plot.getRenderer();
   8:         ...
   9:         plot.getDomainAxis().setVisible(false);
  10:         plot.getRangeAxis().setVisible(false);
  11:         ChartPanel chartPanel = new ChartPanel(chart);

View Full Code Here
   1: import org.jfree.chart.plot.PlotOrientation;
   2: import org.jfree.chart.plot.XYPlot;
   3: import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer;
   4:         ...
   5:         );
   6:         XYPlot plot = (XYPlot) chart.getPlot();
   7:         NumberAxis domainAxis = (NumberAxis) plot.getDomainAxis();
   8:         ...
   9:         XYPlot plot = (XYPlot) chart.getPlot();
  10:         NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
  11:         rangeAxis.setAutoRangeIncludesZero(false);

View Full Code Here
   1: import org.jfree.chart.plot.PlotOrientation;
   2: import org.jfree.chart.plot.XYPlot;
   3: import org.jfree.chart.renderer.StandardXYItemRenderer;
   4:         ...
   5: 
   6:         XYPlot plot = this.chart.getXYPlot(); 
   7:         Font ft = axis.getTickLabelFont();
   8:         ...
   9:         plot.getDomainAxis().setTickLabelFont(ft);
  10:         plot.getRangeAxis().setTickLabelFont(ft);
  11:         plot.getSecondaryDomainAxis(0).setTickLabelFont(ft);
  12:         ...
  13:         ValueAxis[] axes = new ValueAxis[4];
  14:         XYPlot plot = this.chart.getXYPlot(); 

View Full Code Here
   1: import org.jfree.chart.axis.ValueAxis;
   2: import org.jfree.chart.plot.XYPlot;
   3: import org.jfree.chart.ui.ChartPropertyEditPanel;
   4:         ...
   5:         super(chart, ox, oy, width, height);
   6:         XYPlot plot = (XYPlot)chart.getXYPlot();
   7:         plot.setDomainAxis(new CyclicNumberAxis(10,0));
   8:         ...
   9:             cna = null;
  10:             if (plot.getRangeAxis() instanceof CyclicNumberAxis) cna = (CyclicNumberAxis)plot.getRangeAxis();
  11:             
  12:         ...
  13:             });
  14:             panel.add(cbinverty = new ActionCheckBox(resources.getString("Inverted"), plot.getRangeAxis().isInverted()) {

View Full Code Here
   1: import org.jfree.chart.plot.PlotRenderingInfo;
   2: import org.jfree.chart.plot.XYPlot;
   3: import org.jfree.chart.ui.ChartPropertyEditPanel;
   4:         ...
   5:         super(chart, ox, oy, width, height);
   6:         XYPlot plot = chart.getXYPlot();
   7:         NumberAxis axis = new NumberAxis();
   8:         ...
   9:         axis.setAutoRange(true);
  10:         ValueAxis vaxis = plot.getRangeAxis();
  11:         axis.setAutoRange(true);
  12:         ...
  13: 
  14:         XYPlot plot = (XYPlot)chart.getXYPlot();

View Full Code Here