List of usage examples for org.jfree.chart.plot.dial DialPlot getDialFrame
public DialFrame getDialFrame()
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)); }