Class CandlestickRendererBuilder

java.lang.Object
com.jfcbuilder.builders.CandlestickRendererBuilder

public class CandlestickRendererBuilder extends Object
Builder for creating configured CandlestickRenderer instances.
  • Method Details

    • get

      public static CandlestickRendererBuilder get()
      Factory method for obtaining new instances of this class.
      Returns:
      New instance of this class
    • upColor

      public CandlestickRendererBuilder upColor(Color c)
      Sets the close-up candle color to be used when rendering candles.
      Parameters:
      c - The Color to use
      Returns:
      Reference to this builder for chaining method calls
    • upColor

      public Color upColor()
      Gets the configured close-up candle color.
      Returns:
      The color
    • downColor

      public CandlestickRendererBuilder downColor(Color c)
      Sets the close-down candle color to be used when rendering candles.
      Parameters:
      c - The Color to use
      Returns:
      Reference to this builder for chaining method calls
    • downColor

      public Color downColor()
      Gets the configured close-down candle color.
      Returns:
      The color
    • toolTipGenerator

      public org.jfree.chart.labels.XYToolTipGenerator toolTipGenerator()
      Gets the configured tooltip generator.
      Returns:
      The tooltip generator instance if one was set. Null otherwise.
    • toolTipGenerator

      public CandlestickRendererBuilder toolTipGenerator(org.jfree.chart.labels.XYToolTipGenerator toolTipGenerator)
      Sets the tooltip generator to use. If this method is not invoked the CandlestickRenderer default is used.
      Parameters:
      toolTipGenerator - The tooltip generator that should be used.
    • build

      public org.jfree.chart.renderer.xy.CandlestickRenderer build()
      Builds the renderer using all configured settings.
      Returns:
      New instance of a CandlestickRenderer corresponding to all configured settings