Example usage for org.jfree.chart.plot.dial DialPlot getDialFrame

List of usage examples for org.jfree.chart.plot.dial DialPlot getDialFrame

Introduction

In this page you can find the example usage for org.jfree.chart.plot.dial DialPlot getDialFrame.

Prototype

public DialFrame getDialFrame() 

Source Link

Document

Returns the dial's frame.

Usage

From source file:org.pentaho.chart.plugin.jfreechart.dial.JFreeDialChartGeneratorIT.java

public void testPlotStyle() throws Exception {
    JFreeChart chart = getJFreeChart("testchart.xml", new Object[][] { { 8D } }); //$NON-NLS-1$
    DialPlot plot = (DialPlot) chart.getPlot();
    DoubleLineDialFrame frame = (DoubleLineDialFrame) plot.getDialFrame();
    assertEquals(frame.getForegroundPaint(), Color.RED);
    assertEquals(frame.getInnerForegroundPaint(), Color.BLUE);
    assertEquals(frame.getBackgroundPaint(), Color.WHITE);
    assertEquals(//from w w  w. j  a va 2 s. c o m
            String.format("expected: %s but was: %s", 3D, ((BasicStroke) frame.getStroke()).getLineWidth()), //$NON-NLS-1$
            frame.getStroke(),
            new BasicStroke(3F));
}