Package jcckit.plot
Interface SymbolFactory
-
- All Known Implementing Classes:
AbstractSymbolFactory
,BarFactory
,CircleSymbolFactory
,ErrorBarFactory
,SquareSymbolFactory
public interface SymbolFactory
Interface of a symbol factory. A symbol is aGraphicalElement
orGraphicalComposite
. A symbol factory creates the same type of symbols. In general, they have all the same size. But they are distinguished from each other by their positions. In addition they may also differ in other properties which will be determined byHints
.- Author:
- Franz-Josef Elmer
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTRIBUTES_KEY
Common configuration parameter key need by implementing classes.static double
DEFAULT_SIZE
Default size of a symbol = 0.01.static String
SIZE_KEY
Common configuration parameter key need by implementing classes.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GraphicalElement
createLegendSymbol(GraphPoint centerPosition, double size)
Creates a symbol for the legend at the specified position.Symbol
createSymbol(GraphPoint point, Hint hintFromPreviousPoint, Hint hintFromPreviousCurve)
Creates a symbol for the specified point taking into account the specified hints.
-
-
-
Field Detail
-
SIZE_KEY
static final String SIZE_KEY
Common configuration parameter key need by implementing classes.- See Also:
- Constant Field Values
-
ATTRIBUTES_KEY
static final String ATTRIBUTES_KEY
Common configuration parameter key need by implementing classes.- See Also:
- Constant Field Values
-
DEFAULT_SIZE
static final double DEFAULT_SIZE
Default size of a symbol = 0.01.- See Also:
- Constant Field Values
-
-
Method Detail
-
createSymbol
Symbol createSymbol(GraphPoint point, Hint hintFromPreviousPoint, Hint hintFromPreviousCurve)
Creates a symbol for the specified point taking into account the specified hints.- Parameters:
point
- The position of the symbol. In general it is a transformation of a correspondingDataPoint
into aGraphPoint
.hintFromPreviousPoint
- Hint from the previous point of the sameCurve
or null.hintFromPreviousCurve
- Hint from the previousCurve
or null.
-
createLegendSymbol
GraphicalElement createLegendSymbol(GraphPoint centerPosition, double size)
Creates a symbol for the legend at the specified position.- Parameters:
centerPosition
- 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.
-
-