}
private void setupGridChartSelection(Plot plot, GridChartView chartView) {
if (chartView.getPoint() != null) {
GridPointInfo point = chartView.getPoint();
final ChartSelection selection = chartView.getChart().getChartSelection();
final LineStyle lineStyle = selection.getLineStyle();
Paint outlinePaint = lineStyle.getColor() != null
? lineStyle.getColor()
: Color.BLUE;
final Stroke outlineStroke = lineStyle.getStroke() != null
? lineStyle.getStroke()
: new BasicStroke(5.0F, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL);
final Paint selectionPaint = selection.getFillPaint();
Object itemRenderer = null;
if (plot instanceof XYPlot) {
itemRenderer = ((XYPlot) plot).getRenderer();
} else if (plot instanceof CategoryPlot) {