jcckit.plot
Class BarFactory
- java.lang.Object
-
- jcckit.plot.AbstractSymbolFactory
-
- jcckit.plot.BarFactory
-
- All Implemented Interfaces:
- SymbolFactory
public class BarFactory extends AbstractSymbolFactory
A factory of bars. The bars areRectangles. Depending on the configuration parameters the bars can be horizontal or vertical. Bars of several curves can be side by side or stacked. The bar length is determined by the x or y value of the curve point in device-independent coordinates. If the value is negative the bar goes into the negative direction. For stacked bars the values should always be positive.When used inside a
SimpleCurvesoft clipping should always be switched off (seeSimpleCurve.SimpleCurve(ConfigParameters, int, int, ClippingShape, Legend)).
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringHORIZONTAL_BARS_KEYConfiguration parameter key.static java.lang.StringSTACKED_KEYConfiguration parameter key.-
Fields inherited from interface jcckit.plot.SymbolFactory
ATTRIBUTES_KEY, DEFAULT_SIZE, SIZE_KEY
-
-
Constructor Summary
Constructors Constructor and Description BarFactory(ConfigParameters config)Creates an instance from the specified configuration parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description GraphicalElementcreateLegendSymbol(GraphPoint centerPosition, double size)Creates a symbol for the legend at the specified position.-
Methods inherited from class jcckit.plot.AbstractSymbolFactory
createSymbol
-
-
-
-
Field Detail
-
STACKED_KEY
public static final java.lang.String STACKED_KEY
Configuration parameter key.- See Also:
- Constant Field Values
-
HORIZONTAL_BARS_KEY
public static final java.lang.String HORIZONTAL_BARS_KEY
Configuration parameter key.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BarFactory
public BarFactory(ConfigParameters config)
Creates an instance from the specified configuration parameters.
In addition the configuration parameters of the constructor of the superclassKey & Default Value Type Mandatory Description horizontalBars = false boolean no If true horizontal bars will be drawn. Otherwise vertical bars are drawn. stacked = false boolean no If true the bars of several curves will be stacked. AbstractSymbolFactoryapply.
-
-
Method Detail
-
createLegendSymbol
public GraphicalElement createLegendSymbol(GraphPoint centerPosition, double size)
Creates a symbol for the legend at the specified position.- Specified by:
createLegendSymbolin interfaceSymbolFactory- Overrides:
createLegendSymbolin classAbstractSymbolFactory- Parameters:
centerPosition- Center position of the symbol.size- The size of the symbol.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG