本文整理汇总了Java中org.jfree.chart.renderer.xy.XYBubbleRenderer类的典型用法代码示例。如果您正苦于以下问题:Java XYBubbleRenderer类的具体用法?Java XYBubbleRenderer怎么用?Java XYBubbleRenderer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
XYBubbleRenderer类属于org.jfree.chart.renderer.xy包,在下文中一共展示了XYBubbleRenderer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createBubbleChart
import org.jfree.chart.renderer.xy.XYBubbleRenderer; //导入依赖的package包/类
@Override
protected JFreeChart createBubbleChart() throws JRException
{
JFreeChart jfreeChart = super.createBubbleChart();
XYPlot xyPlot = (XYPlot)jfreeChart.getPlot();
XYBubbleRenderer bubbleRenderer = (XYBubbleRenderer)xyPlot.getRenderer();
bubbleRenderer = new GradientXYBubbleRenderer(bubbleRenderer.getScaleType());
xyPlot.setRenderer(bubbleRenderer);
XYDataset xyDataset = xyPlot.getDataset();
if (xyDataset != null)
{
for (int i = 0; i < xyDataset.getSeriesCount(); i++)
{
bubbleRenderer.setSeriesOutlinePaint(i, ChartThemesConstants.TRANSPARENT_PAINT);
bubbleRenderer.setSeriesPaint(i, ChartThemesConstants.EYE_CANDY_SIXTIES_GRADIENT_PAINTS.get(i));
}
}
return jfreeChart;
}
示例2: createBubbleChart
import org.jfree.chart.renderer.xy.XYBubbleRenderer; //导入依赖的package包/类
@Override
protected JFreeChart createBubbleChart() throws JRException
{
JFreeChart jfreeChart = super.createBubbleChart();
XYPlot xyPlot = (XYPlot)jfreeChart.getPlot();
XYBubbleRenderer bubbleRenderer = (XYBubbleRenderer)xyPlot.getRenderer();
XYDataset xyDataset = xyPlot.getDataset();
if(xyDataset != null)
{
for(int i = 0; i < xyDataset.getSeriesCount(); i++)
{
bubbleRenderer.setSeriesOutlinePaint(i, ChartThemesConstants.TRANSPARENT_PAINT);
}
}
return jfreeChart;
}
示例3: createBubbleChart
import org.jfree.chart.renderer.xy.XYBubbleRenderer; //导入依赖的package包/类
/**
* Creates a bubble chart with default settings. The chart is composed of
* an {@link XYPlot}, with a {@link NumberAxis} for the domain axis,
* a {@link NumberAxis} for the range axis, and an {@link XYBubbleRenderer}
* to draw the data items.
*
* @param title the chart title (<code>null</code> permitted).
* @param xAxisLabel a label for the X-axis (<code>null</code> permitted).
* @param yAxisLabel a label for the Y-axis (<code>null</code> permitted).
* @param dataset the dataset for the chart (<code>null</code> permitted).
* @param legend a flag specifying whether or not a legend is required.
*
* @return A bubble chart.
*/
public static JFreeChart createBubbleChart(String title, String xAxisLabel,
String yAxisLabel, XYZDataset dataset, boolean legend) {
NumberAxis xAxis = new NumberAxis(xAxisLabel);
xAxis.setAutoRangeIncludesZero(false);
NumberAxis yAxis = new NumberAxis(yAxisLabel);
yAxis.setAutoRangeIncludesZero(false);
XYPlot plot = new XYPlot(dataset, xAxis, yAxis, null);
XYItemRenderer renderer = new XYBubbleRenderer(
XYBubbleRenderer.SCALE_ON_RANGE_AXIS);
renderer.setBaseToolTipGenerator(new StandardXYZToolTipGenerator());
plot.setRenderer(renderer);
JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
plot, legend);
currentTheme.apply(chart);
return chart;
}
示例4: ColorizedBubbleRenderer
import org.jfree.chart.renderer.xy.XYBubbleRenderer; //导入依赖的package包/类
public ColorizedBubbleRenderer(double[] colors) {
super(XYBubbleRenderer.SCALE_ON_RANGE_AXIS);
this.minColor = Double.POSITIVE_INFINITY;
this.maxColor = Double.NEGATIVE_INFINITY;
for (double c : colors) {
minColor = MathFunctions.robustMin(minColor, c);
maxColor = MathFunctions.robustMax(maxColor, c);
}
this.colors = colors;
}
示例5: createBubbleChart
import org.jfree.chart.renderer.xy.XYBubbleRenderer; //导入依赖的package包/类
/**
* Creates a bubble chart with default settings.
*
* @param title the chart title (<code>null</code> permitted).
* @param xAxisLabel a label for the X-axis (<code>null</code> permitted).
* @param yAxisLabel a label for the Y-axis (<code>null</code> permitted).
* @param dataset the dataset for the chart (<code>null</code> permitted).
* @param orientation the orientation (horizontal or vertical) (<code>null</code> NOT
* permitted).
* @param legend a flag specifying whether or not a legend is required.
* @param tooltips configure chart to generate tool tips?
* @param urls configure chart to generate URLs?
*
* @return a bubble chart.
*/
public static JFreeChart createBubbleChart(String title,
String xAxisLabel,
String yAxisLabel,
XYZDataset dataset,
PlotOrientation orientation,
boolean legend,
boolean tooltips,
boolean urls) {
if (orientation == null) {
throw new IllegalArgumentException("Null 'orientation' argument.");
}
NumberAxis xAxis = new NumberAxis(xAxisLabel);
xAxis.setAutoRangeIncludesZero(false);
NumberAxis yAxis = new NumberAxis(yAxisLabel);
yAxis.setAutoRangeIncludesZero(false);
XYPlot plot = new XYPlot(dataset, xAxis, yAxis, null);
XYItemRenderer renderer = new XYBubbleRenderer(XYBubbleRenderer.SCALE_ON_RANGE_AXIS);
if (tooltips) {
renderer.setToolTipGenerator(new StandardXYZToolTipGenerator());
}
if (urls) {
renderer.setURLGenerator(new StandardXYZURLGenerator());
}
plot.setRenderer(renderer);
plot.setOrientation(orientation);
JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT, plot, legend);
return chart;
}
示例6: testHashcode
import org.jfree.chart.renderer.xy.XYBubbleRenderer; //导入依赖的package包/类
/**
* Two objects that are equal are required to return the same hashCode.
*/
public void testHashcode() {
XYBubbleRenderer r1 = new XYBubbleRenderer();
XYBubbleRenderer r2 = new XYBubbleRenderer();
assertTrue(r1.equals(r2));
int h1 = r1.hashCode();
int h2 = r2.hashCode();
assertEquals(h1, h2);
}
示例7: createBubbleChart
import org.jfree.chart.renderer.xy.XYBubbleRenderer; //导入依赖的package包/类
/**
* Creates a bubble chart with default settings. The chart is composed of
* an {@link XYPlot}, with a {@link NumberAxis} for the domain axis,
* a {@link NumberAxis} for the range axis, and an {@link XYBubbleRenderer}
* to draw the data items.
*
* @param title the chart title (<code>null</code> permitted).
* @param xAxisLabel a label for the X-axis (<code>null</code> permitted).
* @param yAxisLabel a label for the Y-axis (<code>null</code> permitted).
* @param dataset the dataset for the chart (<code>null</code> permitted).
* @param orientation the orientation (horizontal or vertical)
* (<code>null</code> NOT permitted).
* @param legend a flag specifying whether or not a legend is required.
* @param tooltips configure chart to generate tool tips?
* @param urls configure chart to generate URLs?
*
* @return A bubble chart.
*/
public static JFreeChart createBubbleChart(String title,
String xAxisLabel,
String yAxisLabel,
XYZDataset dataset,
PlotOrientation orientation,
boolean legend,
boolean tooltips,
boolean urls) {
if (orientation == null) {
throw new IllegalArgumentException("Null 'orientation' argument.");
}
NumberAxis xAxis = new NumberAxis(xAxisLabel);
xAxis.setAutoRangeIncludesZero(false);
NumberAxis yAxis = new NumberAxis(yAxisLabel);
yAxis.setAutoRangeIncludesZero(false);
XYPlot plot = new XYPlot(dataset, xAxis, yAxis, null);
XYItemRenderer renderer = new XYBubbleRenderer(
XYBubbleRenderer.SCALE_ON_RANGE_AXIS);
if (tooltips) {
renderer.setBaseToolTipGenerator(new StandardXYZToolTipGenerator());
}
if (urls) {
renderer.setURLGenerator(new StandardXYZURLGenerator());
}
plot.setRenderer(renderer);
plot.setOrientation(orientation);
JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
plot, legend);
return chart;
}
示例8: createBubbleChart
import org.jfree.chart.renderer.xy.XYBubbleRenderer; //导入依赖的package包/类
/**
* Creates a bubble chart with default settings. The chart is composed of
* an {@link XYPlot}, with a {@link NumberAxis} for the domain axis,
* a {@link NumberAxis} for the range axis, and an {@link XYBubbleRenderer}
* to draw the data items.
*
* @param title the chart title (<code>null</code> permitted).
* @param xAxisLabel a label for the X-axis (<code>null</code> permitted).
* @param yAxisLabel a label for the Y-axis (<code>null</code> permitted).
* @param dataset the dataset for the chart (<code>null</code> permitted).
* @param orientation the orientation (horizontal or vertical)
* (<code>null</code> NOT permitted).
* @param legend a flag specifying whether or not a legend is required.
* @param tooltips configure chart to generate tool tips?
* @param urls configure chart to generate URLs?
*
* @return A bubble chart.
*/
public static JFreeChart createBubbleChart(String title, String xAxisLabel,
String yAxisLabel, XYZDataset dataset, PlotOrientation orientation,
boolean legend, boolean tooltips, boolean urls) {
ParamChecks.nullNotPermitted(orientation, "orientation");
NumberAxis xAxis = new NumberAxis(xAxisLabel);
xAxis.setAutoRangeIncludesZero(false);
NumberAxis yAxis = new NumberAxis(yAxisLabel);
yAxis.setAutoRangeIncludesZero(false);
XYPlot plot = new XYPlot(dataset, xAxis, yAxis, null);
XYItemRenderer renderer = new XYBubbleRenderer(
XYBubbleRenderer.SCALE_ON_RANGE_AXIS);
if (tooltips) {
renderer.setBaseToolTipGenerator(new StandardXYZToolTipGenerator());
}
if (urls) {
renderer.setURLGenerator(new StandardXYZURLGenerator());
}
plot.setRenderer(renderer);
plot.setOrientation(orientation);
JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
plot, legend);
currentTheme.apply(chart);
return chart;
}
示例9: createBubbleChart
import org.jfree.chart.renderer.xy.XYBubbleRenderer; //导入依赖的package包/类
/**
* Creates a bubble chart with default settings. The chart is composed of
* an {@link XYPlot}, with a {@link NumberAxis} for the domain axis,
* a {@link NumberAxis} for the range axis, and an {@link XYBubbleRenderer}
* to draw the data items.
*
* @param title the chart title ({@code null} permitted).
* @param xAxisLabel a label for the X-axis ({@code null} permitted).
* @param yAxisLabel a label for the Y-axis ({@code null} permitted).
* @param dataset the dataset for the chart ({@code null} permitted).
* @param orientation the orientation (horizontal or vertical)
* ({@code null} NOT permitted).
* @param legend a flag specifying whether or not a legend is required.
* @param tooltips configure chart to generate tool tips?
* @param urls configure chart to generate URLs?
*
* @return A bubble chart.
*/
public static JFreeChart createBubbleChart(String title, String xAxisLabel,
String yAxisLabel, XYZDataset dataset, PlotOrientation orientation,
boolean legend, boolean tooltips, boolean urls) {
Args.nullNotPermitted(orientation, "orientation");
NumberAxis xAxis = new NumberAxis(xAxisLabel);
xAxis.setAutoRangeIncludesZero(false);
NumberAxis yAxis = new NumberAxis(yAxisLabel);
yAxis.setAutoRangeIncludesZero(false);
XYPlot plot = new XYPlot(dataset, xAxis, yAxis, null);
XYItemRenderer renderer = new XYBubbleRenderer(
XYBubbleRenderer.SCALE_ON_RANGE_AXIS);
if (tooltips) {
renderer.setDefaultToolTipGenerator(new StandardXYZToolTipGenerator());
}
if (urls) {
renderer.setURLGenerator(new StandardXYZURLGenerator());
}
plot.setRenderer(renderer);
plot.setOrientation(orientation);
JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
plot, legend);
currentTheme.apply(chart);
return chart;
}
示例10: createBubbleChart
import org.jfree.chart.renderer.xy.XYBubbleRenderer; //导入依赖的package包/类
protected JFreeChart createBubbleChart() throws JRException
{
ChartFactory.setChartTheme(StandardChartTheme.createLegacyTheme());
JFreeChart jfreeChart =
ChartFactory.createBubbleChart(
evaluateTextExpression(getChart().getTitleExpression()),
evaluateTextExpression(((JRBubblePlot)getPlot()).getXAxisLabelExpression()),
evaluateTextExpression(((JRBubblePlot)getPlot()).getYAxisLabelExpression()),
(XYZDataset)getDataset(),
getPlot().getOrientationValue().getOrientation(),
isShowLegend(),
true,
false);
configureChart(jfreeChart, getPlot());
XYPlot xyPlot = (XYPlot)jfreeChart.getPlot();
JRBubblePlot bubblePlot = (JRBubblePlot)getPlot();
int scaleType = bubblePlot.getScaleTypeValue() == null ? ScaleTypeEnum.ON_RANGE_AXIS.getValue() : bubblePlot.getScaleTypeValue().getValue();
XYBubbleRenderer bubbleRenderer = new XYBubbleRenderer( scaleType );
xyPlot.setRenderer( bubbleRenderer );
// Handle the axis formating for the category axis
configureAxis(xyPlot.getDomainAxis(), bubblePlot.getXAxisLabelFont(),
bubblePlot.getXAxisLabelColor(), bubblePlot.getXAxisTickLabelFont(),
bubblePlot.getXAxisTickLabelColor(), bubblePlot.getXAxisTickLabelMask(), bubblePlot.getXAxisVerticalTickLabels(),
bubblePlot.getOwnXAxisLineColor(), false,
(Comparable<?>)evaluateExpression(bubblePlot.getDomainAxisMinValueExpression()),
(Comparable<?>)evaluateExpression(bubblePlot.getDomainAxisMaxValueExpression()));
// Handle the axis formating for the value axis
configureAxis(xyPlot.getRangeAxis(), bubblePlot.getYAxisLabelFont(),
bubblePlot.getYAxisLabelColor(), bubblePlot.getYAxisTickLabelFont(),
bubblePlot.getYAxisTickLabelColor(), bubblePlot.getYAxisTickLabelMask(), bubblePlot.getYAxisVerticalTickLabels(),
bubblePlot.getOwnYAxisLineColor(), true,
(Comparable<?>)evaluateExpression(bubblePlot.getRangeAxisMinValueExpression()),
(Comparable<?>)evaluateExpression(bubblePlot.getRangeAxisMaxValueExpression()));
return jfreeChart;
}
示例11: createBubbleChart
import org.jfree.chart.renderer.xy.XYBubbleRenderer; //导入依赖的package包/类
protected JFreeChart createBubbleChart() throws JRException
{
ChartFactory.setChartTheme(StandardChartTheme.createLegacyTheme());
JFreeChart jfreeChart = ChartFactory.createBubbleChart(
evaluateTextExpression(getChart().getTitleExpression()),
evaluateTextExpression(((JRBubblePlot)getPlot()).getXAxisLabelExpression()),
evaluateTextExpression(((JRBubblePlot)getPlot()).getYAxisLabelExpression()),
(XYZDataset)getDataset(),
getPlot().getOrientationValue().getOrientation(),
isShowLegend(),
true,
false);
configureChart(jfreeChart);
XYPlot xyPlot = (XYPlot)jfreeChart.getPlot();
JRBubblePlot bubblePlot = (JRBubblePlot)getPlot();
int scaleType = bubblePlot.getScaleTypeValue() == null ? ScaleTypeEnum.ON_RANGE_AXIS.getValue() : bubblePlot.getScaleTypeValue().getValue();
XYBubbleRenderer bubbleRenderer = new XYBubbleRenderer( scaleType );
xyPlot.setRenderer( bubbleRenderer );
// Handle the axis formating for the category axis
configureAxis(xyPlot.getDomainAxis(), bubblePlot.getXAxisLabelFont(),
bubblePlot.getXAxisLabelColor(), bubblePlot.getXAxisTickLabelFont(),
bubblePlot.getXAxisTickLabelColor(), bubblePlot.getXAxisTickLabelMask(), bubblePlot.getXAxisVerticalTickLabels(),
bubblePlot.getXAxisLineColor(), false,
(Comparable<?>)evaluateExpression(bubblePlot.getDomainAxisMinValueExpression()),
(Comparable<?>)evaluateExpression(bubblePlot.getDomainAxisMaxValueExpression()));
// Handle the axis formating for the value axis
configureAxis(xyPlot.getRangeAxis(), bubblePlot.getYAxisLabelFont(),
bubblePlot.getYAxisLabelColor(), bubblePlot.getYAxisTickLabelFont(),
bubblePlot.getYAxisTickLabelColor(), bubblePlot.getYAxisTickLabelMask(), bubblePlot.getYAxisVerticalTickLabels(),
bubblePlot.getYAxisLineColor(), true,
(Comparable<?>)evaluateExpression(bubblePlot.getRangeAxisMinValueExpression()),
(Comparable<?>)evaluateExpression(bubblePlot.getRangeAxisMaxValueExpression()));
return jfreeChart;
}
示例12: MotionChart
import org.jfree.chart.renderer.xy.XYBubbleRenderer; //导入依赖的package包/类
/**
* Creates a new chart with the given title and dataset. The
* <code>createLegend</code> argument specifies whether or not a legend
* should be added to the chart.
*
* @param title the chart title (<code>null</code> permitted).
* @param titleFont the font for displaying the chart title
* (<code>null</code> permitted).
* @param dataset the dataset
* (<code>null</code> not permitted).
* @param createLegend a flag indicating whether or not a legend should
* be created for the chart.
*/
public MotionChart(String title, Font titleFont, MotionDataSet dataset, boolean createLegend)
{
if (dataset == null) {
throw new NullPointerException("Null 'dataset' argument.");
}
this.dataset = dataset;
NumberAxis xAxis = new NumberAxis(dataset.getXLabel());
xAxis.setAutoRangeIncludesZero(false);
xAxis.setUpperMargin(0.20);
NumberAxis yAxis = new NumberAxis(dataset.getYLabel());
yAxis.setAutoRangeIncludesZero(false);
yAxis.setUpperMargin(0.20);
plot = new XYPlot(dataset, xAxis, yAxis, null);
renderer = new MotionBubbleRenderer(dataset,
XYBubbleRenderer.SCALE_ON_DOMAIN_AXIS);
renderer.setBaseToolTipGenerator(new MotionToolTipGenerator());
renderer.setBaseItemLabelGenerator(new MotionItemLabelGenerator());
renderer.setBasePositiveItemLabelPosition(new ItemLabelPosition(ItemLabelAnchor.OUTSIDE12, TextAnchor.BOTTOM_CENTER));
plot.setRenderer(renderer);
plot.setOrientation(PlotOrientation.VERTICAL);
dataset.addChangeListener(this);
chart = new JFreeChart(title, titleFont, plot, createLegend);
chart.addChangeListener(this);
currentTheme.apply(chart);
chartPanel = new ChartPanel(chart);
chartPanel.addChartMouseListener(new MotionMouseListener());
}
示例13: createBubbleChart
import org.jfree.chart.renderer.xy.XYBubbleRenderer; //导入依赖的package包/类
/**
* Creates a bubble chart with default settings. The chart is composed of
* an {@link XYPlot}, with a {@link NumberAxis} for the domain axis,
* a {@link NumberAxis} for the range axis, and an {@link XYBubbleRenderer}
* to draw the data items.
*
* @param title the chart title (<code>null</code> permitted).
* @param xAxisLabel a label for the X-axis (<code>null</code> permitted).
* @param yAxisLabel a label for the Y-axis (<code>null</code> permitted).
* @param dataset the dataset for the chart (<code>null</code> permitted).
* @param orientation the orientation (horizontal or vertical)
* (<code>null</code> NOT permitted).
* @param legend a flag specifying whether or not a legend is required.
* @param tooltips configure chart to generate tool tips?
* @param urls configure chart to generate URLs?
*
* @return A bubble chart.
*/
public static JFreeChart createBubbleChart(String title,
String xAxisLabel,
String yAxisLabel,
XYZDataset dataset,
PlotOrientation orientation,
boolean legend,
boolean tooltips,
boolean urls) {
if (orientation == null) {
throw new IllegalArgumentException("Null 'orientation' argument.");
}
NumberAxis xAxis = new NumberAxis(xAxisLabel);
xAxis.setAutoRangeIncludesZero(false);
NumberAxis yAxis = new NumberAxis(yAxisLabel);
yAxis.setAutoRangeIncludesZero(false);
XYPlot plot = new XYPlot(dataset, xAxis, yAxis, null);
XYItemRenderer renderer = new XYBubbleRenderer(
XYBubbleRenderer.SCALE_ON_RANGE_AXIS);
if (tooltips) {
renderer.setBaseToolTipGenerator(new StandardXYZToolTipGenerator());
}
if (urls) {
renderer.setURLGenerator(new StandardXYZURLGenerator());
}
plot.setRenderer(renderer);
plot.setOrientation(orientation);
JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
plot, legend);
currentTheme.apply(chart);
return chart;
}
示例14: testHashcode
import org.jfree.chart.renderer.xy.XYBubbleRenderer; //导入依赖的package包/类
/**
* Two objects that are equal are required to return the same hashCode.
*/
public void testHashcode() {
XYBubbleRenderer r1 = new XYBubbleRenderer();
XYBubbleRenderer r2 = new XYBubbleRenderer();
assertTrue(r1.equals(r2));
int h1 = r1.hashCode();
int h2 = r2.hashCode();
assertEquals(h1, h2);
}
示例15: test
import org.jfree.chart.renderer.xy.XYBubbleRenderer; //导入依赖的package包/类
@Override
public void test() {
super.test();
numberOfPagesTest(1);
JFreeChart chart = getChart("summary.chart1", 0);
XYItemRenderer renderer = chart.getXYPlot().getRenderer();
Assert.assertEquals("renderer", XYBubbleRenderer.class, renderer.getClass());
Assert.assertEquals("scale type", XYBubbleRenderer.SCALE_ON_BOTH_AXES, ((XYBubbleRenderer) renderer).getScaleType());
xyzChartDataTest(chart, 0, "a", new Number[][] {{1d, 2d, 0.25}, {2d, 3d, 0.5}, {3d, 4d, 0.75}, {4d, 5d, 1d}});
xyzChartDataTest(chart, 1, "serie1", new Number[][] {{2d, 1d, 0.25}, {3d, 2d, 0.5}, {4d, 3d, 0.75}, {5d, 4d, 1d}});
chart = getChart("summary.chart2", 0);
Axis axis = chart.getXYPlot().getDomainAxis();
Assert.assertEquals("category label", "category", axis.getLabel());
Assert.assertEquals("category label color", Color.BLUE, axis.getLabelPaint());
Assert.assertEquals("category label font", new Font("Arial", Font.BOLD, 10), axis.getLabelFont());
Assert.assertEquals("tick label color", Color.CYAN, axis.getTickLabelPaint());
Assert.assertEquals("tick label font", new Font("Arial", Font.ITALIC, 10), axis.getTickLabelFont());
Assert.assertEquals("line color", Color.LIGHT_GRAY, axis.getAxisLinePaint());
chart = getChart("summary.chart3", 0);
axis = chart.getXYPlot().getRangeAxis();
Assert.assertEquals("value label", "value", axis.getLabel());
Assert.assertEquals("value label color", Color.BLUE, axis.getLabelPaint());
Assert.assertEquals("value label font", new Font("Arial", Font.BOLD, 10), axis.getLabelFont());
Assert.assertEquals("tick label color", Color.CYAN, axis.getTickLabelPaint());
Assert.assertEquals("tick label font", new Font("Arial", Font.ITALIC, 10), axis.getTickLabelFont());
Assert.assertEquals("tick label mask", "10.00", ((NumberAxis) axis).getNumberFormatOverride().format(10));
Assert.assertEquals("line color", Color.LIGHT_GRAY, axis.getAxisLinePaint());
}