找到了, plot.setForegroundAlpha(0.6F);

解决方案 »

  1.   

    CategoryPlot plot = chart.getCategoryPlot();        // set the stroke for each series...
            plot.getRenderer().setSeriesStroke(0, new BasicStroke(2.0f,
                                                                  BasicStroke.CAP_ROUND,
                                                                  BasicStroke.JOIN_ROUND,
                                                                  1.0f,
                                                                  new float[] { 10.0f, 6.0f },
                                                                  0.0f));
            plot.getRenderer().setSeriesStroke(1, new BasicStroke(2.0f,
                                                                  BasicStroke.CAP_ROUND,
                                                                  BasicStroke.JOIN_ROUND,
                                                                  1.0f,
                                                                  new float[] { 6.0f, 6.0f },
                                                                  0.0f));
            plot.getRenderer().setSeriesStroke(2, new BasicStroke(2.0f,
                                                                  BasicStroke.CAP_ROUND,
                                                                  BasicStroke.JOIN_ROUND,
                                                                  1.0f,
                                                                  new float[] { 2.0f, 6.0f },
                                                                  0.0f));