title: JFreeChart - change SeriesStroke of chart lines from solid to dashed in one line
body: <p>The answer accepted here (<a href="https://stackoverflow.com/questions/7797353/jfreechartjava-how-to-draw-lines-that-is-partially-dashed-lines-and-partiall">JFreechart(Java) - How to draw lines that is partially dashed lines and partially solid lines?</a>) helped me start down the path of changing my seriesstroke lines on my chart. After stepping through my code and watching the changes, I see that my seriesstroke does in fact change to "dashedStroke" when it is supposed to (after a certain date "dashedAfter"), but when the chart is rendered the entire series line is dashed. How can I get a series line to be drawn solid at first and dashed after a set date?</p>
  
  <pre><code>/* series line modifications */
  final Number dashedAfter = timeNowDate.getTime();
  
  XYLineAndShapeRenderer render = new XYLineAndShapeRenderer() {
    Stroke regularStroke = new BasicStroke();
    Stroke dashedStroke = new BasicStroke(
                              1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND,
                              1.0f, new float[] {10.0f, 6.0f}, 0.0f );
    @Override
    public Stroke getItemStroke(int row, int column) {
      Number xVal = cd.getXValue(row, column);
      if (xVal.doubleValue() &gt; dashedAfter.doubleValue()) { 
        return dashedStroke; 
      } else { 
        return regularStroke; 
      }
    }
  };
  render.setBaseShapesVisible(false);
  render.setBaseShapesFilled(true);
  render.setDrawSeriesLineAsPath(true);
  plot.setRenderer(render);
  </code></pre>