public class SimpleCurveFactory extends Object implements CurveFactory
SimpleCurves
.Modifier and Type | Field and Description |
---|---|
static String |
DEFINITIONS_KEY
Configuration parameter key.
|
Constructor and Description |
---|
SimpleCurveFactory(ConfigParameters config)
Creates an instance from the specified configuration parameter.
|
Modifier and Type | Method and Description |
---|---|
Curve |
create(int curveIndex,
int numberOfCurves,
ClippingShape clippingShape,
Legend legend)
Creates an instance of
SimpleCurve . |
public static final String DEFINITIONS_KEY
public SimpleCurveFactory(ConfigParameters config)
Key & Default Value | Type | Mandatory | Description |
---|---|---|---|
definitions = one empty ConfigParameters instance | String[] | no | Keys of subtrees defining ConfigParameters
used by the constructor of
SimpleCurve . |
public Curve create(int curveIndex, int numberOfCurves, ClippingShape clippingShape, Legend legend)
SimpleCurve
.create
in interface CurveFactory
curveIndex
- Index of the curve. Will be used to select the
ConfigParameters
object and the line attributes.
In addition it will be used to calculate the y-coordinate
of the legend symbol.numberOfCurves
- Number of curves. Will be needed to calculate
the y-coordinate of the legend symbol.clippingShape
- The clipping shape.legend
- The legend. Will be needed to create the legend symbol.Copyright © 2017. All Rights Reserved.