本文整理汇总了Java中org.jfree.chart.plot.MeterPlot.setDialOutlinePaint方法的典型用法代码示例。如果您正苦于以下问题:Java MeterPlot.setDialOutlinePaint方法的具体用法?Java MeterPlot.setDialOutlinePaint怎么用?Java MeterPlot.setDialOutlinePaint使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.chart.plot.MeterPlot
的用法示例。
在下文中一共展示了MeterPlot.setDialOutlinePaint方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createMeterPlot
import org.jfree.chart.plot.MeterPlot; //导入方法依赖的package包/类
/** Creates a meter plot and sets color values */
private MeterPlot createMeterPlot() {
MeterPlot plot = new MeterPlot(new DefaultValueDataset(value));
plot.setUnits(unit);
plot.setDialShape(DialShape.CHORD);
plot.setDialBackgroundPaint(Color.WHITE);
plot.setRange(new Range(0, redThreshold));
plot.setDialOutlinePaint(Color.GRAY);
plot.setNeedlePaint(Color.BLACK);
plot.setTickLabelsVisible(true);
plot.setTickLabelPaint(Color.BLACK);
plot.setTickPaint(Color.GRAY);
plot.setTickLabelFormat(NumberFormat.getNumberInstance());
plot.setTickSize(10);
plot.setValuePaint(Color.BLACK);
return plot;
}
示例2: applyToMeterPlot
import org.jfree.chart.plot.MeterPlot; //导入方法依赖的package包/类
/**
* Applies the attributes of this theme to a {@link MeterPlot}.
*
* @param plot the plot (<code>null</code> not permitted).
*/
protected void applyToMeterPlot(MeterPlot plot) {
plot.setDialBackgroundPaint(this.plotBackgroundPaint);
plot.setValueFont(this.largeFont);
plot.setValuePaint(this.axisLabelPaint);
plot.setDialOutlinePaint(this.plotOutlinePaint);
plot.setNeedlePaint(this.thermometerPaint);
plot.setTickLabelFont(this.regularFont);
plot.setTickLabelPaint(this.tickLabelPaint);
}
示例3: applyToMeterPlot
import org.jfree.chart.plot.MeterPlot; //导入方法依赖的package包/类
/**
* Applies the attributes of this theme to a {@link MeterPlot}.
*
* @param plot the plot ({@code null} not permitted).
*/
protected void applyToMeterPlot(MeterPlot plot) {
plot.setDialBackgroundPaint(this.plotBackgroundPaint);
plot.setValueFont(this.largeFont);
plot.setValuePaint(this.axisLabelPaint);
plot.setDialOutlinePaint(this.plotOutlinePaint);
plot.setNeedlePaint(this.thermometerPaint);
plot.setTickLabelFont(this.regularFont);
plot.setTickLabelPaint(this.tickLabelPaint);
}
示例4: createDialChart
import org.jfree.chart.plot.MeterPlot; //导入方法依赖的package包/类
private JFreeChart createDialChart(ReportChart reportChart,
ChartValue[] values, boolean displayInline)
{
DefaultValueDataset dataset = createDefaultValueDataset(values);
MeterPlot plot = new MeterPlot(dataset);
plot.setRange(new Range(0, 60));
plot.addInterval(new MeterInterval("Normal", new Range(0.0, 35.0),
Color.lightGray, new BasicStroke(2.0f), new Color(0, 255, 0, 64)));
plot.addInterval(new MeterInterval("Warning", new Range(35.0, 50.0),
Color.lightGray, new BasicStroke(2.0f), new Color(255, 255, 0, 64)));
plot.addInterval(new MeterInterval("Critical", new Range(50.0, 60.0),
Color.lightGray, new BasicStroke(2.0f), new Color(255, 0, 0, 128)));
plot.setNeedlePaint(Color.darkGray);
plot.setDialBackgroundPaint(Color.white);
plot.setDialOutlinePaint(Color.gray);
plot.setDialShape(DialShape.CHORD);
plot.setMeterAngle(260);
plot.setTickLabelsVisible(true);
plot.setTickLabelFont(new Font("Dialog", Font.BOLD, 10));
plot.setTickLabelPaint(Color.darkGray);
plot.setTickSize(5.0);
plot.setTickPaint(Color.lightGray);
plot.setValuePaint(Color.black);
plot.setValueFont(new Font("Dialog", Font.BOLD, 14));
JFreeChart chart = new JFreeChart(reportChart.getTitle(),
JFreeChart.DEFAULT_TITLE_FONT, plot, reportChart.isShowLegend());
return chart;
}
示例5: createDialChart
import org.jfree.chart.plot.MeterPlot; //导入方法依赖的package包/类
private JFreeChart createDialChart(ReportChart reportChart,
ChartValue[] values, boolean displayInline)
{
DefaultValueDataset dataset = createDefaultValueDataset(values);
MeterPlot plot = new MeterPlot(dataset);
plot.setRange(new Range(0, 60));
plot.addInterval(new MeterInterval("Normal", new Range(0.0, 35.0),
Color.lightGray, new BasicStroke(2.0f), new Color(0, 255, 0, 64)));
plot.addInterval(new MeterInterval("Warning", new Range(35.0, 50.0),
Color.lightGray, new BasicStroke(2.0f), new Color(255, 255, 0, 64)));
plot.addInterval(new MeterInterval("Critical", new Range(50.0, 60.0),
Color.lightGray, new BasicStroke(2.0f), new Color(255, 0, 0, 128)));
plot.setNeedlePaint(Color.darkGray);
plot.setDialBackgroundPaint(Color.white);
plot.setDialOutlinePaint(Color.gray);
plot.setDialShape(DialShape.CHORD);
plot.setMeterAngle(260);
plot.setTickLabelsVisible(true);
plot.setTickLabelFont(new Font("Dialog", Font.BOLD, 10));
plot.setTickLabelPaint(Color.darkGray);
plot.setTickSize(5.0);
plot.setTickPaint(Color.lightGray);
plot.setValuePaint(Color.black);
plot.setValueFont(new Font("Dialog", Font.BOLD, 14));
JFreeChart chart = new JFreeChart(reportChart.getTitle(),
JFreeChart.DEFAULT_TITLE_FONT, plot, reportChart.isShowLegend());
return chart;
}