本文整理汇总了Java中org.jfree.chart.plot.PolarPlot.setAxis方法的典型用法代码示例。如果您正苦于以下问题:Java PolarPlot.setAxis方法的具体用法?Java PolarPlot.setAxis怎么用?Java PolarPlot.setAxis使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.chart.plot.PolarPlot
的用法示例。
在下文中一共展示了PolarPlot.setAxis方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createPolarChart
import org.jfree.chart.plot.PolarPlot; //导入方法依赖的package包/类
/**
* Creates a polar plot for the specified dataset (x-values interpreted as
* angles in degrees). The chart object returned by this method uses a
* {@link PolarPlot} instance as the plot, with a {@link NumberAxis} for
* the radial axis.
*
* @param title the chart title (<code>null</code> permitted).
* @param dataset the dataset (<code>null</code> permitted).
* @param legend legend required?
* @param tooltips tooltips required?
* @param urls URLs required?
*
* @return A chart.
*/
public static JFreeChart createPolarChart(String title,
XYDataset dataset,
boolean legend,
boolean tooltips,
boolean urls) {
PolarPlot plot = new PolarPlot();
plot.setDataset(dataset);
NumberAxis rangeAxis = new NumberAxis();
rangeAxis.setAxisLineVisible(false);
rangeAxis.setTickMarksVisible(false);
rangeAxis.setTickLabelInsets(new RectangleInsets(0.0, 0.0, 0.0, 0.0));
plot.setAxis(rangeAxis);
plot.setRenderer(new DefaultPolarItemRenderer());
JFreeChart chart = new JFreeChart(
title, JFreeChart.DEFAULT_TITLE_FONT, plot, legend);
return chart;
}
示例2: createPolarChart
import org.jfree.chart.plot.PolarPlot; //导入方法依赖的package包/类
/**
* Creates a polar plot for the specified dataset (x-values interpreted as
* angles in degrees). The chart object returned by this method uses a
* {@link PolarPlot} instance as the plot, with a {@link NumberAxis} for
* the radial axis.
*
* @param title the chart title (<code>null</code> permitted).
* @param dataset the dataset (<code>null</code> permitted).
* @param legend legend required?
* @param tooltips tooltips required?
* @param urls URLs required?
*
* @return A chart.
*/
public static JFreeChart createPolarChart(String title, XYDataset dataset,
boolean legend, boolean tooltips, boolean urls) {
PolarPlot plot = new PolarPlot();
plot.setDataset(dataset);
NumberAxis rangeAxis = new NumberAxis();
rangeAxis.setAxisLineVisible(false);
rangeAxis.setTickMarksVisible(false);
rangeAxis.setTickLabelInsets(new RectangleInsets(0.0, 0.0, 0.0, 0.0));
plot.setAxis(rangeAxis);
plot.setRenderer(new DefaultPolarItemRenderer());
JFreeChart chart = new JFreeChart(
title, JFreeChart.DEFAULT_TITLE_FONT, plot, legend);
currentTheme.apply(chart);
return chart;
}
示例3: createPolarChart
import org.jfree.chart.plot.PolarPlot; //导入方法依赖的package包/类
/**
* Creates a polar plot for the specified dataset (x-values interpreted as
* angles in degrees). The chart object returned by this method uses a
* {@link PolarPlot} instance as the plot, with a {@link NumberAxis} for
* the radial axis.
*
* @param title the chart title ({@code null} permitted).
* @param dataset the dataset ({@code null} permitted).
* @param legend legend required?
* @param tooltips tooltips required?
* @param urls URLs required?
*
* @return A chart.
*/
public static JFreeChart createPolarChart(String title, XYDataset dataset,
boolean legend, boolean tooltips, boolean urls) {
PolarPlot plot = new PolarPlot();
plot.setDataset(dataset);
NumberAxis rangeAxis = new NumberAxis();
rangeAxis.setAxisLineVisible(false);
rangeAxis.setTickMarksVisible(false);
rangeAxis.setTickLabelInsets(new RectangleInsets(0.0, 0.0, 0.0, 0.0));
plot.setAxis(rangeAxis);
plot.setRenderer(new DefaultPolarItemRenderer());
JFreeChart chart = new JFreeChart(
title, JFreeChart.DEFAULT_TITLE_FONT, plot, legend);
currentTheme.apply(chart);
return chart;
}
示例4: createPolarChart
import org.jfree.chart.plot.PolarPlot; //导入方法依赖的package包/类
/**
* Creates a polar plot for the specified dataset (x-values interpreted as
* angles in degrees). The chart object returned by this method uses a
* {@link PolarPlot} instance as the plot, with a {@link NumberAxis} for
* the radial axis.
*
* @param title the chart title (<code>null</code> permitted).
* @param dataset the dataset (<code>null</code> permitted).
* @param legend legend required?
* @param tooltips tooltips required?
* @param urls URLs required?
*
* @return A chart.
*/
public static JFreeChart createPolarChart(String title,
XYDataset dataset,
boolean legend,
boolean tooltips,
boolean urls) {
PolarPlot plot = new PolarPlot();
plot.setDataset(dataset);
NumberAxis rangeAxis = new NumberAxis();
rangeAxis.setAxisLineVisible(false);
rangeAxis.setTickMarksVisible(false);
rangeAxis.setTickLabelInsets(new RectangleInsets(0.0, 0.0, 0.0, 0.0));
plot.setAxis(rangeAxis);
plot.setRenderer(new DefaultPolarItemRenderer());
JFreeChart chart = new JFreeChart(
title, JFreeChart.DEFAULT_TITLE_FONT, plot, legend);
currentTheme.apply(chart);
return chart;
}
示例5: createPolarChart
import org.jfree.chart.plot.PolarPlot; //导入方法依赖的package包/类
/**
* Creates a polar plot for the specified dataset (x-values interpreted as
* angles in degrees). The chart object returned by this method uses a
* {@link PolarPlot} instance as the plot, with a {@link NumberAxis} for
* the radial axis.
*
* @param title the chart title (<code>null</code> permitted).
* @param dataset the dataset (<code>null</code> permitted).
* @param legend legend required?
*
* @return A chart.
*/
public static JFreeChart createPolarChart(String title, XYDataset dataset,
boolean legend) {
PolarPlot plot = new PolarPlot();
plot.setDataset(dataset);
NumberAxis rangeAxis = new NumberAxis();
rangeAxis.setAxisLineVisible(false);
rangeAxis.setTickMarksVisible(false);
rangeAxis.setTickLabelInsets(new RectangleInsets(0.0, 0.0, 0.0, 0.0));
plot.setAxis(rangeAxis);
plot.setRenderer(new DefaultPolarItemRenderer());
JFreeChart chart = new JFreeChart(
title, JFreeChart.DEFAULT_TITLE_FONT, plot, legend);
currentTheme.apply(chart);
return chart;
}
示例6: testEquals
import org.jfree.chart.plot.PolarPlot; //导入方法依赖的package包/类
/**
* Some checks for the equals() method.
*/
public void testEquals() {
PolarPlot plot1 = new PolarPlot();
PolarPlot plot2 = new PolarPlot();
assertTrue(plot1.equals(plot2));
assertTrue(plot2.equals(plot1));
plot1.setAngleGridlinePaint(new GradientPaint(1.0f, 2.0f, Color.red,
3.0f, 4.0f, Color.blue));
assertFalse(plot1.equals(plot2));
plot2.setAngleGridlinePaint(new GradientPaint(1.0f, 2.0f, Color.red,
3.0f, 4.0f, Color.blue));
assertTrue(plot1.equals(plot2));
Stroke s = new BasicStroke(1.23f);
plot1.setAngleGridlineStroke(s);
assertFalse(plot1.equals(plot2));
plot2.setAngleGridlineStroke(s);
assertTrue(plot1.equals(plot2));
plot1.setAngleGridlinesVisible(false);
assertFalse(plot1.equals(plot2));
plot2.setAngleGridlinesVisible(false);
assertTrue(plot1.equals(plot2));
plot1.setAngleLabelFont(new Font("Serif", Font.PLAIN, 9));
assertFalse(plot1.equals(plot2));
plot2.setAngleLabelFont(new Font("Serif", Font.PLAIN, 9));
assertTrue(plot1.equals(plot2));
plot1.setAngleLabelPaint(new GradientPaint(9.0f, 8.0f, Color.blue,
7.0f, 6.0f, Color.red));
assertFalse(plot1.equals(plot2));
plot2.setAngleLabelPaint(new GradientPaint(9.0f, 8.0f, Color.blue,
7.0f, 6.0f, Color.red));
assertTrue(plot1.equals(plot2));
plot1.setAngleLabelsVisible(false);
assertFalse(plot1.equals(plot2));
plot2.setAngleLabelsVisible(false);
assertTrue(plot1.equals(plot2));
plot1.setAxis(new NumberAxis("Test"));
assertFalse(plot1.equals(plot2));
plot2.setAxis(new NumberAxis("Test"));
assertTrue(plot1.equals(plot2));
plot1.setRadiusGridlinePaint(new GradientPaint(1.0f, 2.0f, Color.white,
3.0f, 4.0f, Color.black));
assertFalse(plot1.equals(plot2));
plot2.setRadiusGridlinePaint(new GradientPaint(1.0f, 2.0f, Color.white,
3.0f, 4.0f, Color.black));
assertTrue(plot1.equals(plot2));
plot1.setRadiusGridlineStroke(s);
assertFalse(plot1.equals(plot2));
plot2.setRadiusGridlineStroke(s);
assertTrue(plot1.equals(plot2));
plot1.setRadiusGridlinesVisible(false);
assertFalse(plot1.equals(plot2));
plot2.setRadiusGridlinesVisible(false);
assertTrue(plot1.equals(plot2));
plot1.addCornerTextItem("XYZ");
assertFalse(plot1.equals(plot2));
plot2.addCornerTextItem("XYZ");
assertTrue(plot1.equals(plot2));
}
示例7: testEquals
import org.jfree.chart.plot.PolarPlot; //导入方法依赖的package包/类
/**
* Some checks for the equals() method.
*/
public void testEquals() {
PolarPlot plot1 = new PolarPlot();
PolarPlot plot2 = new PolarPlot();
assertTrue(plot1.equals(plot2));
assertTrue(plot2.equals(plot1));
plot1.setAngleGridlinePaint(new GradientPaint(1.0f, 2.0f, Color.red,
3.0f, 4.0f, Color.blue));
assertFalse(plot1.equals(plot2));
plot2.setAngleGridlinePaint(new GradientPaint(1.0f, 2.0f, Color.red,
3.0f, 4.0f, Color.blue));
assertTrue(plot1.equals(plot2));
Stroke s = new BasicStroke(1.23f);
plot1.setAngleGridlineStroke(s);
assertFalse(plot1.equals(plot2));
plot2.setAngleGridlineStroke(s);
assertTrue(plot1.equals(plot2));
plot1.setAngleTickUnit(new NumberTickUnit(11.0));
assertFalse(plot1.equals(plot2));
plot2.setAngleTickUnit(new NumberTickUnit(11.0));
assertTrue(plot1.equals(plot2));
plot1.setAngleGridlinesVisible(false);
assertFalse(plot1.equals(plot2));
plot2.setAngleGridlinesVisible(false);
assertTrue(plot1.equals(plot2));
plot1.setAngleLabelFont(new Font("Serif", Font.PLAIN, 9));
assertFalse(plot1.equals(plot2));
plot2.setAngleLabelFont(new Font("Serif", Font.PLAIN, 9));
assertTrue(plot1.equals(plot2));
plot1.setAngleLabelPaint(new GradientPaint(9.0f, 8.0f, Color.blue,
7.0f, 6.0f, Color.red));
assertFalse(plot1.equals(plot2));
plot2.setAngleLabelPaint(new GradientPaint(9.0f, 8.0f, Color.blue,
7.0f, 6.0f, Color.red));
assertTrue(plot1.equals(plot2));
plot1.setAngleLabelsVisible(false);
assertFalse(plot1.equals(plot2));
plot2.setAngleLabelsVisible(false);
assertTrue(plot1.equals(plot2));
plot1.setAxis(new NumberAxis("Test"));
assertFalse(plot1.equals(plot2));
plot2.setAxis(new NumberAxis("Test"));
assertTrue(plot1.equals(plot2));
plot1.setRadiusGridlinePaint(new GradientPaint(1.0f, 2.0f, Color.white,
3.0f, 4.0f, Color.black));
assertFalse(plot1.equals(plot2));
plot2.setRadiusGridlinePaint(new GradientPaint(1.0f, 2.0f, Color.white,
3.0f, 4.0f, Color.black));
assertTrue(plot1.equals(plot2));
plot1.setRadiusGridlineStroke(s);
assertFalse(plot1.equals(plot2));
plot2.setRadiusGridlineStroke(s);
assertTrue(plot1.equals(plot2));
plot1.setRadiusGridlinesVisible(false);
assertFalse(plot1.equals(plot2));
plot2.setRadiusGridlinesVisible(false);
assertTrue(plot1.equals(plot2));
plot1.addCornerTextItem("XYZ");
assertFalse(plot1.equals(plot2));
plot2.addCornerTextItem("XYZ");
assertTrue(plot1.equals(plot2));
}