add(panel);
}
protected JPanel createPlotPanel(Plot plot) {
this.plotInsets = plot.getInsets();
this.backgroundPaintSample = new PaintSample(Color.WHITE);
this.outlineStrokeSample = new StrokeSample(new BasicStroke(1.0f));
this.outlinePaintSample = new PaintSample(Color.WHITE);
if (plot instanceof CategoryPlot) {
this.plotOrientation = ((CategoryPlot) plot).getOrientation();
}
else if (plot instanceof XYPlot) {
this.plotOrientation = ((XYPlot) plot).getOrientation();