jcckit.plot
Interface CurveFactory

All Known Implementing Classes:
SimpleCurveFactory

public interface CurveFactory

Interface of a curve factory. A curve factory creates a new instance of a Curve.

Author:
Franz-Josef Elmer

Method Summary
 Curve create(int curveIndex, int numberOfCurves, ClippingShape clippingShape, Legend legend)
          Creates a new curve instance.
 

Method Detail

create

public Curve create(int curveIndex,
                    int numberOfCurves,
                    ClippingShape clippingShape,
                    Legend legend)
Creates a new curve instance.

Parameters:
curveIndex - The index of the curve in the Plot to which it should belong.
numberOfCurves - Number of curves. Will be needed to calculate the y-coordinate of the legend symbol.
clippingShape - Clipping shape applied to the curve.
legend - The legend which will show the curve symbol.
Returns:
an empty instance.