org.jfree.chart.JFreeChart.setBorderStroke()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(152)

本文整理了Java中org.jfree.chart.JFreeChart.setBorderStroke()方法的一些代码示例,展示了JFreeChart.setBorderStroke()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFreeChart.setBorderStroke()方法的具体详情如下:
包路径:org.jfree.chart.JFreeChart
类名称:JFreeChart
方法名:setBorderStroke

JFreeChart.setBorderStroke介绍

[英]Sets the stroke used to draw the chart border (if visible).
[中]设置用于绘制图表边框的笔划(如果可见)。

代码示例

代码示例来源:origin: loklak/loklak_server

public JFreeChart getChart(JSONObject jsonData, boolean legendBit, boolean tooltipBit) {
    DefaultPieDataset dataset = new DefaultPieDataset();
    Iterator iter = jsonData.keys();

    while (iter.hasNext()) {
      String keyData = (String)iter.next();
      Float value = Float.parseFloat(jsonData.getString(keyData));
      dataset.setValue(keyData, value);
    }

    boolean legend = legendBit;
    boolean tooltips = tooltipBit;
    boolean urls = false;

    JFreeChart chart = ChartFactory.createPieChart("Loklak Visualizes - PieChart", dataset, legend, tooltips, urls);

    chart.setBorderPaint(Color.BLACK);
    chart.setBorderStroke(new BasicStroke(5.0f));
    chart.setBorderVisible(true);

    return chart;
  }
}

代码示例来源:origin: superad/pdf-kit

jfreechart.setBackgroundPaint(Color.white);
jfreechart.setBorderPaint(Color.black);
jfreechart.setBorderStroke(new BasicStroke(1.5f));
XYPlot xyplot = (XYPlot) jfreechart.getPlot();

代码示例来源:origin: stackoverflow.com

chart.setBackgroundPaint(Color.white);
chart.setBorderPaint(Color.black);
chart.setBorderStroke(new BasicStroke(1));
chart.setBorderVisible(true);

代码示例来源:origin: org.jboss.seam/jboss-seam-pdf

chart.setBorderStroke(findStroke(getBorderStroke()));

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

jfchart.setBorderStroke(params.getStroke(ChartParams.BORDER_STROKE));

相关文章