jcckit.plot
Class AbstractSymbolFactory
- java.lang.Object
-
- jcckit.plot.AbstractSymbolFactory
-
- All Implemented Interfaces:
- SymbolFactory
- Direct Known Subclasses:
- BarFactory, CircleSymbolFactory, SquareSymbolFactory
public abstract class AbstractSymbolFactory extends java.lang.Object implements SymbolFactory
Abstract superclass of allSymbolFactories. Subclasses have to implementcreatePlainSymbol().
-
-
Field Summary
-
Fields inherited from interface jcckit.plot.SymbolFactory
ATTRIBUTES_KEY, DEFAULT_SIZE, SIZE_KEY
-
-
Constructor Summary
Constructors Constructor and Description AbstractSymbolFactory(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.SymbolcreateSymbol(GraphPoint point, Hint hintFromPreviousPoint, Hint hintFromPreviousCurve)Creates a symbol.
-
-
-
Constructor Detail
-
AbstractSymbolFactory
public AbstractSymbolFactory(ConfigParameters config)
Creates an instance from the specified configuration parameters.Key & Default Value Type Mandatory Description size = 0.01 double no Size of the symbol in device-independent units. attributes ConfigParameters no Configuration parameters for the attributes of the symbol. className has to be a class which is an instance of GraphicAttributes.
-
-
Method Detail
-
createSymbol
public Symbol createSymbol(GraphPoint point, Hint hintFromPreviousPoint, Hint hintFromPreviousCurve)
Creates a symbol. Evaluate hintFromPreviousPoint if it is aAttributesHint. CallscreateSymbol(GraphPoint, GraphicAttributes, Hint, Hint).- Specified by:
createSymbolin interfaceSymbolFactory- Parameters:
point- Symbol position.hintFromPreviousPoint- Hint from the previous point.hintFromPreviousCurve- Hint from the previous curve.
-
createLegendSymbol
public GraphicalElement createLegendSymbol(GraphPoint centerPosition, double size)
Creates a symbol for the legend at the specified position. UsescreatePlainSymbol()- Specified by:
createLegendSymbolin interfaceSymbolFactory- Parameters:
centerPosition- Center position of the symbol.size- The size of the symbol. Will be ignored because the value given in the constructor will be used.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG