当前位置: 首页>>代码示例>>Java>>正文


Java MeterPlot.setDialOutlinePaint方法代码示例

本文整理汇总了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;
}
 
开发者ID:vimaier,项目名称:conqat,代码行数:20,代码来源:MeterChartCreator.java

示例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);
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:15,代码来源:StandardChartTheme.java

示例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);
}
 
开发者ID:jfree,项目名称:jfreechart,代码行数:15,代码来源:StandardChartTheme.java

示例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;
}
 
开发者ID:mtpettyp,项目名称:openreports,代码行数:32,代码来源:ChartReportEngine.java

示例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;
}
 
开发者ID:caherrerapa,项目名称:openreportsv2,代码行数:32,代码来源:ChartReportEngine.java


注:本文中的org.jfree.chart.plot.MeterPlot.setDialOutlinePaint方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。