/* Note that once a LegendEntry acquires a plot line, it may
* apply its own setup to it. */
linePlot = new LinearXYPlotLineWrapper(plot.getPlotView().getXAxis(), plot.getPlotView().getYAxis(),
plot.getAxisOrientationSetting() == AxisOrientationSetting.X_AXIS_AS_TIME ? XYDimension.X : XYDimension.Y);
LineMode lineMode = LineMode.STEP_XY;
if (plot.getPlotAbstraction().getPlotLineConnectionType() == PlotLineConnectionType.DIRECT) {
lineMode = LineMode.STRAIGHT;
}
linePlot.setLineMode(lineMode);
linePlot.setForeground(color);