Package jcckit.plot

Class AbstractSymbolFactory

    • Field Detail

      • _size

        protected final double _size
        Size of all symbols.
      • _attributes

        protected final GraphicAttributes _attributes
        Attributes of all symbols.
    • Constructor Detail

      • AbstractSymbolFactory

        public AbstractSymbolFactory​(ConfigParameters config)
        Creates an instance from the specified configuration parameters.
        Key & Default ValueTypeMandatory Description
        size = 0.01 doubleno Size of the symbol in device-independent units.
        attributes ConfigParametersno Configuration parameters for the attributes of the symbol. className has to be a class which is an instance of GraphicAttributes.
    • Method Detail

      • createSymbol

        protected Symbol createSymbol​(GraphPoint point,
                                      GraphicAttributes attributes,
                                      Hint hintForNextPoint,
                                      Hint hintFromPreviousCurve)
        Creates a symbol. Uses createPlainSymbol().
        Parameters:
        point - Symbol position.
        attributes - Symbol attributes.
        hintForNextPoint - Hint for the next point. Will be delivered unchanged in the return Symbol object.
        hintFromPreviousCurve - Hint from the previous curve. Will be delivered unchanged in the return Symbol object. Subclasses may override this behavior.
      • createLegendSymbol

        public GraphicalElement createLegendSymbol​(GraphPoint centerPosition,
                                                   double size)
        Creates a symbol for the legend at the specified position. Uses createPlainSymbol()
        Specified by:
        createLegendSymbol in interface SymbolFactory
        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.
      • createPlainSymbol

        protected abstract GraphicalElement createPlainSymbol​(GraphPoint centerPosition,
                                                              double size,
                                                              GraphicAttributes attributes)
        Creates the graphical element of the plain symbol.
        Parameters:
        centerPosition - Center position of the symbol.
        size - The size of the symbol.
        attributes - The attributes of the symbol.