public class ErrorBarFactory extends Object implements SymbolFactory
SymbolFactory for creating the symbol. The error bars
are Rectangles.
Curves with error bars are based on two
DataCurves:
The ErrorBarFactory needs an instance of PositionHint
as initial Hint for the next curve. Its origin must be
the origin of the data coordinate system in device-independent coordinates.
The position of PositionHint must be undefined.
| Modifier and Type | Field and Description |
|---|---|
static String |
SYMBOL_FACTORY_KEY
Configuration parameter key.
|
ATTRIBUTES_KEY, DEFAULT_SIZE, SIZE_KEY| Constructor and Description |
|---|
ErrorBarFactory(ConfigParameters config)
Creates an instance from the specified configuration parameters.
|
| Modifier and Type | Method and Description |
|---|---|
GraphicalElement |
createLegendSymbol(GraphPoint centerPosition,
double size)
Creates the legend symbol.
|
Symbol |
createSymbol(GraphPoint point,
Hint hintFromPreviousPoint,
Hint hintFromPreviousCurve)
Creates either the curve symbol or the error bars.
|
public static final String SYMBOL_FACTORY_KEY
public ErrorBarFactory(ConfigParameters config)
| Key & Default Value | Type | Mandatory | Description |
|---|---|---|---|
| symbolFactory = null | ConfigParameters | no | Definition of the wrapped SymbolFactory which generates
the curve symbol without bars. By default an empty
GraphicalComposite will be created. |
| size = 0 | double | no | Width of the error bars. |
| attributes = null | ConfigParameters | no | Definition of the GraphicAttributes of the error
bars. |
public GraphicalElement createLegendSymbol(GraphPoint centerPosition, double size)
SymbolFactory
or returns an empty instance of GraphicalComposite if undefined.createLegendSymbol in interface SymbolFactorycenterPosition - Center position of the symbol.size - The size of the symbol. Will not be used if the symbol
of the curve points have all the same size. In this case
the symbol for the legend has the size of the curve symbols.public Symbol createSymbol(GraphPoint point, Hint hintFromPreviousPoint, Hint hintFromPreviousCurve)
PositionHint and its position attribute is not null.
Otherwise the curve symbol is created. The position attributes stores
the curve point (in device-independent coordinates). The origin is
always as set in the initial PositionHint. The hint for
the next curve wrapped by the returned Symbol is always
a PositionHint.createSymbol in interface SymbolFactorypoint - The position of the symbol. In general it is a transformation
of a corresponding DataPoint into a
GraphPoint.hintFromPreviousPoint - Hint from the previous point of the same
Curve or null.hintFromPreviousCurve - Hint from the previous
Curve or null.Copyright © 2016. All Rights Reserved.