*
* @param legend the legend, which should be changed.
*/
public LegendPropertyEditPanel(Legend legend) {
StandardLegend l = ( legend != null ? (StandardLegend) legend : new StandardLegend() );
this.showLegend = ( legend != null );
this.outlineStroke = new StrokeSample(l.getOutlineStroke());
this.outlinePaint = new PaintSample(l.getOutlinePaint());
this.backgroundPaint = new PaintSample(l.getBackgroundPaint());
this.seriesFont = l.getItemFont();
this.seriesPaint = new PaintSample(l.getItemPaint());
this.availableStrokeSamples = new StrokeSample[4];
this.availableStrokeSamples[0] = new StrokeSample(new BasicStroke(1.0f));
this.availableStrokeSamples[1] = new StrokeSample(new BasicStroke(2.0f));
this.availableStrokeSamples[2] = new StrokeSample(new BasicStroke(3.0f));